File tree Expand file tree Collapse file tree 3 files changed +34
-3
lines changed Expand file tree Collapse file tree 3 files changed +34
-3
lines changed Original file line number Diff line number Diff line change @@ -39,12 +39,14 @@ Delayed members:
39
39
members. Set the priority to 0 to prevent a delayed member from
40
40
becoming primary.
41
41
42
- - **Should be** :ref:`hidden <replica-set-hidden-members>`
42
+ - **Must be** :ref:`hidden <replica-set-hidden-members>`
43
43
members. Always prevent applications from seeing and querying
44
44
delayed members.
45
45
46
46
- *Do* vote in :term:`elections <election>` for primary, if :rsconf:`members[n].votes` is set to 1.
47
47
48
+ .. include:: /includes/important-delayed-replica-set-members.rst
49
+
48
50
Behavior
49
51
~~~~~~~~
50
52
Original file line number Diff line number Diff line change @@ -39,8 +39,10 @@ Clients will not distribute reads with the appropriate :doc:`read
39
39
preference </core/read-preference>` to hidden members. As a result, these
40
40
members receive no traffic other than basic replication. Use hidden
41
41
members for dedicated tasks such as reporting and
42
- backups. :doc:`Delayed members </core/replica-set-delayed-member>`
43
- should be hidden.
42
+ backups.
43
+
44
+ .. include:: /includes/important-delayed-replica-set-members.rst
45
+
44
46
45
47
In a sharded cluster, :binary:`~bin.mongos` do not interact with hidden
46
48
members.
Original file line number Diff line number Diff line change
1
+ .. important ::
2
+
3
+ If your replica set contains :doc: `delayed members
4
+ </core/replica-set-delayed-member>` ensure that the delayed
5
+ members are hidden and non-voting.
6
+
7
+ Hiding delayed replica set members prevents applications from seeing
8
+ and querying delayed data without a direct connection to that member.
9
+ Making delayed replica set members non-voting means they will not
10
+ count towards acknowledging write operations with read concern
11
+ :readconcern: `"majority" `.
12
+
13
+ If you do not hide delayed members and one or more nodes
14
+ becomes unavailable, the replica set has to wait for the delayed
15
+ member and the commit point lags. A lagged commit point can lead to
16
+ performance issues.
17
+
18
+ For example:
19
+
20
+ - Primary-Secondary-Delayed replica set config where delayed
21
+ secondary is voting with 10 mins delay.
22
+ - With one non-delayed secondary unavailable, the degraded config of
23
+ Primary-Delayed will have to wait at least 10 minutes for a write
24
+ concern with majority to be acknowledged.
25
+ - The majority commit point will take longer to advance leading to
26
+ cache pressure similar to performance issues with a PSA replica
27
+ set.
You can’t perform that action at this time.
0 commit comments