* how does LVS persistence work?
@ 2011-10-18 21:26 Tomasz Chmielewski
2011-10-18 21:40 ` Simon Horman
0 siblings, 1 reply; 2+ messages in thread
From: Tomasz Chmielewski @ 2011-10-18 21:26 UTC (permalink / raw)
To: lvs-devel
According to http://www.linuxvirtualserver.org/docs/persistence.html:
In the persistent port, when a client first accesses the
service, 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.
Suppose I have two real servers and persistence set to 30 minutes.
How will LVS persistence behave for a client which first connects at 01:00?
1) persistence is always "first connected + 30 minutes".
When the client connects at 01:00, LVS sets persistence to 30 minutes.
All connections from this client, between 01:00-01:30 will be directed
to one server.
At ~01:31, persistence will expire and will be set again; it's possible
that the client will hit the other server, even though the last
connection was made at 01:29.
Meaning - if the client makes one short connection every 25 minutes and
persistence is set to 30 minutes, the chances are it will hit a
different server (almost) every time.
lvs-devel@vger.kernel.org
2) persistence is always extended and is "last connection + 30 minutes".
In other words - if the client makes one short connection every 25
minutes and persistence is set to 30 minutes, it is practically
guaranteed the client will always hit the same server.
Which one is true, 1) or 2)?
PS. http://lists.graemef.net/mailman/listinfo/lvs-users seems dead?
--
Tomasz Chmielewski
http://wpkg.org
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: how does LVS persistence work?
2011-10-18 21:26 how does LVS persistence work? Tomasz Chmielewski
@ 2011-10-18 21:40 ` Simon Horman
0 siblings, 0 replies; 2+ messages in thread
From: Simon Horman @ 2011-10-18 21:40 UTC (permalink / raw)
To: Tomasz Chmielewski; +Cc: lvs-devel
On Tue, Oct 18, 2011 at 11:26:43PM +0200, Tomasz Chmielewski wrote:
> According to http://www.linuxvirtualserver.org/docs/persistence.html:
>
> In the persistent port, when a client first accesses the
> service, 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.
>
>
> Suppose I have two real servers and persistence set to 30 minutes.
>
>
> How will LVS persistence behave for a client which first connects at 01:00?
>
> 1) persistence is always "first connected + 30 minutes".
>
> When the client connects at 01:00, LVS sets persistence to 30 minutes.
> All connections from this client, between 01:00-01:30 will be
> directed to one server.
> At ~01:31, persistence will expire and will be set again; it's
> possible that the client will hit the other server, even though the
> last connection was made at 01:29.
>
> Meaning - if the client makes one short connection every 25 minutes
> and persistence is set to 30 minutes, the chances are it will hit a
> different server (almost) every time.
>
> lvs-devel@vger.kernel.org
> 2) persistence is always extended and is "last connection + 30 minutes".
>
> In other words - if the client makes one short connection every 25
> minutes and persistence is set to 30 minutes, it is practically
> guaranteed the client will always hit the same server.
>
>
> Which one is true, 1) or 2)?
2) is true.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-10-18 21:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-18 21:26 how does LVS persistence work? Tomasz Chmielewski
2011-10-18 21:40 ` Simon Horman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.