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

Re: Webserver Redundacy

Craig Sanders wrote:
On Wed, Feb 28, 2007 at 11:16:20AM +1100, Craig Sanders wrote:

of course, there's a catch (isn't there always :).  and the catch is that if
you need to store any data (e.g. session info) between browser requests,
you have to do in such a way that it is available no matter which server
happens to serve any particular request.  mostly this means storing your data
in a database rather than on a filesystem.

to illustrate:

user fred visits your site, and fills in a form. he is served by
real-server "web1". you record the data in some way. an hour later he
returns, but this time he is served by real-server "web2".  unless the saved
data is shared somehow (e.g. sql database), web2 will know nothing about fred
or the data he already supplied.

the easiest ways to do this is with a shared or network filesystem (be careful
of file locking), or in a database (let the db handle locking issues).



We are looking an an LVS system as discussed in this thread, with a centralised file-system exported over NFS.

Our sessions are all PHP sessions from /var/lib/php4. If we just NFS export this are we going to have horrible locking problems?

Any suggestions?

Thanks, Andy

PS) I also have similar questions about maildir over NFS.

Reply to: