节点根据健康检查自动上下线

This commit is contained in:
GoEdgeLab
2020-11-15 21:17:52 +08:00
parent dae2c9b18f
commit c5c194bda3
17 changed files with 213 additions and 48 deletions

View File

@@ -13,7 +13,7 @@ type DeleteAction struct {
func (this *DeleteAction) RunPost(params struct {
NodeId int64
}) {
_, err := this.RPC().NodeRPC().DisableNode(this.AdminContext(), &pb.DisableNodeRequest{NodeId: params.NodeId})
_, err := this.RPC().NodeRPC().DeleteNode(this.AdminContext(), &pb.DeleteNodeRequest{NodeId: params.NodeId})
if err != nil {
this.ErrorPage(err)
return