Hi,
I played with it some more and this is what I'm seeing. When .157 owns the
VIP, regardless of the outcome of the MISC_CHECK (even when .157 check
fails) the request is being sent to .157. This of course fails. So it looks
like the MISC_CHECK doesn't remove the real_server from the pool when the
real_server is on the machine that owns the VIP.
Am I doing something wrong?
Ramin
dousti wrote:
>
> Hi,
>
> I have two hosts (10.175.151.157/22 and 10.175.151.158/22) that run a udp
> service. In order to provide HA, I'm using keepalived (10.175.148.242/22)
> on these two hosts. This is the conf of one of the hosts (the other one is
> similar (with necessary changed):
>
> vrrp_instance VI_1 {
> interface eth0
> state MASTER
> virtual_router_id 51
> priority 101
> authentication {
> auth_type PASS
> auth_pass PASS123
> }
> virtual_ipaddress {
> 10.175.148.242
> }
> }
>
> virtual_server 10.175.148.242 4342 {
> delay_loop 30
> lb_algo wrr
> lb_kind DR
> protocol UDP
>
> real_server 10.175.151.157 4342 {
> weight 1
> MISC_CHECK {
> misc_path /tmp/nc0.sh
> }
> }
> real_server 10.175.151.158 4342 {
> weight 100
> MISC_CHECK {
> misc_path /tmp/nc0.sh
> }
> }
>
> }
>
> However the packets destined for 10.175.148.242:4342 do not seem to make
> it to any of the two servers. My question, can keepalived run on the same
> hosts as where the real_server runs? I even tried lb_kind NAT and it
> doesn't seem to be working.
>
> Thanks for the help.
>
> Ramin
>
--
View this message in context:
http://old.nabble.com/real_server-on-the-same-machine-where-keepalived-runs-tp32740233p32748550.html
Sent from the LVS mailing list archive at Nabble.com.
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
|