Geo Switch Role
To switch GR role (for example, role Primary to Standby), use the following command.
geo switch-role role role instance-id gr_instanceId failback-interval interval_in_sec
NOTES:
-
role role —Specify new role for the given site.
Role can be maintenance, primary, or standby.
-
instance-id gr_instanceId —Specify GR Instance ID
-
failback-interval interval_in_sec —Specify interval in seconds between notify failover and actual failover.
geo switch-role
command triggers manual failover from one site to another site for specific instance ID. The site which triggers the failover is moved from PRIMARY role to STANDBY_ERROR role. In between, the site which triggers failover, sends a failover (trigger GR) message to another site. The other site which receives the failover message is moved from STANDBY role to PRIMARY role.