Hello,
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 http://www.linuxvirtualserver.org/persistence.html:
: 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)
Regards
--
Julian Anastasov <uli@xxxxxxxxxxxxxxxxxxxxxx>
|