Directors user sessions
Florian Engelhardt
f.engelhardt at 21torr.com
Fri Mar 28 12:58:52 CET 2008
On Fri, 28 Mar 2008 12:05:23 +0100
<duja at torlen.net> wrote:
> Hi,
>
> I got a question regarding the Directors in varnish vcl.
> If user A is logging in to http://mywebsite.com and the website is
> using varnish (with directors) in front of 4 backend servers. The 4
> backend servers is identical.
>
> User A is logging in and hits server 1. He then goes to his profile
> and hits server 2. The server 2 doesn't know that user A is logged
> and redirect him to some "Not logged in"-page.
>
> Is there any way for varnish to lookup which server that user A
> should be directed to? Some kind of Sticky Session function?
You could store the sessions on a separate server, for instance on a
memcache or in a database, or mount the the filesystem where the
session is stored via nfs on every backend server.
Kind regards
Flo
More information about the varnish-misc
mailing list