Use this procedure to perform a switchover in a geo-redundant Cisco Optical Network Controller deployment. It helps you complete the related installation workflow and confirm the deployment state before continuing.
Switch active and standby roles in a geo-redundant deployment.
Use this procedure when you need to move the active role to another cluster.
Before you begin
-
Verify that a geo-redundant Cisco Optical Network Controller deployment is configured.
-
Verify that the DB replication is streaming and DB Lag is 0 bytes using the sedo supercluster status command.
sedo supercluster status ┌──────────────────────────────────────────────────────────────────────────────────────┐ │ Supercluster Status │ ├──────────────────┬───────────────────────────────────────────────────────────────────┤ │ Cluster ID │ QgQV2uXgP1udqshlIssyTwf3LZzEyRh6I3z5MH8almA │ │ Cluster Name │ cluster1 │ │ Cluster Role │ worker │ │ Peers │ cluster2 (worker, jaWeN9BdXUUTxvofwt6Hukt6OQXIUaqo4NxN6zHYDc) │ │ │ cluster3 (arbitrator, SUCrwqQjXToG5GKBwckcg_CtzgHstQigaEM1X0988E) │ │ Mode │ Running │ │ Current Active │ cluster1 │ │ Previous Active │ │ │ Standby Clusters │ cluster2 │ │ Last Switchover │ │ │ Last Failover │ │ │ Last Seen │ controller-0.cluster2: 2025-03-19 11:16:57.051 +0000 UTC │ │ │ controller-0.cluster3: 2025-03-19 11:16:57.047 +0000 UTC │ │ │ controller-0.cluster1: 2025-03-19 11:16:57.051 +0000 UTC │ │ Last Peer Error │ │ │ Server Error │ │ │ DB Replication │ disconnected │ │ DB Lag │ 0 bytes │ └──────────────────┴───────────────────────────────────────────────────────────────────┘
Follow these steps to perform a switchover in a geo-redundant deployment.
Procedure
| 1. | Run the sedo supercluster switchover <target-active-cluster-name> command and confirm when prompted.
Example:
The switchover takes place and WebUI displays a message that says
Switchover happened. Please refresh the page., and the WebUI update takes about 20 seconds.
|
|
| 2. | Use the sedo supercluster status command to SSH in to the new active node and view the supercluster status.
The DB replication status changes from
|
|
| 3. | (Optional) Use the raft API to get the supercluster status. Example:
The API response gives you the information from the sedo supercluster status command.
|
The active role switches to the target cluster and status reflects the change.