guillermo/gaproxy

By guillermo

Updated over 9 years ago

Remote controller haproxy

Image

84

Gaproxy

Rest API to control an haproxy instance.

Update Backends

curl -d localhost:9999 -d '{
 "TcpBackends":["127.0.0.1:9000","127.0.0.1:9001"],
 "HttpBackends":["127.0.0.1:9000","127.0.0.1:9001"]
}'

List current backends

curl -d localhost:9999 
'{
 "TcpBackends":["127.0.0.1:9000","127.0.0.1:9001"],
 "HttpBackends":["127.0.0.1:9000","127.0.0.1:9001"]
}'

Connect to the backends through tcp

$ curl localhost:10001
"I am the backend at 9000"
$ curl localhost:10001
"I am the backend at 9001"

Connect to the backends through http

$ curl localhost:10002
"I am the backend at 9000"
$ curl localhost:10002
"I am the backend at 9001"

Docker Pull Command

docker pull guillermo/gaproxy