You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.
我通过API,修改后端服务器list
curl 127.0.0.1:1995/upstream/node-dev.example.com -d
{"servers":[{"host":"192.168.1.1", "port": 8080}, {"host":"192.168.1.2", "port": 8080}]}
curl 127.0.0.1:1995/upstream/node-dev.example.com -d
{"servers":[{"host":"192.168.1.1", "port": 8080}]}
命令response显示ok,获取status也得到修改后的server list,但是看日志貌似没用调用到protocol,实际并没有从upstream list摘除192.168.1.2这台服务器,看代码也没有发现有调用到1895这个端口上的tcp protocol。
难道HTTP API只能修改保存的upstream list内容,实际摘除还需要自己发送tcp命令
echo -ne 'PUT upstream node-dev.example.com\n\x00\x00\x00\x3f{"cluster":[{"servers":[{"host":"192.168.1.1", "port": 8080}]}]}' | nc 127.0.0.1 1895 | xxd
请指点一下,先谢了。
The text was updated successfully, but these errors were encountered: