1
- Starting in MongoDB 5.0, the implicit default write concern is
1
+ Starting in MongoDB 5.0, the implicit default
2
+ :ref: `write concern <write-concern >` is
2
3
:writeconcern: `w: majority <"majority"> `. However, special
3
- considerations are made for deployments containing :ref: ` arbiters
4
- <replica-set-arbiter-configuration>`:
4
+ considerations are made for deployments containing
5
+ :ref: ` arbiters <replica-set-arbiter-configuration >`:
5
6
6
7
- The voting majority of a replica set is 1 plus half the number of
7
8
voting members, rounded down. If the number of data-bearing voting
@@ -34,10 +35,10 @@ default write concerns:
34
35
- Majority of Voting Nodes
35
36
- Implicit Default Write Concern
36
37
37
- * - 3
38
+ * - 2
38
39
- 1
39
- - 4
40
40
- 3
41
+ - 2
41
42
- ``{ w: 1 } ``
42
43
43
44
* - 4
@@ -46,14 +47,26 @@ default write concerns:
46
47
- 3
47
48
- ``{ w: "majority" } ``
48
49
49
- - The first example has 3 non-arbiters and 1 arbiter for a total of 4
50
- voting nodes. The majority of voting nodes (1 plus half of 4) is 3.
51
- The number of non-arbiters (3) is less than or equal to the majority
52
- of voting nodes, resulting in an implicit write concern of
53
- ``{ w: 1 } ``.
50
+ - In the first example:
54
51
55
- - The second example has 4 non-arbiters and 1 arbiter for a total of 5
56
- voting nodes. The majority of voting nodes (1 plus half of 5, rounded
57
- down) is 3. The number of non-arbiters (4) is greater than the majority
58
- of voting nodes, resulting in an implicit write concern of ``{ w:
59
- "majority" } ``.
52
+ - There are 2 non-arbiters and 1 arbiter for a total of 3 voting
53
+ nodes.
54
+
55
+ - The majority of voting nodes (1 plus half of 3, rounded
56
+ down) is 2.
57
+
58
+ - The number of non-arbiters (2) is equal to
59
+ the majority of voting nodes (2), resulting in an implicit write
60
+ concern of ``{ w: 1 } ``.
61
+
62
+ - In the second example:
63
+
64
+ - There are 4 non-arbiters and 1 arbiter for a total of 5
65
+ voting nodes.
66
+
67
+ - The majority of voting nodes (1 plus half of 5, rounded
68
+ down) is 3.
69
+
70
+ - The number of non-arbiters (4) is greater than the majority
71
+ of voting nodes (3), resulting in an implicit write concern of
72
+ ``{ w: "majority" } ``.
0 commit comments