[Catalyst] Sessions and memcached storage

Lars Balker Rasmussen lars at balker.dk
Wed Dec 5 17:19:39 GMT 2007


On Tue, Dec 04, 2007 at 05:06:34PM -0800, J. G. Konrad wrote:
> I've been having problems with session storage using memcached with more
> than one memcached instance.  The sessions are expiring before they are
> supposed to.  If there is only  one memcached instance everything works like
> it is supposed to.
> 
> Has anyone else had this problem?
> 
> One of my colleagues did some stress testing and he came with some evidence
> that the internal cache ( buck2sock ) is incorrectly mapping to sockets
> under stress. That is to say the value out of the buck2sock cache is
> different than the value from sock_to_host() which should not be the case.
> That could help explain the problems with multiple memcached instances but
> our lost session also happen when the system is not stressed.

Are you using memcached for normal cache as well?  Wouldn't you see the same problem 
here?  If not, try Catalyst::Plugin::Session::Store::Cache (plug, plug) :-)
-- 
Lars Balker Rasmussen                                        Consult::Perl



More information about the Catalyst mailing list