LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

keepalived does not configure LVS

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: keepalived does not configure LVS
From: Bill Shupp <hostmaster@xxxxxxxxx>
Date: Wed, 24 May 2006 18:32:13 -0700
Hello,

I'm trying to setup LVS-NAT for HTTP with keepalived.  At the bottom is
my keepalived.conf contents.  The virtual IPs on the master director get
setup just fine, but forwarding does not occur.  When I run ipvsadm
without arguments, there are no services listed.  However, if I add the
service and real servers by hand via ipvsadm, it works.  I'm guessing
there's a problem with my config.

This is CentOS 4.3, ipvsadm 1.24 and keepalived 1.1.12 are installed via
rpms.  Kernel is 2.6.9-34.EL.

Any help is appreciated!

Cheers,

Bill Shupp





global_defs {
   notification_email {
     hostmaster@xxxxxxxxx
   }
   notification_email_from hostmaster@xxxxxxxxx
   smtp_server 192.168.1.8
   smtp_connect_timeout 30
   router_id LVS1_A
}

vrrp_instance VI_1 {
    state MASTER
    interface eth0
    virtual_router_id 1
    priority 100
    advert_int 1
    authentication {
        auth_type PASS
        auth_pass 1111
    }
    virtual_ipaddress {
        192.168.1.42
    }
}

vrrp_instance VI_2 {
    state MASTER
    interface eth1
    virtual_router_id 2
    priority 100
    advert_int 1
    authentication {
        auth_type PASS
        auth_pass 1111
    }
    virtual_ipaddress {
        10.10.1.1
    }
}

virtual_server 192.168.1.42 80 {
    delay_loop 6
    lb_algo rr
    lb_kind NAT
    nat_mask 255.255.255.0
    persistence_timeout 50
    protocol TCP

    real_server 10.10.1.4 {
        weight 1
        HTTP_GET {
            url {
              path /id.html
              digest 67db86c4f23170f673ce83c67bbcc642
            }
            connect_timeout 3
            nb_get_retry 3
            delay_before_retry 3
        }
    }

    real_server 10.10.1.5 {
        weight 1
        HTTP_GET {
            url {
              path /id.html
              digest 9c831a54020efc386b04fd618ac25d0c
            }
            connect_timeout 3
            nb_get_retry 3
            delay_before_retry 3
        }
    }
}

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