Skip to content

Instantly share code, notes, and snippets.

@jolynch
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jolynch/8c50a075235d577db7f4 to your computer and use it in GitHub Desktop.
Save jolynch/8c50a075235d577db7f4 to your computer and use it in GitHub Desktop.
Experiment: Just Reload HAProxy
# 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
$ 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)
$ 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