Skip to content

beda-software/balancer

Repository files navigation

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/"