Skip to content

Commit

Permalink
[horus] Redefining the reboot strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
mfordjody committed Oct 1, 2024
1 parent da49844 commit 67292b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/horus/core/horuser/node_restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"github.com/gammazero/workerpool"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/klog/v2"
"syscall"
"time"
)

Expand Down Expand Up @@ -67,6 +66,6 @@ func (h *Horuser) TryRestart(node db.NodeDataInfo) {
if pass {
msg := fmt.Sprintf("【等待腾空节点后重启就绪】【节点:%v】【日期:%v】【集群:%v】", node.NodeName, node.FirstDate, node.ClusterName)
alert.DingTalkSend(h.cc.NodeDownTime.DingTalk, msg)
defer syscall.Reboot(syscall.LINUX_REBOOT_CMD_RESTART)
// TODO restart policy
}
}

0 comments on commit 67292b7

Please sign in to comment.