first commit
This commit is contained in:
25
solutions/roles/balancer/templates/haproxy.cfg.j2
Normal file
25
solutions/roles/balancer/templates/haproxy.cfg.j2
Normal file
@@ -0,0 +1,25 @@
|
||||
global
|
||||
log /dev/log local0
|
||||
log /dev/log local1 notice
|
||||
daemon
|
||||
maxconn 2048
|
||||
|
||||
defaults
|
||||
log global
|
||||
mode http
|
||||
option httplog
|
||||
option dontlognull
|
||||
timeout connect 5s
|
||||
timeout client 50s
|
||||
timeout server 50s
|
||||
|
||||
frontend http_front
|
||||
bind *:80
|
||||
default_backend webservers
|
||||
|
||||
backend webservers
|
||||
balance roundrobin
|
||||
option httpchk
|
||||
server node3 node3:80 check
|
||||
server node4 node4:80 check
|
||||
|
||||
Reference in New Issue
Block a user