Memcached loses sessions during clusters


My memcached seems to work OK for a single mongrel instance. When I
move to
a mongrel cluster, memcache seems to lose the session state between
cluster instances.

I am using the standard memcached configuration (with memcache-client),
shown below. Any ideas?


require_gem ‘memcache-client’ do |config|
config.action_controller.session_store =:mem_cache_store
memcache_options = {
:compression => true,
:debug => false,
:namespace => “pr-#{RAILS_ENV}”,
:readonly => false,
:urlencode => false
memcache_servers = [ ‘’ ]
CACHE.servers = memcache_servers
ActionController::Base.session_options[:cache] = CACHE



View this message in context:
Sent from the RubyOnRails Users mailing list archive at

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs