Troubleshooting Cross-Region Replication
Use troubleshooting information to identify and address common issues with cross-region replication.
Primary Cluster Isn't Available for Selection
When creating or converting a secondary cluster, the primary cluster you want to use doesn't appear for selection.
The cluster isn't eligible
The cluster might not meet one or more cross-region replication requirements.
Verify the cluster requirements
Verify that the cluster meets the following requirements:
- The cluster is in another OCI region.
- The cluster has the standalone role.
- The cluster is in the Active state.
- The cluster is non-sharded.
- The cluster isn't already part of another cross-region replication relationship.
- The cluster doesn't have another operation in progress.
- When converting an existing cluster, the cluster being converted has the same engine version, cluster mode, and memory per node as the cluster that you want to select as the primary cluster.
Creating or Converting a Secondary Cluster Fails
The work request for creating or converting a secondary cluster fails.
The clusters don't meet the requirements
The primary or secondary cluster might have an unsupported role, incompatible settings, or an incompatible lifecycle state.
Review the work request and cluster settings
Review the failed operation and verify the cluster requirements:
- Open the failed work request and review the error message.
- Confirm that the primary cluster has the standalone role and doesn't already have an associated secondary cluster.
- When converting a cluster, confirm that it has the standalone role.
- Confirm that the primary and secondary clusters are in different OCI regions.
- Confirm that both clusters are non-sharded.
- When converting a cluster, confirm that its engine version, cluster mode, and memory per node match the primary cluster.
- Confirm that both clusters are in the Active state.
-
Verify that both clusters use custom OCI Cache configuration sets that meet the cross-region replication requirements, including matching
reserved-memory-percentageandmaxmemory-policyvalues. Ifdatabasesis configured to a value other than 16, verify that it also matches. Thereserved-memory-percentagemust be at least35, andmaxmemory-policymust not be set tonoeviction. When you convert an existing cluster to a secondary cluster, ensure that you apply the required custom configuration set before you start the conversion.
Another operation is in progress
The primary or secondary cluster might be busy with another operation.
Wait for the current operation to finish
Cross-Region Replication Lag Is High
The CrossRegionReplicationLag metric is higher than expected or continues to increase.
Network latency or congestion has increased
Cross-region replication is asynchronous. Geographic distance, inter-region latency, and transient network congestion can increase replication lag.
Review the cross-region replication metrics
Use the Monitoring service to review the following metrics:
-
Review
CrossRegionReplicationLagandCrossRegionMasterLinkStatus. - Compare metric values with the cluster's typical workload pattern. See Available Metrics.
Memory utilization or write activity is high
High memory utilization or a sustained increase in write activity can prevent the secondary cluster from keeping up with the primary cluster.
Verify that both clusters use custom configuration sets that meet the cross-region replication requirements, including matching values for the reserved-memory-percentage and maxmemory-policy parameters. If you set databases to a value other than 16, verify that both clusters use the same value. The reserved-memory-percentage must be at least 35, and maxmemory-policy must not be set to noeviction.
Review cluster resource usage
Review resource usage for both clusters:
-
Check the
MemoryUtilizationmetric for the primary and secondary clusters. - Review
NetworkBytesOutfor the primary cluster andNetworkBytesInfor the secondary cluster. - Reduce unnecessary write activity if possible.
Cross-Region Replication Link Is Down
The CrossRegionMasterLinkStatus metric indicates that the replication link is down.
A cluster operation or transient interruption is in progress
The replication link might be temporarily unavailable during a cluster operation or network interruption.
Review cluster status and work requests
Check the status of both clusters:
- Confirm that both clusters are available.
- Review the lifecycle state of each cluster.
- Review active and recently completed work requests for each cluster.
- Wait for any active cluster operation to complete.
- Review
CrossRegionMasterLinkStatusagain.
The replication link doesn't recover
The link remains down after both clusters return to the Active state.
Contact Oracle Support
Contact Oracle Support and provide the following information:
- The OCIDs and regions of the primary and secondary clusters.
- The time period when the link was down.
-
The
CrossRegionMasterLinkStatusandCrossRegionReplicationLagmetric history. - Any related work request IDs and error messages.
Switchover Fails
The work request for a switchover fails.
The primary cluster is unavailable
A switchover requires both clusters to be available.
Use the disaster recovery procedure
A cluster is busy or unhealthy
One of the clusters might have another operation in progress or might not be in a state that supports switchover.
Review both clusters
Verify the state of the cross-region replication relationship before retrying:
- Confirm that the switchover was initiated from the secondary cluster.
- Confirm that both clusters are in the Active state.
- Confirm that no conflicting work request is in progress.
- Review
CrossRegionMasterLinkStatusandCrossRegionReplicationLag. - Stop write traffic to the current primary cluster before retrying the switchover.
Primary Cluster Can't Be Deleted
You can't delete a primary cluster that has an associated secondary cluster.
The cross-region replication relationship still exists
A primary cluster can't be deleted while a secondary cluster is associated with it.
Remove the relationship
Use one of the following methods:
- Delete the secondary cluster, and then delete the primary cluster. See Deleting a Secondary Cluster.
- Alternatively, convert the secondary cluster to standalone, and then delete the clusters in any order. See Converting a Secondary Cluster to Standalone.
Cluster Remains in Updating or Enters Failed
A cluster doesn't return to the active state after a cross-region replication operation.
The work request failed or didn't complete
The cross-region replication operation might have encountered an error.
Review the work request
Review the operation before taking further action:
- Open the work request for the operation and review its status, logs, and error messages.
- Don't start another cluster operation while the current issue is unresolved.
- Contact Oracle Support if the cluster remains in the Updating or Failed state.