LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] SH scheduling question

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] SH scheduling question
From: Graeme Fowler <graeme@xxxxxxxxxxx>
Date: Tue, 09 Dec 2008 09:39:49 +0000
Hi

On Tue, 2008-12-09 at 09:16 +0100, Kun Richárd wrote:
> We tried a heartbeat+ldirectord combo with SH scheduling, but all of the
> connections gone to the same realserver. 
> We have one VIP address and two realservers, and we want to balance the
> connections between the machines, with this: one session to one server,
> routing by the client IP address.

Well, it should work like this, so...

> Our ldirectord.cf:
> virtual = xxx.xxx.xxx.xxx:80
>         real = 192.168.30.10:80 masq 10
>         real = 192.168.30.11:80 masq 10
>         fallback = 192.168.30.12:8008 masq 10
>         service = http
>         scheduler = sh
>         quiescent = no
>         protocol = tcp
>         request = "test.html"
>         receive = "OK"
>         checktype = negotiate

Looks sane enough.

Is the problem observed with "real" traffic, or in testing? How many
client IP addresses are there?

Can you give us the output from the following when you observe this,
please?

ipvsadm -Ln
ipvsadm -Lnc | head -10

Graeme


_______________________________________________
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>