Re: LoadBalancing with sessions

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

 




El 19/06/2007, a las 11:23, Jorge González escribió:

Hi all!

I need to build a cluster with 2 Apache. PHP will be installed in both web servers so I need to mangle sessions. I tried balancing with Apache and mod_proxy_balanced but when there is a session the user goes always to the same backend web server. I think this is not usefull because if the server where the user is goes down then the user could not keep the session.

How do you do guys apache load balancing with persistant sessions? LVS? Heartbeat + ldirector?

Dear Jorge,

you can try with LVS persistent connection option, it works fine for me:

http://www.linuxvirtualserver.org/docs/persistence.html

Another option is to store sessions in a DB, or in a distributed memory object caching system like memcached:

http://danga.com/memcached/

Regards,

--
Santi Saez




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux