Persistence Issue

From: Brenden Bixler <>
Date: Sun, 9 Nov 2008 22:00:44 -0500

Hello all.

I am having a little trouble configuring HA-Proxy 1.2.17 on FreeBSD 7. Specifically, I want to enable persistence, so that once a request hits server A, all future requests during that session stay on server A.

Server A is running FreeBSD 7, Apache 2x, Tomcat 6 using mod_jk on port 8080. Server B is running FreeBSD 7, Tomcat 6 standalone on 8081. I can go to either server via its IP Address and everything works as expected.

My current config file:


	log global
	mode http
listen http_proxy
	bind :80
	mode http
	balance roundrobin
	cookie jSessionID prefix
	srvtimeout 10000
	retries 2

    option httpchk HEAD /sa
    server web1 XXX.XXX.XXX.XXX:8080 cookie server01 check     server web2 YYY.YYY.YYY.YYY:8081 cookie server02 check     redispatch

This doesn't work either:

 listen http_proxy :80

        mode http
        cookie SERVERID
        balance roundrobin
        server web1 XXX.XXX.XXX.XXX:8080 cookie server01
        server web2 YYY.YYY.YYY.YYY:8081 cookie server02

Any suggestions would be greatly appreciated.


Brenden Bixler Received on 2008/11/10 04:00

This archive was generated by hypermail 2.2.0 : 2008/11/10 04:15 CET