That's what I was thinking. Do you have a few machines you could try it
with? You could also try something like that using a bunch of VMWare (or
similar virtual machine) systems...

-Dash

-----Original Message-----
From: Matt Babineau [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, September 18, 2002 7:29 AM
To: 'Luis Ferro'; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] SESSIONS- clustered environment


What if I made a network share and all the sessions were stored in a
shared space?

Matt Babineau
MCWD / CCFD
-----------------------------------------
e: [EMAIL PROTECTED]
p: 603.943.4237
w: http://www.criticalcode.com
PO BOX 601
Manchester, NH 03105


-----Original Message-----
From: Luis Ferro [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, September 18, 2002 5:49 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] SESSIONS- clustered environment


You have two solutions (IMHO):

a) Database storage

    Replacement of the session_init and session_save/register functions 
with others that will save/load the sessions from a database storage.

    Pros: easy to implement
    Cons: dependency of the database storage reliability, scalability 
problems
   
b) Distributed sessions

    Replace the same functions with some that will propagate the session

values to all the servers in the cluster, so that the next request can 
be served by any and the session won't be corrupted. [this would mandate

the existence of a "cluster" layer in the servers configuration]

    Pros: high availability, redundancy and scalability
    Cons: very dificult to implement

The first method can perform better in low trafic environments... but 
will scale worst as the trafic will rise... the second method is much 
more granular, with the performance cost more stable in all trafic 
conditions,

The first method will have is performance dependent on the performance 
of the database storage... the second method will have performance 
dependent on how many servers exist to syncronize the sessions...

The non-cluster solution would be to have all the sessions register in 
only one server, and get all the content in a second line of web 
servers... that way, the main server would only handle connections and 
sessions, with all the content and data communications bellonging to the

second line servers...

Cheers,
Luis Ferro
TelaDigital

Matt Babineau wrote:

>What would be the best way to handle sessions in a clustered 
>environment without making the load-balancing persistant?
> 
>Matt Babineau
>MCWD / CCFD
>-----------------------------------------
>e:  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
>p: 603.943.4237
>w:  <http://www.criticalcode.com/> http://www.criticalcode.com PO BOX 
>601 Manchester, NH 03105
> 
>
>  
>



---
[This E-mail scanned for viruses by Declude Virus]


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to