Warbler 0.9.9 - rails memcached session cache problems

Hello!

I am trying to setup memcached cache storage, but it seems it is not
working 100%.

It seems it is keeping a separate session for each appserver, even
though I am using the same set of memcache instances.
The problems I am experiencing goes away when i disable all but one
appserver.

I also notice that the JSESSIONID that i suppose is something that the
java_session_store and the java app server would use, is still there,
even though I have specified to use another session_store. This is how
my headers look:

Cookie: JSESSIONID=6106aef2b998b0b724a6b4bc289e;
_app_session=13613b882f0e32a034db39e45f87a417

I am using warbler 0.9.9 to deploy a 2.1.0 rails app with the
following configuration settings in my environment.rb:

config.action_controller.session_store = :mem_cache_store
config.cache_store = :mem_cache_store, “web1:11211”, “web2:11211”,
“nfs:11211”


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

are you using the update jruby-rack ? The current stable version I dont
believe supports sessions outside of the cookie. I had to use the trunk
jruby-rack that supports AR and MemCache sessions properly.

Adam

On Mon, Jul 21, 2008 at 2:19 PM, Albert R.
[email protected]

Yes I am using a new jruby-rack.jar … you got memcached working?
have you tried it out on multiple appservers?

Albert

On Mon, Jul 21, 2008 at 10:09 PM, AD [email protected] wrote:

even though I have specified to use another session_store. This is how
config.cache_store = :mem_cache_store, “web1:11211”, “web2:11211”,
“nfs:11211”


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

i had to use it to get ActiveRecord sessions working, have not use
memcached
yet, but its next on my list as we are migrating sessions to Memcached.
Will let you know how it goes.

Adam

On Mon, Jul 21, 2008 at 4:15 PM, Albert R.
[email protected]

Yeah, I was also having issues for the active_record_store with the
old one, but the new jar works for me too. Although memcache sessions
does not. I have filed a JIRA bug report here:

http://jira.codehaus.org/browse/JRUBY-2844

If you have any success, please post there!

Albert

On Mon, Jul 21, 2008 at 11:19 PM, AD [email protected] wrote:

have you tried it out on multiple appservers?

On Mon, Jul 21, 2008 at 2:19 PM, Albert R.

The problems I am experiencing goes away when i disable all but one

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

is it just using memcache as the session store or memcache in general?
What if you used activerecord as the session_store but then use cache_fu
to
cache session DB hits, will that work ?

Adam

On Mon, Jul 21, 2008 at 4:46 PM, Albert R.
[email protected] wrote:

Yeah, I was also having issues for the active_record_store with the
old one, but the new jar works for me too. Although memcache sessions
does not. I have filed a JIRA bug report here:

http://jira.codehaus.org/browse/JRUBY-2844

If you have any success, please post there!

Thanks for the bug and the feedback guys. I’ll try to look at this soon.

/Nick


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

I dont know if it is using memcached in general that is the problem. I
know that the session handling wasnt working though. Using cache_fu or
builtin rails cache to cache sessions might work still. I havent
explored if there are any issues with memcache/memcache-client and
jruby.

Albert

On Tue, Jul 22, 2008 at 4:27 AM, AD [email protected] wrote:

old one, but the new jar works for me too. Although memcache sessions


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

No, issue still open. I am using the AR session backend, which works
for my situation (clustered) for the moment.

On Mon, Aug 4, 2008 at 3:54 AM, AD [email protected] wrote:

jruby.

On Mon, Jul 21, 2008 at 6:15 PM, Nick S. [email protected]

If you have any success, please post there!


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Albert,
Did you ever get this resolved?

On Tue, Jul 22, 2008 at 6:20 AM, Albert R.

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