[Keepalived-devel] Weight is not used on wlc ?
Status: Beta
Brought to you by:
acassen
|
From: Christian J. <chr...@st...> - 2003-07-29 07:37:45
|
Hallo,
I have been using keepalived now for about 6 months and I must say I am
Impessed how good it works, thanks a lot Alexandre :)
Now I have a small Problem. I have 2 Real Servers which do the same task,
but only one is supposed to do the work, then other is a Standby failover
Server.
I thought it should work like this, but it dosen't :
virtual_server 10.0.0.238 3699 {
delay_loop 120
lb_algo wlc
lb_kind NAT
persistence_timeout 50
nat_mask 255.255.255.0
protocol TCP
real_server 10.0.3.17 3699 {
weight 1000
TCP_CHECK {
connect_timeout 3
connect_port 3699
}
}
real_server 10.0.3.18 3699 {
weight 1
TCP_CHECK {
connect_timeout 3
connect_port 3699
}
}
}
Example Outputs of ipvsadm :
TCP 10.0.0.238:3699 wlc persistent 50
-> 10.0.3.18:3699 Masq 1 0 2
-> 10.0.3.17:3699 Masq 1000 0 0
TCP 10.0.0.238:3699 wlc persistent 50
-> 10.0.3.18:3699 Masq 1 0 3
-> 10.0.3.17:3699 Masq 1000 0 3
TCP 10.0.0.238:3699 wlc persistent 50
-> 10.0.3.18:3699 Masq 1 0 2
-> 10.0.3.17:3699 Masq 1000 0 4
It still uses the Server with weight 1 very offen - something like every
second or third time.
Previous I used rr an weight 100 with both servers. Could that be the
problem ? Is that "saved" somewhere ?
Any hint ?
System :
RedHat 7.2
Kernel 2.4.20-18.7.hidd.ipvs109.cipe154
ipvs 1.0.9
Greetings
Christian
|