LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Some issues on LVS-DR with Squid

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Some issues on LVS-DR with Squid
From: Jakub Suchy <jakub@xxxxxxx>
Date: Wed, 23 Feb 2005 21:20:36 +0100
Janno de Wit wrote:
> Hi Jakub,
> 
> Jakub Suchy (jakub@xxxxxxx) wrote:
> > >   not breaking after some minutes (disconnecting after 2 minutes).
> > Do you use Source Hashing algorithm?
> 
> No, whe use simple round-robin algorithm..

round-robin algorithm is not usable for squid...
some servers (banks etc.) check clients ip address and terminates it's 
connection if it changes.
when you use source-hashing algorithm, IPVS checks client against it's local
table and forwards connection always to same squid real server, so clients are
accessing web through same squid always.
source-hashing can get disbalanced in case you have few clients and one of them
use squid more frequently than others. but in case of more clients, it's
statistically balanced.

Jakub
P.S.: i am trying to setup simple keepalived VRRP protocol with 2 directors and
2 real servers and LVS-DR. i am not succesfull, the docs are not enough
explanative. does anybody has working setup example? thanks

-- 
-- Jakub Suchy <jakub.suchy@xxxxxxxxx>
-- LOGIOS s.r.o, V Podhájí 776/30, 400 01 Ústí nad Labem
-- tel.: +420 474 745 159, fax: +420 474 745 160
-- e-mail: info@xxxxxxxxx, web: http://www.logios.cz

<Prev in Thread] Current Thread [Next in Thread>