If you have a use case where you don’t want the DR cluster to be always running in the cloud to save costs, you can create Stage 1 sync which will take backups on the SWIFT as per schedule configured.

In the event of a disaster or an issue on the source side that requires restoration, you can use the Dynamic Cluster DR replication configuration to automatically create the Target (DR). 


In that case, perform a failover, and it will automatically create the Target (DR) cluster.


SWIFT has provided this nice feature that user can perform Dynamic DR provision. To do this follow below steps...


Pre-requisite:

User must have a cloud account where the dynamic cluster will be provisioned.


Topics Covered



How to create dynamic DR provision at Huawei cloud using Stage1 DR Policy


1. A Stage1 DR policy can be created from the Business Continuity DR section under DR Policies by selecting New, choosing Stage1 as the sync type, and then specifying the DR policy name and the required periodicity. 


2. After creating the Stage1 DR Policy, you can select it and choose Apply, then proceed with Application Replication using the DR cluster


3. When you click on Application Replication using DR cluster, then one prompt will be appear. There you can provide the source and Dynamic cluster information.


Stage 1 Replication 


FieldField Description
Platform TypeSelect the platform type of the source cluster (Kubernetes or OpenShift).
Cluster NameName of the source cluster where applications currently run. 
NamespaceSource namespace that contains the application resources. 
StoragepoolStorage pool used for replication data. 
Imagegroup (New / Existing)Select or create an image group for container images. 
Applications (All / Selective)Choose whether to replicate all applications or only selected ones 
Include K8S Native ObjectsIncludes Kubernetes native resources (like ConfigMaps/Secrets) in replication. 
Sync WebhooksALL --> If you select this, then all webhook that are present in the source, it will migrated to target.
Native Webhook --> Includes cluster-level native Kubernetes webhooks during migration.
Don't delete the taints --> By default taints going to be deleted, if you don't want this, then you can select this option



DR Cluster Configuration 


FieldField Description
Cloud TypeCloud provider where the DR cluster will be created (e.g., Huawei).
Cluster NameName of the target (DR) cluster to be created or used. 
NamespaceYou can either create a new namespace or select the existing from dropdown. So, your app will be migrated to specific namespace.
Storage TypeChoose storageclass used on the target cluster.
VersionKubernetes/OpenShift version for the DR cluster.
Node CountNumber of worker nodes to provision in the DR cluster. 
Delete Target Namespace-only ObjectsRemoves namespace-scoped objects on the target during cleanup. 



Huawei / CCE Configuration 


FieldsFields Description
Huawei Cluster Type (Standard / Turbo)Selects the performance and feature tier of the CCE cluster. Standard is general purpose, while Turbo provides higher performance. 
Project IDUnique Huawei Cloud project identifier where the resources will be created. 
Access KeyProvide Huawei Cloud access key used for authentication. 
Cloud TypeSpecifies the Huawei cloud environment (e.g., Huawei Public Cloud). 
RegionGeographic region where the CCE cluster will be deployed. 
ZoneAvailability zones within the selected region for cluster deployment.
Root Volume TypeDisk type for the node OS disk (e.g., SSD).
Root Volume Size (GB)Size of the root disk allocated to each node.
Data Volume TypeDisk type for application/data storage (e.g., SAS/SSD).
Data Volume Size (GB)Size of the data disk attached to each node.
Master Node FlavorInstance type/specification for master nodes.
Worker Node FlavorInstance type/specification for worker nodes.
DR Cluster TagsOptional tags to organize and identify DR resources.
Secret Key Input MethodChoose whether to manually input the secret key or upload a key file.
Secret KeyProvide Secret key paired with the access key for secure authentication. 



4.Once you apply the DR policy, it will move to the Active state. The dynamic DR cluster will not be provisioned unless a failover is triggered. 



How to do Failover


5. Click the Failover option (right-tilted arrow) to provision a dynamic DR cluster. 


6. Make sure DR Drill is unchecked, and then click the Failover button to perform an actual failover.


7. Once you click Failover, Stage2 is automatically triggered to provision a dynamic DR cluster on Huawei through SWIFT. 


8. Additionally, you can monitor the sync progress by opening the job details, which will show the ongoing backend activities. 

 

9. Stage2 is now complete, and the DR Policy has successfully failed over.



10. You can now see that the dynamic DR cluster has been provisioned successfully. 


11. You can now access the application and confirm that they have been provisioned in the correct namespace specified during the dynamic cluster configuration. 


12. You can now access the application and verify the post. 



How to do Fallback


If you want to delete the dynamically created cluster, you will first need to perform a fallback of the failed-over DR Policy. Once a fallback is performed, all data from the target cluster is synchronized back to the source cluster. After the fallback process is completed successfully, the target cluster is automatically deleted. 


1. Navigate to DR Policies and click the left-tilted arrow to initiate the fallback. 


2. You can then click the Fallback button to initiate the fallback process, which will automatically delete the dynamic cluster. 


When you doing the fallback, then there will be two options, 


No Reverse Sync 

We can use this option when you don’t want data from the DR cluster to go back to the source during fallback.


If the source cluster had issues like data corruption or a security incident, the customer may prefer to rebuild or clean the source instead of copying data back from DR. In this case, enabling No Reverse Sync prevents any data from being pushed back to the source.


No Cluster Delete 

If this option is selected, the target (DR) cluster will not be deleted after the fallback operation.


A customer may want to keep the DR cluster for testing, verification, or as a ready standby for future incidents. Selecting No Cluster Delete ensures the DR cluster is not automatically removed after fallback.


3. Stage1 will then be triggered, during which all updated data is first synchronized from the dynamic DR cluster to SWIFT (IG), and subsequently from SWIFT (IG) to the source cluster in Stage2. 


4. You can also confirm that the dynamic DR cluster has been deleted from the Huawei console. 


5. The DR Policy fallback has completed successfully.