Created
February 3, 2022 21:37
-
-
Save haproxytechblog/54b874d7716884d29ec5dc5d197a2219 to your computer and use it in GitHub Desktop.
Load Balance an Infinite Number of Servers And Never Reload HAProxy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ echo "experimental-mode on; add server be_app/server10 10.0.1.5:80 check" |\ | |
socat stdio tcp4-connect:127.0.0.1:9999 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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