We
aren't clustered (currently), but soon I want to run the ThreadedAppServer on
multiple machines again. We backed away from this a while ago for
other reasons, but at the time we used the session FileStore with an NFS-mounted
directory. We tried sticky sessions in our load-balancer (Cisco
LocalDirector) but we never got them to work reliably.
Our
applications (WebKit included) are already quite database-intensive, so I'd
rather try something like memcached before doing an additional update on each
page switch. The memcached daemons in a few places on the network seems ideal,
and my (simple-minded) benchmarks comparing Oracle retrievals vs memcached
retrievals shows them to be 10-12 times faster.
Before
implementing our earlier load-balanced configuration, we benchmarked the
difference between FileStore and MemoryStore. It was only about a 15% penalty
for the FileStore. That testing was with a local filesystem, not NFS.
FileStore can introduce some hard-to-find bugs when two windows of the same
session attempt to update the session file at the same time.
I
haven't got any numbers comparing MemoryStore (or DynamicStore) with memcached
storage, but I would expect MemoryStore to perform a few percent better (data is
already in the process, no need for possible network
traffic).
I'm
still hoping to hear of an existing implementation,
though...
Cheers!
-----Original Message----- Hancock, David
(DHANCOCK) wrote:
From: Ben Parker [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 25, 2005 6:22 PM To: Hancock, David (DHANCOCK) Cc: webware-discuss@lists.sourceforge.net Subject: Re: [Webware-discuss] Anybody made a memcached SessionStore?
Interesting - are you looking to use this in a clustered environment? I wonder if memcached would give any performance benefit over SessionMemoryStore for a single server. Fairly soon, I will have to implement clustered app server machines for load-balancing and failover, and I'm looking at using a database session store to achieve session management across multiple machines without requiring sticky sessions. although I'm still just beginning to get the test environment together. peace! Ben |
Title: Message
- [Webware-discuss] Anybody made a memcached Sessi... Hancock, David (DHANCOCK)
- Re: [Webware-discuss] Anybody made a memcac... Ben Parker
- RE: [Webware-discuss] Anybody made a memcac... Hancock, David (DHANCOCK)
- Re: [Webware-discuss] Anybody made a me... Ben Parker
- RE: [Webware-discuss] Anybody made a memcac... Geoffrey Talvola
- Re: [Webware-discuss] Anybody made a me... Ben Parker
- Re: [Webware-discuss] Anybody made ... Chuck Esterbrook
- Re: [Webware-discuss] Anybody m... Ben Parker
- Re: [Webware-discuss] Anybody m... Nick Murtagh