Completed for a grade of four
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
|
||||
global
|
||||
log stdout format raw local0 info
|
||||
# Without it HAProxy sizes buffers from the file descriptor limit and uses ~100 MB.
|
||||
maxconn 4096
|
||||
|
||||
defaults
|
||||
mode http
|
||||
@@ -37,6 +39,14 @@ frontend http
|
||||
bind :8080
|
||||
default_backend api
|
||||
|
||||
# Not published: container healthcheck and the backend table (wget -qO- "http://127.0.0.1:8404/stats;csv").
|
||||
frontend internal
|
||||
bind :8404
|
||||
monitor-uri /healthz
|
||||
stats enable
|
||||
stats uri /stats
|
||||
stats refresh 5s
|
||||
|
||||
backend api
|
||||
balance roundrobin
|
||||
option httpchk GET /health/ready
|
||||
|
||||
Reference in New Issue
Block a user