Re: Sharing session between different zope servers

Georges Racinet <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
On 06/15/2011 07:19 PM, Hanno Schlichting wrote:
> On Wed, Jun 15, 2011 at 6:50 PM, Subish K S <[email protected]> wrote:
>> We have 10+ Zope  (version 2.7) servers ( on different machines). Right now each Zope server independently handles session management which means that if a Zope server fails the users on that Zope server do not get redirected to a functioning Zope server but get "stuck" on the failed Zope server.
>> Is there any way to manage the session of all the zopes servers in a common place.
> 
> If you have only a moderate number of sessions, you can store the
> session storage on the ZEO server. If you use buildout you'd do
> something like:
(snip configuration for that)

> 
> The config is the same if you just put these straight into zope.conf
> and zeo.conf. Zope 2's built-in session machinery should handle a
> couple dozen sessions at a time. Once you go beyond that look at
> Beaker (via collective.beaker) and memcached as a backend.
> 
> This does apply to the currently supported Zope 2 versions (2.12 &
> 2.13). I have no idea what of this works in the ancient 2.7.

It should work, but the problem lies in the "moderate" amount of users,
and the performance issues one may expect (notably read conflicts before
2.8, BTree conflicts before 2.10 or 2.11).
The original poster may also go as far as setting up a separate ZEO
server just for sessions, if that's worth the effort.

-- 
Georges Racinet, http://www.racinet.fr, http://anybox.fr
Zope/CPS & OpenERP expertise, assistance & development
GPG: 0x4862FFF7 identi.ca & twitter: gracinet

_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
signature.asc (application/pgp-signature, 554 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJN+OxkAAoJEOAffZJiF+Z44/8IAJ3ej9BIt88/RA/QVcxoJJu0
t9NyLuK81hukdhgBk5CcNVZiJoLSNscBIaYXYBtbp9N0frt9zJtg893t18m7kRuR
fW8490CiPWw7cNqkl7uyQ2Lq1dmVpFOyUtUWDozVZsm4G1AxzzLQ6Vu8gxvyGxdJ
r6qZvaM+fFRZC/6ywKZLz84czxzEoqFYpgM4Kjaq/jGeUfSV0Olof7dhodozeuRK
//gIOvbg2fe5BO/R2F/7O4yGbTVpeMYhp+pouQS0kgq2YO6Sb9JhKSRTt/qPvddS
yiVbOsoJV1MS1x99eiS+96Lc0Zio3mTgrzsqHpYr/aLNcu9VOvwv389DOu8vAIk=
=lkRb
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.