Guy a écrit :
> Thanks for the explanation of it Guillaume.
>
> Will a specific user go to the same backend server *every* time he
> connects or is he just kept on the same server until he disconnects or
> the session times out? Just want to be sure of that.
>
has Willy as explain it yes the same user from the same IP will alway
end on the same backend
The important thing here is the client IP, as long as you don't change haproxy config and has long as your coming from the same IP you will always end up on the same server, except if that server has failed.
1 more important issue is if you have 2 haproxy servers they must have the same server defined in the same order if you want to make sure that a specific source ip goes to the same backend even if is goes trough haproxy 1 or 2
Cheer !
> Thanks
> Guy
>
> On 31/03/2008, *Guillaume Bourque* <Guillaume.Bourque#gmail.com
> <mailto:Guillaume.Bourque#gmail.com>> wrote:
>
> Hello Guy,
>
> no prob at all to do what you want with haproxy !
>
> you need to distribute the load using the option balance source.
>
> I'm using haproxy to load balance Terminal Server traffic and it
> is very
> important for us to keep a a user on the same backend and this is
> exactly what balance source does.
>
> Here is my definition for our TS service.
>
> Bye
>
>
> listen rdpfarm :3389
> mode tcp
> balance source
> # keep alive vers client et le serveur
> option tcpka
>
> server RDP-1 10.10.1.110 <http://10.10.1.110> check port 3300
> server RDP-1 10.10.1.110 <http://10.10.1.110> check port
> 3389 backup
> server RDP-2 10.10.1.111 <http://10.10.1.111> check port 3300
> server RDP-2 10.10.1.111 <http://10.10.1.111> check port
> 3389 backup
>
>
> Guy a écrit :
>
> > Hi,
> >
> > I'm currently doing load balancing of http and sql with haproxy and
> > been happy with it, but I'm looking to do load balancing for two
> imap
> > servers as well now. My back end set up allows both imap servers to
> > access all users (via nfs mounts) so the users are not split across
> > the servers. Most imap proxy/load balancing solutions seem to assume
> > that the users are split across the machines. I basically need a
> load
> > balancer that will keep an imap connection on the server it was
> > started on unless the back end server fails. Since haproxy is
> already
> > session aware (or so I've read), I was hoping it would also be
> capable
> > of this? I've seen very few examples of haproxy with imap on the
> net,
> > but there did seem to be one or two cases of it, but I wanted to be
> > sure before spending too much time on it.
> >
> > Thanks
> > Guy
> >
> >
>
>
> --
>
> Guillaume Bourque, B.Sc.,
> consultant, infrastructures technologiques
> Logisoft Technologies inc.
> 514 576-7638
> http://www.logisoftech.com
>
>
>
>
> --
> Don't just do something...sit there!
-- Guillaume Bourque, B.Sc., consultant, infrastructures technologiques Logisoft Technologies inc. 514 576-7638 http://www.logisoftech.comReceived on 2008/03/31 14:23
This archive was generated by hypermail 2.2.0 : 2008/03/31 14:30 CEST