[Ruby] memcache-client advice
Eric Hodel
drbrain at segment7.net
Sat Apr 21 13:36:45 PDT 2007
On Apr 19, 2007, at 14:32, James Hillyerd wrote:
> We're using memcache-client to store sessions and cache some data.
> Right now we have two app servers, each one with a memcached instance.
> Rails is setup to talk to both memcacheds. The problem is if one of
> those memcached instances goes down due to maintenance or server
> problems, our webapp completely locks up.
>
> I traced it back to rails not being able to connect to the missing
> memcache server, and if I edit the config file to only use the local
> memcache, things start working again. But this removes our ability to
> failover, or at least limp along on a single app server.
>
> I saw something about a request_timeout attribute in the MemCache
> class, but it didn't look like it's actually used in the code.
It is ignored.
> Any recommendations?
Don't quit memcached?
More information about the Ruby
mailing list