[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: blancing conections



Hi,
if you use php, you can store session data in the memcached.
Search with php+memcached keywords.

On 01/15/2011 11:37 PM, Bob Proulx wrote:
Jesus arteche wrote:
I have a web application that I want to scale in a cluster like Amazon EC2.
I have a load balancer and behind several web server (Apache2). My question
is:

How can I make for the session that is iniciated in webserver 1...will be
available in webserver 2 cause the load balancer maybe can send the
conection some times from 1 to 2 or viceversa.
One idea.  Store the session in a cookie (like Rails default cookie
store) so that it is provided by the client with every http request.
There are good things and bad things about using cookie based sessions
however.

One idea.  Store the session in a database that is shared between all
of the web application servers.  There are good things and bad things
about using database based sessions however.

Bob


--
/**
 * @author Atıf CEYLAN
 * Software Developer&  System Admin
 * http://www.atifceylan.com
 */


Reply to: