Feature:
配置指定控制器侦听127.0.0.1:6587
,并使用默认的roundrobin方法定义包含两个服务器的虚拟服务器
make run
watch 'curl -H "Host:localhost" http://127.0.0.1:8081 /dev/null'
python -m Simple
HTTP
Server 10001 & python -m Simple
HTTP
Server 10002 & python -m Simple
HTTP
Server 10003
curl -u admin:admin http://127.0.0.1:6587/stats
curl -u admin:admin http://127.0.0.1:6587/vs
curl -u admin:admin http://127.0.0.1:6587/vs/web
curl -XPOST -u admin:admin -d '{"address":"127.0.0.1:10003"}' http://127.0.0.1:6587/vs/web/pool
curl -u admin:admin http://127.0.0.1:6587/vs/web
curl -u admin:admin http://127.0.0.1:6587/stats
curl -XDELETE -u admin:admin -d '{"address":"127.0.0.1:10003"}' http://127.0.0.1:6587/vs/web/pool
curl -XPOST -u admin:admin -d '{"action":"disable"}' http://127.0.0.1:6587/vs/web
curl -u admin:admin http://127.0.0.1:6587/vs/web
curl -XPOST -u admin:admin -d '{"action":"enable"}' http://127.0.0.1:6587/vs/web
Github 地址:?https://github.com/onestraw/golb
欢迎提 Issue、PR、star