RDP cookies with balance leastconn?

From: Malcolm Turnbull <malcolm#loadbalancer.org>
Date: Mon, 12 Apr 2010 11:08:41 +0100


Hi,

I managed to convince myself that balance leastconn would work if I replaced balance rdp-cookie in the following config:

defaults

        clitimeout 1h
        srvtimeout 1h
   listen VIP1 192.168.0.10:3389
        mode tcp
        tcp-request inspect-delay 5s
        tcp-request content accept if RDP_COOKIE
        persist rdp-cookie
        balance rdp-cookie
        option tcpka
        option tcplog
        server Win2k8-1 192.168.0.11:3389 weight 1 check   inter 2000
rise 2 fall 3
        server Win2k8-2 192.168.0.12:3389 weight 1 check   inter 2000
rise 2 fall 3
        option redispatch

However after further testing i realised my initial success was just luck... as it seems to break the cookie persistence completely?

How easy would it be to make new connections use leastconn?

Otherwise you can end up with VERY uneven load balancing if you have enough long sessions.

--
Regards,

Malcolm Turnbull.

Loadbalancer.org Ltd.
Phone: +44 (0)870 443 8779
http://www.loadbalancer.org/
Received on 2010/04/12 12:08

This archive was generated by hypermail 2.2.0 : 2010/04/12 12:15 CEST