Are Mongrel instances "sticky" with respect to sessions?

Hello Wes.

Session affinity is generally achieved at the load balancer level, and Apache 2.2 supports this as well.

See mod_proxy - Apache HTTP Server Version 2.2 and search locally for lbmethod for details.

Why do you want session affinity? It makes a ton of sense is HUGE installations, but not so much for smaller ones.

Wes Gamble wrote:

Why do you want session affinity? It makes a ton of sense is HUGE installations, but not so much for smaller ones.

Because I ended up having to use a custom in-memory persistence scheme to handle objects that were too large to place on the session (and would cause Rails to crash during session serialization/deserialization). So I have a hash which stores some larger things (parsed HTML and Excel spreadsheet data) that I would like to keep around across requests given the relatively high cost of generating them.

...

If session affinity doesn't work with Mongrel, then I guess I can look into Drb.

Thanks, Wes

Check out memcached -

http://nubyonrails.com/articles/2006/08/17/memcached-basics-for-rails

sounds like your scheme implements a subset of what memcached already does.

HTH,

-b