problems with session timeout

From: Carlo Granisso <c.granisso#dnshosting.it>
Date: Mon, 21 Dec 2009 18:41:56 +0100


Hello, I have this configuration for my proxy:  

defaults

        log global

        option httplog

        option logasap

        option tcplog

        retries 2

        redispatch

        maxconn 2000

        option abortonclose

        contimeout 1800000

        clitimeout 1800000

        srvtimeout 1800000  

listen MY_BALANCER PUBLIC_IP_ADDRESS:80,PUBLIC_IP_ADDRESS:443

        option persist

        option redispatch

        option httpclose  

        option httpchk GET ROOT/drain.html

        http-check disable-on-404

        balance source

#option ssl-hello-chk

        option forwardfor

#source 192.168.0.230 usesrc clientip

        cookie SERVERID insert

        appsession SERVERID len 52 timeout 30m

        server SERVER1 192.168.0.150 check port 80 inter 1000 rise 1 fall 2 maxconn 1000

        server SERVER2 192.168.0.151 check port 80 inter 1000 rise 1 fall 2 maxconn 1000  

For the configuration, sessions timeout must be 30minutes. Right?  

So, if I put in "maintenance mode" SERVER2, sessions on this servers expires within seconds and haproxy redirect users to SERVER1.  

Have you got ideas?    

Thanks for your help.    

Carlo Received on 2009/12/21 18:41

This archive was generated by hypermail 2.2.0 : 2009/12/21 18:45 CET