Re: Sharing session between different zope servers

Laurence Rowe <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
On 15 June 2011 19:05, Baiju M <[email protected]> wrote:
> On Wed, Jun 15, 2011 at 11:07 PM, Hanno Schlichting <[email protected]> wrote:
>> On Wed, Jun 15, 2011 at 7:26 PM, Baiju M <[email protected]> wrote:
>>> Is memcached a reliable storage for session data ?
>>>
>>> I would like to hear others experience with memcached
>>> as a reliable storage for session data.
>>
>> It depends on what kind of reliability you need. Generally your
>> sessions should be short-lived and memcached is fine for that.
>
> Well, what about a persistent session storage for 20 minutes
> in memcached ?  Do we have any control over when the keys are
> evicted ?
>
> I am just reading few articles related to this:
> http://sparklewise.com/?p=538
> http://en.wikipedia.org/wiki/Slab_allocation
> http://code.google.com/p/memcached/wiki/MemcachedSlabAllocator

If you don't supply the -M argument then memcached won't evict objects
before their expiration time, but it may run out of memory.

The new unlogged tables in Postgres 9.1 might be a great fit, though
you'll still wipe sessions when you make changes to your
infrastructure / restart stuff. But most sites can cope with that.

Laurence
_______________________________________________
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 )
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.