Memcached loses sessions during clusters

Hello,

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
mongrel
cluster instances.

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

=========================================

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

===========================================

-Iain

View this message in context:
http://www.nabble.com/memcached-loses-sessions-during-clusters-tf4286529.html#a12202050
Sent from the RubyOnRails Users mailing list archive at Nabble.com.