LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] real_server on the same machine where keepalived runs

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: [lvs-users] real_server on the same machine where keepalived runs
From: dousti <dousti@xxxxxxxxx>
Date: Fri, 28 Oct 2011 11:36:52 -0700 (PDT)
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-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 - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

<Prev in Thread] Current Thread [Next in Thread>