maintaining session variables using zeocluster
Hellol, We are using a zeocluster with six clients and use pound for load balancing betwwen them. However I am having problems using session variables. I think that session variables are maintained separately for each client i.e a value set to sesssion variable when pound sends a request to one client cannot be retreived when a request is sent to some other client. What can be done in such a situation ? Thanks in advance Rajiv Nair
On Sat, Sep 12, 2009 at 2:29 PM, nair rajiv <nair331@gmail.com> wrote:
Hellol,
We are using a zeocluster with six clients and use pound for load balancing betwwen them. However I am having problems using session variables. I think that session variables are maintained separately for each client i.e a value set to sesssion variable when pound sends a request to one client cannot be retreived when a request is sent to some other client. What can be done in such a situation ?
Thanks in advance Rajiv Nair
Sorry I forgot to mention we are using Zope 2.9.6 and plone version 2.5.2 Rajiv Nair
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 nair rajiv wrote:
Hellol,
We are using a zeocluster with six clients and use pound for load balancing betwwen them. However I am having problems using session variables. I think that session variables are maintained separately for each client i.e a value set to sesssion variable when pound sends a request to one client cannot be retreived when a request is sent to some other client. What can be done in such a situation ?
You can either: - Mount the session storage over ZEO (google "zeo session storage"). - Use a non-ZODB-based sessioning implementation, e.g. the one in mcdutils: http://agendaless.com/Members/tseaver/software/mcdutils/ Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFKrmPM+gerLs4ltQ4RAsQsAKDXC/wi+G0tiIC18HDmXk/UJkPypQCfUDVw hMxFowHcad2W3muHf5m130U= =1ptu -----END PGP SIGNATURE-----
On Mon, Sep 14, 2009 at 11:39:56AM -0400, Tres Seaver wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
nair rajiv wrote:
Hellol,
We are using a zeocluster with six clients and use pound for load balancing betwwen them. However I am having problems using session variables. I think that session variables are maintained separately for each client i.e a value set to sesssion variable when pound sends a request to one client cannot be retreived when a request is sent to some other client. What can be done in such a situation ?
You can either:
- Mount the session storage over ZEO (google "zeo session storage").
- Use a non-ZODB-based sessioning implementation, e.g. the one in mcdutils: http://agendaless.com/Members/tseaver/software/mcdutils/
Or configure Pound for "session affinity" - send all requests for the same session to the same back-end server. Read the "Sessions" section of http://www.apsis.ch/pound/ The problem with this approach is that it tends to reduce the effectiveness of load-balancing. -- Paul Winkler http://www.slinkp.com
participants (3)
-
nair rajiv -
Paul Winkler -
Tres Seaver