• To create a DR policy, you need to log in to the SWIFT dashboard and navigate to the ‘DR Policy’ under the Business Continuity & DR menu and click on ‘New’ button. Please see below snippet.



  • After a click on ‘New’ you will get a new prompt to create a DR policy by selecting Sync type. Please check the snippet below for more details.



  • If you look at above snippet, you will see sync type, periodicity in General options.

    • Policy name: You can provide what you want.
    • Sync type: Here we have selected Passthrough.
    • Periodicity: There are multiple periodicities; here, we have selected by schedule in the above snippet.
      1. By schedule,’ and the policy will run ‘Daily.’ Additionally, you can specify the hour and minutes. You will also see an ‘Exclude’ option, where you can restrict the policy by selecting specific days to exclude. In our case, we have excluded Saturday and Sunday as you can see above snippet.

      2. By Frequency: If you select this option, you can set any frequency, for example, every 1 hour or 20 minutes, and your DR Policy will run accordingly. Additionally, you can specify an exclusion period using ‘Exclude From’ and ‘Exclude To.’ Here, we have selected 1:10 to 2:00.



      3. Once: If you select ‘Once’ then your Policy will run at given specified time at once. You can see below snippet.



      4. Continuous: If you select the Continuous option in DR Policy creation, the sync will run continuously, one after another, and your sync will run continuously.


      5. Email alert: You can set your email id to receive any email alerts on sync failure.


        • If you look at ‘Advanced options’, there are two options as below.



        • Pre/Post script config: In this option you also attach your pre/post scrip and YAML’s while creating a DR policy in Passthrough sync.




        • Max. Parallel Sync Config: Here, you can set the maximum number of parallel syncs that can run on the K8S cluster. For example, if you set the maximum parallel syncs per cluster to 2, and 2 syncs are already running, any additional sync attempts will fail, indicating that the parallel sync limit has been reached.
        • Then you can create a DR policy by clicking on ‘Create’ button.
        • After creation, you will see the DR policy in an Idle state because the sync has not started yet or is not configured for this DR policy. You can view many details such as Type, Status, Sync Schedule, Alert Settings, and so on. Please find below snippet for more information.




        DR Policy creation for Stage1 sync.

        • You can create a DR Policy for stage1 sync also.
        • You need to select the ‘Stage1’ sync type; the rest of the settings will be the same as the PT sync mentioned above.



        • If you go to the Advanced options in Stage1 DR policy. You can set the maximum number of parallel syncs that can run on the K8S cluster. For example, if you set the maximum parallel syncs per cluster to 3, and 3 syncs are already running, any additional sync attempts will fail, indicating that the parallel sync limit has been reached as same as PT sync.


        • In the ‘Backup Schedule Options’ of the Stage1 DR policy, there are two backup options: ‘Local’ and ‘Remote.
        • If you want to back up locally, select the Local Backup option and provide a short-term backup interval and the time to retain the short-term backup.
        • Specify the duration for short-term backups in terms of days and weeks on the SWIFT server, as well as the ‘Number of Backups’ you want.
        • Local backups will be stored in the ZFS storage pool.



        • Additionally, if you want to back up remotely, you can choose the 'Remote Backup' option while creating a DR policy.
        • This is a planned and implemented use-case for remote backup that allows HA for SWIFT during DR. In case you lose SWIFT, you can spin up another instance and restore the backup from the cloud





        • Here, we have selected Remote Backup, as you can see in the above snippet.
        • We have set the long-term backup interval to 1 hour and configured the number of long-term backups to 4. Remote long term backup is the maximum backup count maintained by the DR policy.
        • After created a DR policy for stage1 , it looks like as below. In that you will see parameters that you have configured while creating stage1 DR policy.






        DR Policy creation for Stage1+2 sync.

        • You can create a DR Policy for stage1+2 sync also.
        • You need to select the 'Stage1+2' sync type; the rest of the settings will be the same as the PT & Stage1 sync mentioned above.
        • The only change is that once you choose the periodicity for Stage1, you need to select the option for Stage2 that will execute after Stage1, . Here, we have selected 'Execute after Stage1 sync for example’.
        • There are multiple options for Stage2 periodicity, but 'Execute after Stage1 sync' is different. Here, we have selected 'Execute after Stage1 sync’. You can check in below snippet.



        • The rest of the advanced and backup options are the same as for Stage1.
        • After creating a Stage1+2 DR policy, it will look like the snippet below.