I have just learned that you can emulate locking using Memcache's add
command:
http://code.google.com/p/memcached/wiki/FAQ#Emulating_locking_with_the_add_command

With MySQL, the GET_LOCK command.

With PostgreSQL, using Advisory locks.

Regarding beaker, it appears that is uses local files for locking, so that
would rule it out for load balancing.
http://beaker.groovie.org/configuration.html#options-for-sessions-and-caching

We're using a Cisco 11501 series load balancer, with stick source IP.  So
most requests go to the same server.  The problem is when switching between
HTTP and HTTPS, it uses different content rules, and ends up (sometimes) on
a different server.  There may be a way to solve that with the Cisco
configuration, but I haven't found it just yet.

Anyway, whether I use PostgreSQL or Memcached, I think the solution is just
a couple hours of coding and testing away.
<http://code.google.com/p/memcached/wiki/FAQ#Emulating_locking_with_the_add_command>
Thanks for the input!

JG

On Tue, Dec 15, 2009 at 1:50 PM, Damjan <[email protected]> wrote:

> > > Beaker + memcached backend?
> >
> > But does it have cross process/cross system session locking for life
> > of request with session open?
>
> You mean like,
> - reading the session from mc,
> - changing something
> - saving a new copy to mc
> and if this happens concurently?
>
> From what I see in the code Beaker should support that, but maybe a
> clarification from the author would be needed.
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "modwsgi" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<modwsgi%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/modwsgi?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.


Reply via email to