Warbler 0.9.9 - rails memcached session cache problems

View: New views
10 Messages — Rating Filter:   Alert me  

Warbler 0.9.9 - rails memcached session cache problems

by Albert Ramstedt-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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



Re: Warbler 0.9.9 - rails memcached session cache problems

by AD-16 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 Ramstedt <albert.ramstedt@...> wrote:
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




Re: Warbler 0.9.9 - rails memcached session cache problems

by Albert Ramstedt-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 <straightflush@...> wrote:

> 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 Ramstedt <albert.ramstedt@...>
> wrote:
>>
>> 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
>>
>>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Warbler 0.9.9 - rails memcached session cache problems

by AD-16 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 Ramstedt <albert.ramstedt@...> wrote:
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 <straightflush@...> wrote:
> 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 Ramstedt <albert.ramstedt@...>
> wrote:
>>
>> 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
>>
>>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email




Re: Warbler 0.9.9 - rails memcached session cache problems

by Albert Ramstedt-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 <straightflush@...> wrote:

> 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 Ramstedt <albert.ramstedt@...>
> wrote:
>>
>> 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 <straightflush@...> wrote:
>> > 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 Ramstedt
>> > <albert.ramstedt@...>
>> > wrote:
>> >>
>> >> 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
>> >>
>> >>
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> 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



Re: Warbler 0.9.9 - rails memcached session cache problems

by Nick Sieger-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Jul 21, 2008 at 4:46 PM, Albert Ramstedt
<albert.ramstedt@...> 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



Re: Warbler 0.9.9 - rails memcached session cache problems

by AD-16 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 6:15 PM, Nick Sieger <nicksieger@...> wrote:
On Mon, Jul 21, 2008 at 4:46 PM, Albert Ramstedt
> 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




Re: Warbler 0.9.9 - rails memcached session cache problems

by Albert Ramstedt-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 <straightflush@...> wrote:

> 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 6:15 PM, Nick Sieger <nicksieger@...> wrote:
>>
>> On Mon, Jul 21, 2008 at 4:46 PM, Albert Ramstedt
>> <albert.ramstedt@...> 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
>>
>>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Warbler 0.9.9 - rails memcached session cache problems

by AD-16 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Albert,

 Did you ever get this resolved?

On Tue, Jul 22, 2008 at 6:20 AM, Albert Ramstedt <albert.ramstedt@...> wrote:
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 <straightflush@...> wrote:
> 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 6:15 PM, Nick Sieger <nicksieger@...> wrote:
>>
>> On Mon, Jul 21, 2008 at 4:46 PM, Albert Ramstedt
>> <albert.ramstedt@...> 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
>>
>>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email




Re: Warbler 0.9.9 - rails memcached session cache problems

by Albert Ramstedt-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 <straightflush@...> wrote:

> Albert,
>  Did you ever get this resolved?
>
> On Tue, Jul 22, 2008 at 6:20 AM, Albert Ramstedt <albert.ramstedt@...>
> wrote:
>>
>> 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 <straightflush@...> wrote:
>> > 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 6:15 PM, Nick Sieger <nicksieger@...>
>> > wrote:
>> >>
>> >> On Mon, Jul 21, 2008 at 4:46 PM, Albert Ramstedt
>> >> <albert.ramstedt@...> 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
>> >>
>> >>
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> 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


LightInTheBox - Buy quality products at wholesale price