Installing API Connect on the warm-standby data center
Add the multiSiteHA
configuration to the API Connect Management and
Portal YAML files before they are applied.
Before you begin
oc get secrets -n <namespace>
ingress-ca kubernetes.io/tls 3 3d21h
mgmt-replication-client kubernetes.io/tls 3 3d21h
ptl-replication-client kubernetes.io/tls 3 3d21h
oc get certs -n <namespace>
mgmt-replication-client True mgmt-replication-client 3d21h 2024-08-17T13:04:27Z
ptl-replication-client True ptl-replication-client 3d21h 2024-08-17T13:04:26Z
oc get issuer -n <namespace>
ingress-issuer True 3d21h
self-signed True 3d21h
Where <namespace>
are the namespaces
you created for API Connect.mgmt-replication-client
in the portal namespace, nor the
ptl-replication-client
in the management namespace.Procedure
Results
While the management subsystems on the warm-standby and active data
centers are synchronizing their databases, the management status reports Warning
,
and the haStatus
reports pending
:
oc get mgmt -n <namespace>
NAME READY STATUS VERSION RECONCILED VERSION MESSAGE AGE
management n/n Warning 10.0.8.0-0 10.0.8.0-0 Management is ready. HA Status Warning - see HAStatus in CR for details 8m59s
oc get mgmt -n <namespace> -o yaml
...
status:
haStatus
{
"lastTransitionTime": "2023-12-31T19:47:08Z",
"message": "Replication not working, install or upgrade in progress.",
"reason": "na",
"status": "True",
"type": "Pending"
}
When the management database replication between sites is complete, the
management status reports Running
, and status.haStatus
reports
Ready
:
oc get mgmt -n <namespace>
NAME READY STATUS VERSION RECONCILED VERSION MESSAGE AGE
management n/n Running 10.0.8.0-0 10.0.8.0-0 Management is ready. HA status Ready - see HAStatus in CR for details 8m59s
oc get mgmt -n <namespace> -o yaml
...
status:
haStatus
{
"lastTransitionTime": "2023-03-31T19:47:08Z",
"message": "Replication is working",
"reason": "na",
"status": "True",
"type": "Ready"
}
haStatus
output shows the
reason, for
example::NAME READY STATUS VERSION RECONCILED VERSION MESSAGE AGE
management n/n Warning 10.0.8.0-0 10.0.8.0-0 Management is ready. HA Status Warning - see HAStatus in CR for details 8m59s
status:
haStatus
{
"lastTransitionTime": "2023-12-31T19:47:08Z",
"message": "Replication not working",
"reason": "na",
"status": "True",
"type": "PeerNotReachable"
}
If the warning persists, see Troubleshooting a two data center deployment.You can validate that your portal deployments are
synchronizing by running oc get pods
on both the active and warm-standby data centers. Confirm
that the number and names of the pods all match (the UUIDs in the names might be different on each
site), and that all are in the Ready
state.
For additional replication verification checks, see Verifying replication between data centers. It is recommended to run a test failover, and confirm that all of the expected data is present and correct on the newly active site. See Failing over to the warm-standby.
What to do next
Deploy your Gateway and Analytics subsystems for shared namespace: Installing API Connect in a single namespace on OpenShift or multiple namespaces: Installing API Connect subsystems in different namespaces or environments on OpenShift
Configure your deployment: Cloud Manager configuration checklist, and complete a test failover to verify that your data replicated to the warm-standby. See Failing over to the warm-standby for details.