-
-
Save jolynch/8c50a075235d577db7f4 to your computer and use it in GitHub Desktop.
Experiment: Just 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
# Restart haproxy every 100ms | |
while [ 1 ]; do | |
./haproxy -f /tmp/haproxy.cfg -p /tmp/haproxy.pid -sf $(cat /tmp/haproxy.pid) | |
sleep 0.1 | |
done |
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
$ ab -r -c 10 -n 200000 169.254.255.254:16000/ | |
Benchmarking 169.254.255.254 (be patient) | |
... | |
Complete requests: 200000 | |
Failed requests: 504 | |
... | |
50% 2 | |
95% 2 | |
99% 3 | |
100% 15 (longest request) |
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
$ ab -c 10 -n 10000 169.254.255.254:16000/ | |
Benchmarking 169.254.255.254 (be patient) | |
... | |
apr_socket_recv: Connection reset by peer (104) | |
Total of 3652 requests completed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment