-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathhaproxy.cfg
More file actions
40 lines (35 loc) · 965 Bytes
/
Copy pathhaproxy.cfg
File metadata and controls
40 lines (35 loc) · 965 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
34
35
36
37
38
39
40
global
log stdout format raw local0
maxconn 4096
defaults
log global
mode tcp
option tcplog
option dontlognull
timeout connect 5000ms
timeout client 50000ms
timeout server 50000ms
# Stats page
listen stats
bind *:8404
mode http
stats enable
stats uri /stats
stats refresh 10s
stats admin if TRUE
# API Server Load Balancer (Round Robin)
# Uses TCP mode for HTTPS passthrough
frontend api_frontend
bind *:6443
mode tcp
option tcplog
default_backend api_backend
backend api_backend
mode tcp
balance roundrobin
option tcp-check
# Simple TCP health checks for HTTPS endpoints
# The servers are considered healthy if the TCP connection succeeds
server api-server-1 api-server-1:6443 check inter 5s fall 3 rise 2
server api-server-2 api-server-2:6443 check inter 5s fall 3 rise 2
server api-server-3 api-server-3:6443 check inter 5s fall 3 rise 2