Skip to content

Commit 771ce4d

Browse files
author
Dave
authored
DOCS-14938 BACKPORT (#419)
1 parent 1fd54ef commit 771ce4d

File tree

2 files changed

+54
-21
lines changed

2 files changed

+54
-21
lines changed

source/core/replica-set-arbiter.txt

Lines changed: 50 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@ Replica Set Arbiter
1515

1616
.. start-content
1717

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``.
2526

2627
.. important::
2728

@@ -37,19 +38,6 @@ Release Version Considerations
3738

3839
.. include:: /includes/5.1/fact-do-not-use-with-quarterlies.rst
3940

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-
5341
Performance Issues with PSA replica sets
5442
----------------------------------------
5543

@@ -60,6 +48,35 @@ Replica Set Protocol Version and Arbiter
6048

6149
.. include:: /includes/extracts/arbiters-and-pvs-with-reference.rst
6250

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.
6380

6481
Security
6582
--------
@@ -91,3 +108,16 @@ exchanges are not encrypted.
91108
As with all MongoDB components, run arbiters in trusted network
92109
environments.
93110

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+
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
.. warning::
22

3-
In general, avoid deploying more than one arbiter per replica set.
3+
Avoid deploying more than one arbiter per replica set.
4+
5+
See also: :ref:`rollbacks-multi-arbiters`
6+

0 commit comments

Comments
 (0)