I want to set up a keepalive + LVS system.

I can use
       /sbin/ipvsadm -A -t $VIP:0 -s wrr -p 60
       /sbin/ipvsadm -a -t $VIP:0 -r $RIP1:0 -g

to foward all connections from VIP to realserver.

But if I use keepalive to monitor the ports, how to write the
keepalived.conf file?

virtual_server <VIP> 0 {
    delay_loop 6
    lb_algo wrr
    lb_kind DR
    nat_mask 255.255.255.0
    persistence_timeout 10
    protocol TCP

    real_server <RIP1> 0 {
        weight 1
        TCP_CHECK {
            connect_timeout 3
            nb_get_retry 3
            delay_before_retry 3
        }
    }
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-requ...@linuxvirtualserver.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

Reply via email to