Converting a single data center to a two data center deployment
Instructions on how to convert a single data center to a two data center disaster recovery (DR) deployment on Kubernetes and OpenShift.
Before you begin
Ensure that you understand the concepts of two data center disaster recovery in API Connect. For more information, see A two data center deployment strategy on Kubernetes and OpenShift.
You must download the operator files and custom resource definitions for use during installation onto both of your data centers; complete Deploying operators.
Familiarize yourself with the instructions in Installing the API Connect subsystems. You will need to complete these instructions in conjunction with the additional steps in this topic that are specific to installing a two data center disaster recovery deployment.
About this task
You can convert a single data center API Connect to a two data
center disaster recovery deployment. Both data centers must have the same
portal-admin
and portal-www
endpoints. The main difference is that
the custom resource (CR) files for both the Management subsystem and the Developer Portal subsystem
on each data center must include a multiSiteHA
configuration section, and it's this
section that determines the two data center DR deployment. It's also this section that's used to
control the deployment in the future, for example in failover and recovery situations.
The following codeblocks show examples of completed multiSiteHA
sections in the
PortalCluster
CR files for two data centers, one active and one
passive. Both the ManagementCluster
and the
PortalCluster
CR templates have a multiSiteHA
section containing
the placeholder $MULTI_SITE_HA
, and it is this placeholder that must be replaced
with the values for your deployment.
|
|
Configuration property | Description |
---|---|
mode |
The state of the data center in the context of the two data center deployment. Valid values
are:
|
|
Contains details of the external ingress name for the subsystem in the current data center in
the two data center deployment. The hosts |
replicationPeerFQDN |
The ingress hostname for the other data center in the two data center deployment. This information is required so that the two data centers can communicate with each other. |
|
The TLS client secret for the subsystem. |
siteName |
A descriptive name for the Portal subsystem, and the Management subsystem, in the current
data center, for example dallas . This name is used in the hostnames, and so can
contain only a-z and 0-9 characters. Note that you can set a
siteName in the ManagementCluster or
PortalCluster CR only when the subsystems are first deployed, and you cannot change
the name after deployment. If you don't set a siteName at first deployment, an
automated siteName is created for you. For example, if you are converting an
existing single Management cluster to a two data center Management cluster by adding the multi-site
HA values, you will not be able to configure a siteName for the existing Management
cluster. |
To install a two data center disaster recovery deployment, you must set all of the placeholder properties in the CR file for both the Management and the Developer Portal subsystems as detailed in the relevant topics in the Installing the API Connect subsystems section, as well as the properties in the multi-site HA section that are detailed here. Some examples of complete CR files are shown in the Example section.