HomeMogDBMogDB StackUqbar
v2.0

Documentation:v2.0

Supported Versions:

Other Versions:

Failover

If the primary node in the cluster is down for some reason and cannot be recovered by restarting the instance, you need to promote a normal standby node to the primary node to resume external services by using the failover command in order to ensure the availability of the cluster.

Note: Do not use this command for switching when the cluster is normal, it will cause the cluster to have dual master nodes.

Failover Command

The -H or --host option specifies the IP of the instance.

ptk cluster -n <CLUSTER_NAME> failover -H <IP>

The -i or --id option specifies the ID of the instance (ID can be viewed via ptk ls)

ptk cluster -n <CLUSTER_NAME> failover -i <ID>
Copyright © 2011-2024 www.enmotech.com All rights reserved.