Re: round robin and persistent

To: ian <ian.martins@xxxxxxxxxxxx>
Subject: Re: round robin and persistent
Cc: linuxvirtualserver <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
From: Julian Anastasov <uli@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 22 Jun 2000 07:45:39 +0300 (EEST)

On Wed, 21 Jun 2000, ian wrote:

> I've found that when persistence is set (even if its set to just 1 second)
> all requests from a single host are routed to the same RealServer..
> Regardless of the time between requests. I expected that since it is set to
> round robin, if there is a delay between requests longer than the
> persistence value, the request would go to the next RealServer. Can someone
> please explain.

        Some info from

: LinuxDirector will create a connection template between the given client
: and the selected server, then create an entry for the connection in the
: hash table. The template expires in a configurable time, and the
: template won't expire until all its connections expire.

        With TCP it is difficult to use timeout < 60 seconds. 
The TCP protocol requires the connection to end in FIN_WAIT or
TIME_WAIT in some cases. May be with UDP:

        ipchains -M -S 0 0 1
        ipvsadm ... -p 2

        You can break the rules with tuning the
/proc/sys/net/ipv4/vs/ timeouts.

        With this info, now you can analyze your setup and eventually
to send us:

        cat /proc/net/ip_masquerade

> I'm using an unpatched redhat 6.2 kernel. (2.2.14-5)


Julian Anastasov <uli@xxxxxxxxxxxxxxxxxxxxxx>

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