Skip to content

Instantly share code, notes, and snippets.

@haproxytechblog
Created February 3, 2022 21:37
Show Gist options
  • Save haproxytechblog/54b874d7716884d29ec5dc5d197a2219 to your computer and use it in GitHub Desktop.
Save haproxytechblog/54b874d7716884d29ec5dc5d197a2219 to your computer and use it in GitHub Desktop.
Load Balance an Infinite Number of Servers And Never Reload HAProxy
$ echo "experimental-mode on; add server be_app/server10 10.0.1.5:80 check" |\
socat stdio tcp4-connect:127.0.0.1:9999
$ echo "enable server be_app/server10" | socat stdio tcp4-connect:127.0.0.1:9999
$ echo "enable health be_app/server10" | socat stdio tcp4-connect:127.0.0.1:9999
$ echo "experimental-mode on; del server be_app/server10" |\
socat stdio tcp4-connect:127.0.0.1:9999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment