LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] [Keepalived-devel] Fwd: LVS-DR, Keepalived 1.1.17, insta

To: jason.faulkner@xxxxxxxxxxxxx
Subject: Re: [lvs-users] [Keepalived-devel] Fwd: LVS-DR, Keepalived 1.1.17, installation question/problem
Cc: lvs-users@xxxxxxxxxxxxxxxxxxxxxx, keepalived-devel@xxxxxxxxxxxxxxxxxxxxx
From: Vasiliy Boulytchev <vasiliy@xxxxxxxxxxxxxxxx>
Date: Thu, 9 Apr 2009 13:35:53 -0400
Thanks Jason,

  I have modified the running keepalived configuration, and still, the
problem remains...

  When I type "ipvsadm -l", the table is blank:

###
[root@lvs ~]# ipvsadm -L
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
###

  Here is my keepalived.conf again, with your changes:

###
[root@lvs ~]# cat /etc/keepalived/keepalived.conf
! Configuration File for keepalived

global_defs {
   notification_email {
     vasiliyb@xxxxxxxxx
   }
   notification_email_from lvs1@xxxxxxxxxxxxxxxxxxxxxx
   smtp_server 127.0.0.1
   smtp_connect_timeout 30
   router_id LVS1
}

#vrrp_sync_group VG1 {
#    group {
#        LVS1
#        LVS2
#    }
#}


vrrp_instance LVS1 {
    state MASTER
    interface eth0
    virtual_router_id 51
    priority 100
    advert_int 1
    authentication {
        auth_type PASS
        auth_pass vasiliy
    }
    virtual_ipaddress {
        192.168.1.195
        192.168.1.196
        192.168.1.197
        192.168.1.198
    }
}

virtual_server 192.168.1.195{
    delay_loop 6
    lb_algo wrr
    lb_kind DR
    #nat_mask 255.255.255.0
    persistence_timeout 50
    protocol TCP

        real_server 192.168.1.209 80 {
                weight 100
                TCP_CHECK {
                        connect_timeout 3
                }
        }
        real_server 192.168.1.211 80 {
                weight 100
                TCP_CHECK {
                        connect_timeout 3
                }
        }
}
###

On Thu, Apr 9, 2009 at 11:10 AM, <jason.faulkner@xxxxxxxxxxxxx> wrote:

> I'll repost my answer from lvs-users :).
>
> >virtual_server 192.168.1.195{
> >     delay_loop 6
> >     lb_algo rr
> [snip]
> >         real_server 192.168.1.209 80 {
> >                 weight 100
> >                 TCP_CHECK {
>
> You are using "rr" load balancing scheme while still setting weights in the
> config. Change to "wrr" or remove the weights.
>
> Sadly, keepalived doesn't complain when you give it a bad config; it tends
> to just not work.
>
>
>
> --
> Jason Faulkner
> Linux Systems Engineer
> Mailtrust, a division of Rackspace
>
>
>
_______________________________________________
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>