Created
September 5, 2012 22:51
-
-
Save specialunderwear/3646834 to your computer and use it in GitHub Desktop.
haproxy config file
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 | |
maxconn 4096 | |
pidfile /var/run/haproxy.pid | |
daemon | |
defaults | |
mode http | |
retries 3 | |
option redispatch | |
maxconn 2000 | |
contimeout 5000 | |
clitimeout 50000 | |
srvtimeout 50000 | |
listen <%= @hostname -%> | |
bind 0.0.0.0:80 | |
mode tcp | |
balance roundrobin | |
<% nodes.each do node %> | |
server <% = node['hostname'] -%> <% node['ipaddress'] -%>:8080 check inter 2000 | |
<% end -%> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment