Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

session sharing in a cluster

Posted on 2006-06-29
10
Medium Priority
?
399 Views
Last Modified: 2013-11-15
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
Comment
Question by:piximetry
  • 5
  • 3
9 Comments
 
LVL 33

Expert Comment

by:snoyes_jw
ID: 17013883
0
 

Author Comment

by:piximetry
ID: 17013944
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
 
LVL 8

Accepted Solution

by:
RWJDCom earned 750 total points
ID: 17014509
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
Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

 
LVL 8

Expert Comment

by:RWJDCom
ID: 17014514
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
 

Author Comment

by:piximetry
ID: 17015703
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
 
LVL 8

Expert Comment

by:RWJDCom
ID: 17016026
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
 

Author Comment

by:piximetry
ID: 17016147
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
 

Author Comment

by:piximetry
ID: 17036213
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
 

Author Comment

by:piximetry
ID: 17270378
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
Suggested Courses

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question