Skip to content

Instantly share code, notes, and snippets.

@steppat
Created October 17, 2011 00:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steppat/1291637 to your computer and use it in GitHub Desktop.
Save steppat/1291637 to your computer and use it in GitHub Desktop.
HAProxy config (sticky)
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