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.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---