Thanos Chatziathanassiou wrote:
>
> Hi there!
> I am planning on moving our web servers to a linux virtual server
> cluster.
> The current state of LVS has proven itself in tests as both stable and
> fast (the focus here is mainly on high availability first, then load
> balancing).
> I read on the web site that the State/Session/Application Objects are
> cluster friendly via NFS, however I found no further info, so I'm just
> asking if there is anything I should take into consideration before
> moving on (any hands-on experience anyone ?)
>
No personal experience. The file system needs to support
normal file locking semantics. The test for this is
to set up a script like:
<%= $Application->{Count}++ %>
Have the StateDir on the LVS, and hit the web page on both servers
at the same time with an ab ( ApacheBench ) test.
If the file system works, then if you fetch the web page,
it should give you the exact count of the number of ab
requests there were in both tests.
A file system that doesn't support file locking is sure
to not get the count write. AND if StateDB were set to
something like DB_File, your web servers would probably
start segfaulting too because of db corruption, but
SDBM_File does not have that issue.
Note, you can also set up a $Session easily with
Apache::Session going to a database if this doesn't
work for you. But you don't get Apache::ASP session
management and events.
--Josh
_________________________________________________________________
Joshua Chamas Chamas Enterprises Inc.
NodeWorks Founder Huntington Beach, CA USA
http://www.nodeworks.com 1-714-625-4051
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]