Hello,
i try to use keepalived with MISC_CHECK and misc_dynamic for
dynamically setting the weight of real servers. The keepalived is
starting the check-script correctly and detects that it has to
change the weight:
Dec 21 11:59:08 loadbalancer Keepalived_healthcheckers: Changing weight from
78 to 18 for active service [192.168.10.1:80] of VS [192.168.4.12:80]
But the keepalived is not able to change the weight, the log says:
Dec 21 11:59:08 loadbalancer Keepalived_healthcheckers: IPVS: No such
destination
I configured the virtual server like this:
virtual_server 192.168.4.12 80 {
protocol TCP
lb_kind DR
lb_algo wrr
delay_loop 10
real_server 192.168.10.1 80 {
weight 1
MISC_CHECK {
misc_path "/root/weight.sh 1"
misc_timeout 10
misc_dynamic
}
}
real_server 192.168.10.2 80 {
weight 1
MISC_CHECK {
misc_path "/root/weight.sh 2"
misc_timeout 10
misc_dynamic
}
}
}
I hope somebody knows this problem and could give me some hint.
Best regards,
Bjoern
|