From d1a675af9055ded902adac6076e5f808990dcdea Mon Sep 17 00:00:00 2001 From: Jozef Kralik Date: Fri, 14 Jun 2024 07:10:20 +0000 Subject: [PATCH] disaster-recovery: add replica-set option --- .../disaster-recovery.md | 22 ++- ...overy-active-replica-set-backup.drawio.svg | 175 ++++++++++++++++++ 2 files changed, 195 insertions(+), 2 deletions(-) create mode 100644 content/en/docs/features/monitoring-and-diagnostics/static/disaster-recovery-active-replica-set-backup.drawio.svg diff --git a/content/en/docs/features/monitoring-and-diagnostics/disaster-recovery.md b/content/en/docs/features/monitoring-and-diagnostics/disaster-recovery.md index 5530c35c..415dc567 100644 --- a/content/en/docs/features/monitoring-and-diagnostics/disaster-recovery.md +++ b/content/en/docs/features/monitoring-and-diagnostics/disaster-recovery.md @@ -68,9 +68,27 @@ To back up the database, two approaches can be used: * **Active Backup** - ![active-backup](/docs/features/monitoring-and-diagnostics/static/disaster-recovery-active-backup.drawio.svg) + The database actively synchronizes data between two clusters in real-time. This approach is more complex and resource-intensive but is more reliable for disaster recovery. For MongoDB, use: - The database actively synchronizes data between two clusters in realtime. This approach is more complex and resource-intensive but is more reliable for disaster recovery. For MongoDB, use `cluster-to-cluster-sync` feature to synchronize data between two MongoDB clusters. For more details on this approach, refer to the [MongoDB documentation](https://www.mongodb.com/docs/cluster-to-cluster-sync/current/connecting/onprem-to-onprem/). + * **Replica set synchronization**: + + ![active-backup-replica-set](/docs/features/monitoring-and-diagnostics/static/disaster-recovery-active-replica-set-backup.drawio.svg) + + The primary and secondary cluster MongoDB members are in the same MongoDB replica set. The secondary cluster members are configured as [hidden](https://www.mongodb.com/docs/manual/core/replica-set-hidden-member), [delayed](https://www.mongodb.com/docs/manual/core/replica-set-delayed-member/), and with [zero priority](https://www.mongodb.com/docs/manual/core/replica-set-priority-0-member/). When the primary cluster goes down, the secondary cluster MongoDB members are promoted to secondary state—one of them will become primary. After the primary is back online, the primary cluster members will be demoted to hidden. For switching back, the primary cluster members will be promoted to secondary MongoDB members and secondary cluster members will be demoted. **This approach is supported by plgd hub helm chart**. For setup instructions, please refer to this [tutorial](). + + {{< note >}} + This is compliant with the MongoDB Community Server license. For more information, refer to the [MongoDB Server Side Public License](https://www.mongodb.com/licensing/server-side-public-license). + {{< /note >}} + + * **Cluster to cluster synchronization** + + ![active-backup](/docs/features/monitoring-and-diagnostics/static/disaster-recovery-active-backup.drawio.svg) + + A feature to synchronize data between two MongoDB clusters. For more details on this approach, refer to the [MongoDB documentation](https://www.mongodb.com/docs/cluster-to-cluster-sync/current/connecting/onprem-to-onprem/). + + {{< note >}} + The licensing of the MongoDB cluster-to-cluster sync feature **is not compliant with the MongoDB Community Server**. For more information, refer to the [mongosync package LICENSE file](https://fastdl.mongodb.org/tools/mongosync/mongosync-amazon2-x86_64-1.7.3.tgz). + {{< /note >}} {{< warning >}} diff --git a/content/en/docs/features/monitoring-and-diagnostics/static/disaster-recovery-active-replica-set-backup.drawio.svg b/content/en/docs/features/monitoring-and-diagnostics/static/disaster-recovery-active-replica-set-backup.drawio.svg new file mode 100644 index 00000000..79b3cc54 --- /dev/null +++ b/content/en/docs/features/monitoring-and-diagnostics/static/disaster-recovery-active-replica-set-backup.drawio.svg @@ -0,0 +1,175 @@ + + + + + + + +
+
+
+ Internet +
+
+
+
+ + Internet + +
+
+ + + + +
+
+
+ + + Primary cluster +
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + Primary cluster... + +
+
+ + + + +
+
+
+ + + Backup cluster +
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + Backup cluster... + +
+
+ + + + + +
+
+
+ + Replica set +
+
+
+
+
+
+
+
+
+
+
+ + Replica set... + +
+
+ + + + +
+
+
+ + + Database + + +
+
+
+
+ + Database + +
+
+ + + + +
+
+
+ + + Database + + +
+
+
+
+ + Database + +
+
+ + + + +
+
+
+ + [In real-time] + +
+
+
+
+ + [In real-tim... + +
+
+
+ + + + + Text is not SVG - cannot display + + + +
\ No newline at end of file