haproxy节点关闭和启用

haproxy
Haproxy,你可以通过socat和Haproxy Unix Socket进行通信,实现部署节点的开启和关闭,如下所示:

关闭节点:
echo “disable server www_nedy_com/web1” | socat /usr/local/haproxy/haproxy.sock stdio

启用节点:
echo “enable server www_nedy_com/web1” | socat /usr/local/haproxy/haproxy.sock stdio

上一篇:解决: Got permission denied while trying to connect to the Docker daemon socket


下一篇:tcp服务器的实现