4.11. Relocating Subscription-based application between managed clusters
Relocate an application to its preferred location when all managed clusters are available.
Perform a relocation once the failed cluster is available and the application resources are cleaned up on the failed cluster.
Prerequisite
When the primary cluster is in a state other than Ready, check the actual status of the cluster as it might take some time to update. Relocate can only be performed when both primary and preferred clusters are up and running.
-
Navigate to RHACM console
Infrastructure Clusters Cluster list tab. - Check the status of both the managed clusters individually before performing relocate operation.
-
Navigate to RHACM console
Perform relocate when
lastGroupSyncTimeis within the replication interval (for example, 5 minutes) when compared to current time. This is recommended to minimize the Recovery Time Objective (RTO) for any single application.Run this command on the Hub Cluster:
$ oc get drpc -o yaml -A | grep lastGroupSyncTimeExample output:
[...] lastGroupSyncTime: "2023-07-10T12:40:10Z"Compare the output time (UTC) to current time to validate that all
lastGroupSyncTimevalues are within their application replication interval. If not, wait to Relocate until this is true for alllastGroupSyncTimevalues.
Procedure
- On the Hub cluster, navigate to Applications.
- Click the Actions menu at the end of application row to view the list of available actions.
- Click Relocate application.
- When the Relocate application modal is shown, select policy and target cluster to which the associated application will relocate to in case of a disaster.
- By default, the subscription group that will deploy the application resources is selected. Click the Select subscription group dropdown to verify the default selection or modify this setting.
Check the status of the Relocation readiness.
-
If the status is
Readywith a green tick, it indicates that the target cluster is ready for relocation to start. Proceed to step 8. -
If the status is
UnknownorNot ready, then wait until the status changes toReady.
-
If the status is
- Click Initiate. All the system workloads and their available resources are now transferred to the target cluster.
- Close the modal window and track the status using the Data policy column on the Applications page.
Verify that the activity status shows as Relocated for the application.
-
Navigate to the Applications
Overview tab. - In the Data policy column, click the policy link for the application you applied the policy to.
- On the Data policy popover, click the View more details link.
- Verify that you can see one or more policy names and the ongoing activities (Last sync time and Activity status) associated with the policy in use with the application.
-
Navigate to the Applications