[Ruby] memcache-client advice
James Hillyerd
james at hillyerd.com
Thu Apr 19 14:32:34 PDT 2007
Hello.
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.
Any recommendations?
Thanks.
-james
--
James A. Hillyerd <james at hillyerd.com>
Chief Technical Officer - ActiveRain Corp
More information about the Ruby
mailing list