Re: Sessio variables and Load Balancing

From: Date: Fri, 30 Jun 2000 15:20:42 +0000
Subject: Re: Sessio variables and Load Balancing
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-23051@lists.php.net to get a copy of this message
How do we all know that NFS is unreliable under Linux? Why is it unreliable and were do I find documentation to support this? I've heard people say this, but never with any information to back that up.. seems more of a "feeling". It might be an *easier*solution to use the database to store sessions, but if you have thousands of visitors per day.. you will begin to drag your database server to the pits of hell with the number of queries you will be making just to retrieve session data, not counting the queries you would already be making to serve various dynamic content. Not recommended for a site of modest size. If you have the money to throw at the amount of hardware to make this feasible, you can just spend $25,000 on a real hardware load balancer that handle the contiguous sessions for you... Daniel At 07:30 PM 06/29/2000 -0500, you wrote:
But we all know how unreliable and slow NFS is on linux and probably other platforms, a better solution is to use your database of choice and store cookies there. An article on phpbuilder.com (http://phpbuilder.com/columns/ying20000602.php3) highlights how to write custom session handlers to do just that. not only would this be fast and effecient, it would allow multiple webserver to pull sessions from a common database.
    Joshua
----- Original Message ----- From: "Michael Stearne" <mstearne@entermix.com> To: "News Sympatico" <yanik@bigfoot.com> Cc: <php-dev@lists.php.net> Sent: Thursday, June 29, 2000 3:43 PM Subject: Re: [PHP-DEV] Sessio variables and Load Balancing PHP stores it's session variables in the /tmp directory by default, but another directory can be specified in the php.ini file. I am guessing that if you mount an NFS volume between all the web servers and have them all point their session directory to the same place, the session will be maintained no matter what computer the user is at as long as the cookie comes from the domain of the server and not a specific computer. I'm thinking if the session cookie is set from .mysite.com and any computer in *.mysite.com stores it's session variables in the shared directory there shouldn't be a problem. You can avoid any cookie situation by explicitly passing the session variables and aviod cookies also. Michael News Sympatico wrote:
Hi.
    Has anyone been using session variables on a load balancing
environment?
I was wondering how PHP managed it's session variables and if it had problems in that sort of settings. Thanks Yanik Proulx yanik@k-os.com Technical Leader http://www.goalnetwork.com http://www.k-os.com -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.dev (#23051) next »