@@ -15,13 +15,14 @@ Replica Set Arbiter
15
15
16
16
.. start-content
17
17
18
- In some circumstances (such as you have a primary and a secondary but
19
- cost constraints prohibit adding another secondary), you may choose to
20
- add an arbiter to your replica set. An arbiter does **not** have a copy
21
- of the data set and **cannot** become a primary. However, an arbiter
22
- participates in :ref:`elections for primary <replica-set-elections>`.
23
- By default an arbiter has priority ``0``. An arbiter has exactly ``1``
24
- election vote.
18
+ In some circumstances (such as when you have a primary and a secondary,
19
+ but cost constraints prohibit adding another secondary), you may choose
20
+ to add an arbiter to your replica set. An arbiter participates in
21
+ :ref:`elections for primary <replica-set-elections>` but an arbiter does
22
+ **not** have a copy of the data set and **cannot** become a primary.
23
+
24
+ An arbiter has exactly ``1`` election vote. By default an arbiter has
25
+ priority ``0``.
25
26
26
27
.. important::
27
28
@@ -37,19 +38,6 @@ Release Version Considerations
37
38
38
39
.. include:: /includes/5.1/fact-do-not-use-with-quarterlies.rst
39
40
40
- Example
41
- -------
42
-
43
- .. start-content-even-votes-example
44
-
45
- For example, in the following replica set with a 2 data bearing members
46
- (the primary and a secondary), an arbiter allows the set to have an odd
47
- number of votes to break a tie:
48
-
49
- .. include:: /images/replica-set-primary-with-secondary-and-arbiter.rst
50
-
51
- .. end-content-even-votes-example
52
-
53
41
Performance Issues with PSA replica sets
54
42
----------------------------------------
55
43
@@ -60,6 +48,35 @@ Replica Set Protocol Version and Arbiter
60
48
61
49
.. include:: /includes/extracts/arbiters-and-pvs-with-reference.rst
62
50
51
+ .. _rollbacks-multi-arbiters:
52
+
53
+ Concerns with Multiple Arbiters
54
+ -------------------------------
55
+
56
+ Use a single arbiter to avoid problems with data consistency. Multiple
57
+ arbiters prevent the reliable use of the majority write concern.
58
+
59
+ To ensure that a write will persist after the failure of a primary node,
60
+ the majority write concern requires a majority of nodes to acknowledge
61
+ a write operation. Arbiters do not store any data, but they do
62
+ contribute to the number of nodes in a replica set. When a replica set
63
+ has multiple arbiters it is less likely that a majority of data bearing
64
+ nodes will be available after a node failure.
65
+
66
+ For more information, see this `Knowledge Base
67
+ <https://kb.corp.mongodb.com/article/000019126/>`__ article on multiple
68
+ arbiters.
69
+
70
+ .. warning::
71
+
72
+ If a secondary node falls behind the primary, and the cluster is
73
+ :method:`reconfigured <rs.reconfig()>`, votes from multiple arbiters
74
+ can elect the node that had fallen behind. The new primary will not
75
+ have the unreplicated writes even though the writes could have been
76
+ majority committed by the old configuration. The result is data
77
+ loss.
78
+
79
+ To avoid this scenario, use at most a single arbiter.
63
80
64
81
Security
65
82
--------
@@ -91,3 +108,16 @@ exchanges are not encrypted.
91
108
As with all MongoDB components, run arbiters in trusted network
92
109
environments.
93
110
111
+ Example
112
+ -------
113
+
114
+ .. start-content-even-votes-example
115
+
116
+ For example, in the following replica set with 2 data-bearing members
117
+ (the primary and a secondary), an arbiter allows the set to have an odd
118
+ number of votes to break a tie:
119
+
120
+ .. include:: /images/replica-set-primary-with-secondary-and-arbiter.rst
121
+
122
+ .. end-content-even-votes-example
123
+
0 commit comments