-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhaproxy.cfg
More file actions
33 lines (28 loc) · 787 Bytes
/
haproxy.cfg
File metadata and controls
33 lines (28 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
global
log stdout format raw local1 debug debug
maxconn 5000
defaults
log global
mode http
option httplog
option dontlognull
option http-buffer-request
timeout connect 5000
timeout client 50000
timeout server 50000
frontend web
bind :80
filter spoe engine my-spoa config /usr/local/etc/haproxy/spoa.conf
http-request set-header "ip_score" %[var(sess.myspoe.ip_score)]
default_backend servers
backend servers
balance roundrobin
server web1 web:8080 check
backend be_agents
mode tcp
balance roundrobin
timeout connect 2s # greater than hello timeout
timeout server 35s # greater than idle timeout
no option http-buffer-request
option spop-check
server agent1 agent:12345 check inter 3s