Created
February 18, 2016 13:33
-
-
Save rcarmonad/931cbb357f876218629a to your computer and use it in GitHub Desktop.
Configuracion HAProxy
This file contains 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 | |
log 127.0.0.1 local0 notice | |
maxconn 2000 | |
user haproxy | |
group haproxy | |
defaults | |
log global | |
mode http | |
option httplog | |
option dontlognull | |
retries 3 | |
option redispatch | |
timeout connect 5000 | |
timeout client 10000 | |
timeout server 10000 | |
listen mservice 10.211.55.10:80 | |
mode http | |
stats enable | |
stats uri /haproxy?stats | |
stats auth rodrigo:completo | |
balance roundrobin | |
cookie JSESSIONID prefix | |
appsession JSESSIONID len 52 timeout 3h request-learn prefix | |
option httpclose | |
option forwardfor | |
server server1 10.211.55.10:7001 cookie A check | |
server server2 10.211.55.10:7002 cookie B check |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment