Skip to content

Instantly share code, notes, and snippets.

@dsuch
Last active January 23, 2019 10:38
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dsuch/5872259 to your computer and use it in GitHub Desktop.
Save dsuch/5872259 to your computer and use it in GitHub Desktop.
Default frontend for HAProxy
frontend front_http_plain
mode http
default_backend bck_http_plain
acl too_fast fe_sess_rate ge 10
acl bursts_inclined path_beg -i /client1
tcp-request inspect-delay 1000ms
tcp-request content accept unless bursts_inclined too_fast
tcp-request content accept if WAIT_END
option httplog # ZATO frontend front_http_plain:option log-http-requests
bind 127.0.0.1:11223 # ZATO frontend front_http_plain:bind
maxconn 200 # ZATO frontend front_http_plain:maxconn
monitor-uri /zato-lb-alive # ZATO frontend front_http_plain:monitor-uri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment