Skip to content

Instantly share code, notes, and snippets.

@aaronblohowiak
Created May 26, 2011 02:55
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 aaronblohowiak/997967e1ba9b29908296 to your computer and use it in GitHub Desktop.
Save aaronblohowiak/997967e1ba9b29908296 to your computer and use it in GitHub Desktop.
global
stats socket haproxy.sock level admin
listen redis
timeout connect 5000ms
timeout client 50000ms
timeout server 50000ms
bind localhost:7000
mode tcp
server master 127.0.0.1:7001 observe layer4 on-error sudden-death
server slave 127.0.0.1:7777 observe layer4 backup
listen pubwww
mode http
bind localhost:3000
stats enable
stats uri /admin?stats
stats realm Haproxy\ Statistics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment