Skip to content

Commit

Permalink
fix(redis): 集群类型变更时先Stop dbmon #8204
Browse files Browse the repository at this point in the history
  • Loading branch information
xiepaup authored and iSecloud committed Nov 27, 2024
1 parent edb0df9 commit 44b9724
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ func (job *RedisDtsOnlineSwitch) Run() (err error) {
if err != nil {
return err
}
// 先Stop dbmon,防止中途被拉起,导致端口冲突
err = util.StopBkDbmon()
if err != nil {
return err
}
err = job.RestartProxyAndCheckBackends()
if err != nil {
return err
Expand Down Expand Up @@ -689,11 +694,11 @@ func (job *RedisDtsOnlineSwitch) RestartDbMon() (err error) {
return
}
}
// 重启 dbmon
err = util.StopBkDbmon()
if err != nil {
return err
}
// // 重启 dbmon
// err = util.StopBkDbmon()
// if err != nil {
// return err
// }
err = util.StartBkDbmon()
if err != nil {
return err
Expand Down

0 comments on commit 44b9724

Please sign in to comment.