Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Users

maintaining session variables using zeocluster

 

 

Zope users RSS feed   Index | Next | Previous | View Threaded


nair331 at gmail

Sep 12, 2009, 1:59 AM

Post #1 of 4 (1772 views)
Permalink
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
_______________________________________________
Zope maillist - Zope [at] zope
https://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )


nair331 at gmail

Sep 12, 2009, 2:03 AM

Post #2 of 4 (1652 views)
Permalink
Re: maintaining session variables using zeocluster [In reply to]

On Sat, Sep 12, 2009 at 2:29 PM, nair rajiv <nair331 [at] gmail> 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
_______________________________________________
Zope maillist - Zope [at] zope
https://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )


tseaver at palladion

Sep 14, 2009, 8:39 AM

Post #3 of 4 (1645 views)
Permalink
Re: maintaining session variables using zeocluster [In reply to]

-----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 [at] palladion
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-----

_______________________________________________
Zope maillist - Zope [at] zope
https://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )


slinkp at gmail

Sep 14, 2009, 9:08 AM

Post #4 of 4 (1641 views)
Permalink
Re: maintaining session variables using zeocluster [In reply to]

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
_______________________________________________
Zope maillist - Zope [at] zope
https://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )

Zope users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.