Load balancer for docker based web applications
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
balancer
tests
.gitignore
.travis.yml
README.md
docker-compose.test.yml
docker-compose.yml
run_tests.sh

README.md

brogency/balancer Build Status

Load balancer build with etcd, confd and nginx, see configuration below.

Create host config var:
curl -L http://127.0.0.1:4001/v2/keys/hosts/hello-world -XPUT -d dir=true

Enable host:
curl -L http://127.0.0.1:4001/v2/keys/hosts/hello-world/enable -XPUT -d value=True

Set hostname:
curl -L http://127.0.0.1:4001/v2/keys/hosts/hello-world/server_name -XPUT -d value=hello2.localhost

Enable nginx base caches:
curl -L http://127.0.0.1:4001/v2/keys/hosts/hello-world/caches/assets/path -XPUT -d value="/assets/"