Re: haproxy + IMAP

From: Guy <wyldfury#gmail.com>
Date: Mon, 31 Mar 2008 03:06:31 +0100


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.

Thanks
Guy

On 31/03/2008, Guillaume Bourque <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 check port 3300
> server RDP-1 10.10.1.110 check port 3389 backup
> server RDP-2 10.10.1.111 check port 3300
> server RDP-2 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!
Received on 2008/03/31 04:06

This archive was generated by hypermail 2.2.0 : 2008/03/31 04:15 CEST