During failover, you will lose sessions from the node that has gone away. New connections will be sent to the remaining real server(s).
I asked the same thing 3 months ago ;) http://lists.graemef.net/pipermail/lvs-users/2010-September/023555.html Happy new year to you too. Darren -----Original Message----- From: lvs-users-boun...@linuxvirtualserver.org [mailto:lvs-users-boun...@linuxvirtualserver.org] On Behalf Of Mrvka Andreas Sent: 21 December 2010 16:07 To: LinuxVirtualServer.org users mailing list. Subject: Re: [lvs-users] ldirectord and tomcat cluster Hi Darren, again ;-) what you do is .... check the source IP and route it always to the same tomcat node? It this is true - what's about fail-over? This does not work then. In my scenario the webapps store lots of information in memory and share it between each nodes. So I am freed during a breakdown. Isn't it better this way? Whishing you a happy new Year! Andreas -----Original Message----- From: lvs-users-boun...@linuxvirtualserver.org [mailto:lvs-users-boun...@linuxvirtualserver.org] On Behalf Of darren.mans...@opengi.co.uk Sent: Dienstag, 21. Dezember 2010 16:52 To: lvs-users@linuxvirtualserver.org Subject: Re: [lvs-users] ldirectord and tomcat cluster Hello Andreas. I don't do session replication with Tomcat, I found it not to work very well. Instead I just set anything you need sessions on to be source hash scheduler. Darren -----Original Message----- From: lvs-users-boun...@linuxvirtualserver.org [mailto:lvs-users-boun...@linuxvirtualserver.org] On Behalf Of Mrvka Andreas Sent: 21 December 2010 15:34 To: 'LinuxVirtualServer.org users mailing list.' Subject: [lvs-users] ldirectord and tomcat cluster Hello list, I hope you can help all users who share this same problem: I use a 2 cluster node running on each tomat with session replication because I need load balancing (ldirector/ipvs) and on each node the same session information. I configured tomcat like described here: http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html It seems to work well if I do not use ldirectord for balancing. (actually it checks port 80 [apache] ) virtual=10.10.11.139:80 checktype=negotiate fallback=127.0.0.1:80 protocol=tcp real=10.10.11.137:80 gate real=10.10.11.138:80 gate receive="Still alive" request="/test.html" scheduler=wlc service=http But if I activate ldirectord for port 8080 (tomcat) then I get in my web applications lots of "page can not be displayed" messages. Can anybody explain me why this happens or show how to configure it correctly? Thank you. Best regards Andreas _______________________________________________ Please read the documentation before posting - it's available at: http://www.linuxvirtualserver.org/ LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org Send requests to lvs-users-requ...@linuxvirtualserver.org or go to http://lists.graemef.net/mailman/listinfo/lvs-users _______________________________________________ Please read the documentation before posting - it's available at: http://www.linuxvirtualserver.org/ LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org Send requests to lvs-users-requ...@linuxvirtualserver.org or go to http://lists.graemef.net/mailman/listinfo/lvs-users