[Zope-dev] Sharing session between different zope servers

Laurence Rowe l at lrowe.co.uk
Wed Jun 15 14:46:10 EDT 2011


On 15 June 2011 19:05, Baiju M <baiju.m.mail at gmail.com> wrote:
> On Wed, Jun 15, 2011 at 11:07 PM, Hanno Schlichting <hanno at hannosch.eu> wrote:
>> On Wed, Jun 15, 2011 at 7:26 PM, Baiju M <baiju.m.mail at gmail.com> 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


More information about the Zope-Dev mailing list