Created
October 17, 2011 00:20
-
-
Save steppat/1291637 to your computer and use it in GitHub Desktop.
HAProxy config (sticky)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global | |
daemon | |
maxconn 256 | |
defaults | |
mode http | |
timeout connect 5000ms | |
timeout client 50000ms | |
timeout server 50000ms | |
frontend http-in | |
bind *:8080 | |
default_backend servers | |
backend servers | |
option httpclose | |
option redispatch | |
cookie JSESSIONID prefix | |
server tomcat1 localhost:8081 cookie tomcat1 check inter 5000 maxconn 32 | |
server tomcat2 localhost:8082 cookie tomcat2 check inter 5000 maxconn 32 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment