notes
docker run -it -p 8181:8000 -v /home/ubuntu/word_db:/db:ro --env-file webolith/config/config.env domino14/webolith:latest
(and 8180 instead of 8181)
on home machine
ab -kc 100 -n 1000
For haproxy stuff
apt-get install ruby
gem install haproxyctl
Need a haproxy.cfg file that exposes the socket. Need latest HAProxy:
https://haproxy.debian.net/#?distribution=Ubuntu&release=trusty&version=1.6
Take down a server cleanly
sudo haproxyctl set server servers/server2 state drain
Need to set up health checks, and figure out when a server is done draining