急求,怎么配置lbname??????谢谢!!!
怎么配置 lbname.conf
BEGIN {
$sockaddr_t = 'S n a4 x8';
$WEIGHT_PER_USER = 100; # should be consistent with poller
$need_maint = 0;
$poller_sleep = 300;
$poller_config = "sweet.config";
$hostmaster = "schemers.leland.stanford.edu";
}
## NOTE: handle_best_request still contains two hard-coded references
## to stanford.edu. You should change them to match your domain.
LBDB::add_static("best.stanford.edu",T_SOA,
rr_SOA(hostname,$hostmaster,time, 86400, 86400, 86400, 0)
);
LBDB::add_dynamic("best.stanford.edu" => \&handle_best_request);
############################################################
# dynamic domain handlers...
sub by_weight { $weight{$a} <=> $weight{$b}; }
sub handle_best_request {
my($domain,$residual,$qtype,$qclass,$dm) = @_; |