The disaster recovery policy (DRPolicy) defines an asynchronous replication schedule with
a specified replication interval for the managed clusters. Use this policy to replicate and recover
applications across those managed clusters.
Before you begin
Ensure that primary and secondary-managed clusters are imported to the hub cluster as instructed
in step 5
of Configuring Regional-DR.
Procedure
- Log in to the OpenShift® Container Platform web console
and select All clusters.
- From the Data Services menu, select the Disaster
recovery tab.
- On the Overview tab of the Disaster
recovery window, click Create a disaster recovery policy or go to
the Policies tab and click Create
DRPolicy.
- In the Policy name field, enter a policy name that is not already
in use.
- Select two clusters from the list of managed clusters to associate with this new
policy.
The Replication policy field is automatically set with the
value Asynchronous.
- Set the time in the Replication interval field.
Important: For the first DRPolicy, select the default replication interval of 5
minutes.
After creating the first DRPolicy with the default replication interval of 5 minutes, you can
create more policies with different schedules (such as 10 or 15 minutes) for the same managed
clusters.
To create multiple policies with different schedules, select the same clusters for each policy,
but specify a different value in the Replication interval field (in minutes,
hours, or days). The minimum allowed interval is 1 minute. Give each policy a different name.
For each policy that has a different schedule, you must manually create a corresponding
VolumeReplicationClass (VRC) by following the instructions provided in Creating a VRC.
Important: If you are creating a disaster recovery policy for VM workloads, enable
flattening to ensure reliable and supported regional disaster recovery behavior. To enable
flattening, follow step
7.
- Optional: Expand Advanced
settings and select the Enable disaster recovery support for restored and
cloned PersistentVolumeClaims (For Data Foundation only) checkbox.
- Click Create.