Skip to content

Commit efa833e

Browse files
committed
DOCS-11573: csrs data center
1 parent f59f596 commit efa833e

6 files changed

+47
-6
lines changed

source/core/replica-set-architecture-geographically-distributed.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,15 @@ distributions of members include:
5454
- If Data Center 2 goes down, the replica set remains writeable as
5555
the members in Data Center 1 can hold an election.
5656

57-
.. note::
58-
59-
.. include:: /includes/extracts/arbiters-and-pvs-with-reference.rst
6057

6158
- Three data centers: one members to Data Center 1, one member to Data
6259
Center 2, and one member to Data Center 3.
6360

6461
- If any Data Center goes down, the replica set remains writeable as
6562
the remaining members can hold an election.
6663

64+
.. include:: /includes/note-csrs-distribution.rst
65+
6766
Five-member Replica Set
6867
```````````````````````
6968

@@ -78,12 +77,15 @@ distributions of members include:
7877
- If Data Center 2 goes down, the replica set remains writeable as
7978
the members in Data Center 1 can create a majority.
8079

80+
8181
- Three data centers: two member to Data Center 1, two members to Data
8282
Center 2, and one member to site Data Center 3.
8383

8484
- If any Data Center goes down, the replica set remains writeable as
8585
the remaining members can hold an election.
8686

87+
.. include:: /includes/note-csrs-distribution.rst
88+
8789
For example, the following 5 member replica set distributes its members
8890
across three data centers.
8991

source/core/replica-set-architectures.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ throughput by distributing reads to secondary members. As your
125125
deployment grows, add or move members to alternate data centers to
126126
improve redundancy and availability.
127127

128+
.. include:: /includes/note-csrs-distribution.rst
129+
128130
Always ensure that the main facility is able to elect a primary.
129131

130132
Add Capacity Ahead of Demand
@@ -146,6 +148,9 @@ the likelihood that even with a loss of a data center, the remaining
146148
replica set members can form a majority or at minimum, provide a copy
147149
of your data.
148150

151+
.. include:: /includes/note-csrs-distribution.rst
152+
153+
149154
To ensure that the members in your main data center be elected primary
150155
before the members in the alternate data center, set the
151156
:rsconf:`members[n].priority` of the members in the alternate data

source/core/sharded-cluster-components.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,24 @@ for a production sharded cluster deployment:
4343
- Deploy each Shard as a 3 member :term:`replica set`
4444
- Deploy one or more :binary:`~bin.mongos` routers
4545

46+
Replica Set Distribution
47+
~~~~~~~~~~~~~~~~~~~~~~~~
48+
4649
Where possible, consider deploying one member of each replica set
4750
in a site suitable for being a disaster recovery location.
4851

52+
.. include:: /includes/note-csrs-distribution.rst
53+
54+
Number of Shards
55+
~~~~~~~~~~~~~~~~
56+
4957
Sharding requires at least two shards to distribute sharded data. Single
5058
shard sharded clusters may be useful if you plan on enabling sharding in
5159
the near future, but do not need to at the time of deployment.
5260

61+
Number of ``mongos`` and Distribution
62+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
63+
5364
Deploying multiple :binary:`~bin.mongos` routers supports high
5465
availability and scalability. A common pattern is to place a
5566
:binary:`~bin.mongos` on each application server. Deploying one
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.. note::
2+
3+
Distributing replica set members across two data centers provides
4+
benefit over a single data center. However, in a two data center
5+
distribution, if the data center with the majority of the members
6+
goes down, the replica set becomes read-only.
7+
8+
If possible, distribute members across at least three data centers.
9+
For config server replica sets (CSRS), distribute across three (or
10+
more depending on the number of members) centers if possible.

source/tutorial/deploy-geographically-distributed-replica-set.txt

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,20 @@ For a geographically redundant three-member replica set deployment, you
6767
must decide how to distribute your system. Some possible distributions
6868
for the three members are:
6969

70-
- Across Three Data Centers: One members to each site.
70+
- Across Three Data Centers: One members to each site.
7171

7272
- Across Two Data Centers: Two members to Site A and one member to Site
7373
B. If one of the members of the replica set is an arbiter, distribute
74-
the arbiter to Site A with a data-bearing member.
74+
the arbiter to Site A with a data-bearing member.
7575

76+
.. note::
77+
78+
Distributing across two data centers provides benefit over a single
79+
data center. However, in a two data center distribution, if the data
80+
center with two members goes down, the replica set becomes
81+
read-only. As such, for config server replica sets (CSRS),
82+
distribute across three data centers if possible.
83+
7684
.. include:: /includes/steps/deploy-geographically-distributed-replica-set-3member.rst
7785

7886
Deploy a Geographically Redundant Five-Member Replica Set
@@ -91,7 +99,10 @@ for the five members are:
9199
- Across Five Data Centers: One members in each site.
92100

93101
- Across Two Data Centers: Three members in Site A and two members in
94-
Site B.
102+
Site B. If possible, avoid distributing config server replica set across only
103+
two data centers.
104+
105+
.. include:: /includes/note-csrs-distribution.rst
95106

96107
The following five-member replica set includes an arbiter.
97108

source/tutorial/troubleshoot-sharded-clusters.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ and write data from the shards, but no :ref:`chunk migration
8181
</tutorial/split-chunks-in-sharded-cluster>` will occur until a primary
8282
is available.
8383

84+
.. include:: /includes/note-csrs-distribution.rst
85+
8486
.. include:: /includes/note-config-server-startup.rst
8587

8688
.. _sharded-clusters-3.2-config-server-avail:

0 commit comments

Comments
 (0)