• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 401
  • Last Modified:

session sharing in a cluster

I have several servers in my cluster: A, B and C. The users are directed to one of these servers by a load balancing solution. What we need is a fast decentralized/redundant method to store serialized session data. Standard PHP sessions are fast enough, but they're local to each server... which won't work for a cluster.

We're not interested in a solution using a database. I was thinking in the direction of memcached, but the PHP API seems to be a bit underdeveloped.

Does anyone know the ideal solution for this supposedly common problem?
0
piximetry
Asked:
piximetry
  • 5
  • 3
1 Solution
 
piximetryAuthor Commented:
I'd rather use something else than msession. According to a comment by the author on that page, it's an abandoned project... eek.
0
 
RWJDComCommented:
I've been playing with ZendPlatform and it does Session Clustering.  Check it out it may solve your problems, http://www.zend.com/products/zend_platform.  It actually speeds up your PHP scripts too.  :)
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
RWJDComCommented:
This is a little bit from the Zend site...

Session Clustering:

Performance boost (up to x10)
Locking mechanism to ensure data integrity
Works seamlessly with existing PHP code
Integrates with load balancers
Linear scalability for additional machines
0
 
piximetryAuthor Commented:
Zend platform looks interesting, but I want to go with an open source and free solution... I know they're out there. ZP costs about $1000 per year per processor, so that would add up too quickly.
0
 
RWJDComCommented:
It's worth checking it out.  You can get a free developers license for a year.  I don't know if there are any open source session clustering solutions out there.  If I come across one I will definately post it here for you.

Sorry I couldn't give you a better answer.
0
 
piximetryAuthor Commented:
Okay, no problem :-) The Zend platform does seem promising, but the only thing I need is the session clustering. I'm leaning towards memcached right now...
0
 
piximetryAuthor Commented:
A minor update: I've been experimenting with memcached and it looks quite promising. I found out that memcached is also used for major sites like facebook, slashdot, etc... the only question is how well it performs for session management, because a failing memcached backend should not result in people not being able to login.
0
 
piximetryAuthor Commented:
I decided to make my own system using memcached backends, but RWJDCom's answer was a reasonable solution to the question as it was posed.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now