Skip to content

Commit 6fa4111

Browse files
author
Bob Grabar
committed
DOCS-941 review edits
1 parent f5d122b commit 6fa4111

File tree

2 files changed

+29
-20
lines changed

2 files changed

+29
-20
lines changed

source/administration/replica-sets.txt

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -349,18 +349,16 @@ from another secondary member instead of from the :term:`primary`. This
349349
might be the case, for example, if a secondary selects its replication
350350
target based on ping time and if the closest member is another secondary.
351351

352-
Chained replication has the benefit of providing load balancing in cases
353-
where the primary is heavily loaded. But, depending on the network
354-
topology, replication chaining can also result in increased replication
355-
lag.
352+
Chained replication can reduce load on the primary. But depending on the network
353+
topology, chained replication can also result in increased replication lag.
356354

357355
.. versionadded:: 2.2.2
358356

359357
You can use the
360358
:data:`chainingAllowed <local.system.replset.settings.chainingAllowed>`
361359
setting in
362360
:doc:`/reference/replica-configuration` to disable chained replication
363-
for situations where replication lag is an issue. For details, see
361+
for situations where chained replication is causing lag. For details, see
364362
:ref:`replica-set-config-chained-replication`.
365363

366364
Procedures
@@ -631,7 +629,7 @@ You can use the following sequence of commands to set ``chainingAllowed`` to
631629

632630
.. code-block:: javascript
633631

634-
cfg = rs.conf()
632+
cfg = rs.config()
635633

636634
#. Take note of whether the current configuration settings contain the
637635
``settings`` sub-document. If they do, skip this step.
@@ -655,8 +653,19 @@ You can use the following sequence of commands to set ``chainingAllowed`` to
655653
cfg.settings.chainingAllowed = false
656654
rs.reconfig(cfg)
657655

658-
To re-enable chained replication, use :dbcommand:`replSetSyncFrom` to
659-
specify that each secondary replicates from the primary.
656+
To re-enable chained replication, set ``chainingAllowed`` to ``true``.
657+
You can use the following sequence of commands:
658+
659+
.. code-block:: javascript
660+
661+
cfg = rs.config()
662+
cfg.settings.chainingAllowed = true
663+
rs.reconfig(cfg)
664+
665+
.. note:: If chained replication is disabled, you still can use
666+
:dbcommand:`replSetSyncFrom` to specify that a secondary replicates
667+
from the primary. But that configuration will last only until the
668+
secondary recalculates which member to sync from.
660669

661670
.. _replica-set-procedure-change-oplog-size:
662671

source/reference/replica-configuration.txt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ Configuration Variables
217217

218218
**Type**: :term:`MongoDB Document <document>`
219219

220-
The settings document affects replication chaining and
221-
available :term:`write concern` options.
220+
The ``settings`` document configures options that apply to the whole
221+
replica set.
222222

223223
.. data:: local.system.replset.settings.chainingAllowed
224224

@@ -232,7 +232,7 @@ Configuration Variables
232232
members to replicate from other secondary members. When this value is
233233
``false``, secondaries can replicate only from the :term:`primary`.
234234

235-
When you run :method:`rs.conf()` to view a replica set's
235+
When you run :method:`rs.config()` to view a replica set's
236236
configuration, the ``chainingAllowed`` field appears only when it is
237237
set to ``false``. If ``chainingAllowed`` is set to its default value
238238
of ``true``, the field does not appear.
@@ -280,20 +280,20 @@ all optional fields.
280280
{
281281
_id : <ordinal>,
282282
host : hostname<:port>,
283-
<arbiterOnly : <boolean> >,
284-
<buildIndexes : <boolean> >,
285-
<hidden : <boolean> >,
286-
<priority: <priority> >,
287-
<tags: { <document> } >,
288-
<slaveDelay : <number> >,
283+
<arbiterOnly : <boolean>,>
284+
<buildIndexes : <boolean>,>
285+
<hidden : <boolean>,>
286+
<priority: <priority>,>
287+
<tags: { <document> },>
288+
<slaveDelay : <number>,>
289289
<votes : <number>>
290290
}
291291
, ...
292292
],
293293
<settings: {
294-
<chainingAllowed : <boolean> >,
295-
<getLastEerrorDefaults : <lasterrdefaults> >,
296-
<getLastErrorModes : <modes> >
294+
<chainingAllowed : <boolean>,>
295+
<getLastEerrorDefaults : <lasterrdefaults>,>
296+
<getLastErrorModes : <modes>>
297297
}>
298298
}
299299

0 commit comments

Comments
 (0)