Skip to content

Instantly share code, notes, and snippets.

Created June 5, 2014 20:24
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 anonymous/a942fc39a06ca195c0e3 to your computer and use it in GitHub Desktop.
Save anonymous/a942fc39a06ca195c0e3 to your computer and use it in GitHub Desktop.
global
log 127.0.0.1 local0
maxconn 256000
user haproxy
group haproxy
daemon
defaults
log global
option redispatch
retries 3
timeout http-request 10s
timeout queue 1m
timeout connect 10s
timeout client 1m
timeout server 1m
timeout check 10s
listen keystone
bind *:5000
balance source
option tcpka
option httpchk
option tcplog
server proxy-2 x.x.x.x:5000 check inter 2000 rise 2 fall 5
server proxy-3 x.x.x.x:5000 check inter 2000 rise 2 fall 5
listen keystone-admin
bind *:35357
balance source
option tcpka
option httpchk
option tcplog
server proxy-2 x.x.x.x:35357 check inter 2000 rise 2 fall 5
server proxy-3 x.x.x.x:35357 check inter 2000 rise 2 fall 5
listen swift_proxy_cluster
bind *:8080
balance source
option tcplog
option tcpka
server proxy-2 x.x.x.x:8080 check inter 2000 rise 2 fall 5
server proxy-3 x.x.x.x:8080 check inter 2000 rise 2 fall 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment