跳到主要内容

Manual failover

在 Failover methods 中
作者列表
已发布: 2023年1月6日|最后更新: 2023年1月6日
Question

How do I manually change my main node in the cluster?

Deskpro HA has the option to manually set the main node. This could be for maintanance work or any other reason that requires you to promote a standby node to the main role without being in a failed or offline state.

On your current main node run a cluster status to get the list of nodes and their Id's:

opc cluster node list
copy

image.png

The screenshot shows the main node is online and that we are currently logged onto it. The * next to the hostname indicates which node you are currently logged onto. Make a note of the Id for the node that you want to change from standy to main, in this case we will use node 192.168.100.54 with the Id of 54a5313a-cc70-46d0-9b0b-57ab753f9692 .

opc cluster node promote -i
copy

So for our example it would be:

opc cluster node promote -i 54a5313a-cc70-46d0-9b0b-57ab753f9692
copy

image.png

The output shows the promotion of the node was sucesful, you can confirm that the main node is now host 192.168.100.54 by checking with the cluster node list command again:

opc cluster node list
copy

image.png

有帮助没有帮助
下一个页面Main node online but not working correctly
上一个页面Main node unavailable

请登录或注册以提交评论。