Skip to main content
Tungsten Clustering

Performing Maintenance on a Primary

Primary maintenance must be carried out when the Primary has been switched to a Replica, and then shunned. The Primary can be temporarily switched to a Replica, taken out of the dataservice through shunning, and then added back to the dataservice and then switched back again to be the Primary.

The complete sequence and commands required to perform maintenance on an active Primary are shown in the table below. The table assumes a dataservice with three datasources:

StepDescriptionCommandhost1host2host3
1Initial statePrimaryReplicaReplica
2Set the MAINTENANCE policyset policy maintenancePrimaryReplicaReplica
3Switch Primaryswitch to host2ReplicaPrimaryReplica
4Shun host1datasource host1 shunShunnedPrimaryReplica
5Perform maintenanceShunnedPrimaryReplica
6Recover the Replica (host1)datasource host1 recoverReplicaPrimaryReplica
7Ensure the Replica has caught upReplicaPrimaryReplica
8Switch Primary back to host1 (optional)switch to host1PrimaryReplicaReplica
9Set AUTOMATIC policyset policy automaticPrimaryReplicaReplica