I've done that before I actually had a dedicated LVS box running. I only used a standard TCP check at the time (port open, server up, port closed, server down). We had keepalived running on 2 boxes. I'll see if I can dig up the old configs for you if they might help.
--SJ -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of dousti Sent: Friday, October 28, 2011 2:37 PM To: [email protected] Subject: [lvs-users] real_server on the same machine where keepalived runs 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-r uns-tp32740233p32740233.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 - [email protected] Send requests to [email protected] or go to http://lists.graemef.net/mailman/listinfo/lvs-users _______________________________________________ Please read the documentation before posting - it's available at: http://www.linuxvirtualserver.org/ LinuxVirtualServer.org mailing list - [email protected] Send requests to [email protected] or go to http://lists.graemef.net/mailman/listinfo/lvs-users
