Skip to content

DOCSP-17736 cluster chaining parameter #5941

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions source/reference/parameters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1567,6 +1567,33 @@ The following parameters support diagnostic data capture (FTDC):
Logical Session Parameters
~~~~~~~~~~~~~~~~~~~~~~~~~~

.. parameter:: enableOverrideClusterChainingSetting

.. versionadded:: 4.2.16

|both|

*Type*: boolean

*Default*: false

If :parameter:`enableOverrideClusterChainingSetting` is ``true``,
replica set :term:`secondary` members can replicate data from
other secondary members even if :rsconf:`settings.chainingAllowed` is
``false``.

You can only set :parameter:`enableOverrideClusterChainingSetting` at
startup and cannot change this setting with the
:dbcommand:`setParameter` command.

For example, to set the
:parameter:`enableOverrideClusterChainingSetting` for a
:binary:`~bin.mongod` instance to ``true``:

.. code-block:: bash

mongod --setParameter enableOverrideClusterChainingSetting=true

.. parameter:: logicalSessionRefreshMillis

.. admonition:: Availability
Expand Down
26 changes: 21 additions & 5 deletions source/reference/replica-configuration.txt
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,27 @@ Replica Set Configuration Fields

*Default*: true

When :rsconf:`settings.chainingAllowed` is
``true``, the replica set allows :term:`secondary` members to
replicate from other secondary members. When
:rsconf:`settings.chainingAllowed` is
``false``, secondaries can replicate only from the :term:`primary`.
In MongoDB 4.2.15 and earlier, if
:rsconf:`settings.chainingAllowed` is:

- ``true``, replica set :term:`secondary` members can
replicate data from other secondary members.

- ``false``, secondary members can replicate data only from the
:term:`primary`.

Starting in MongoDB 4.2.16:

- Replica set :term:`secondary` members can
replicate data from other secondary members even if
:rsconf:`settings.chainingAllowed` is ``false``.

- To override :rsconf:`settings.chainingAllowed`, set the
:parameter:`enableOverrideClusterChainingSetting` server
parameter to ``true``.

- The default for
:parameter:`enableOverrideClusterChainingSetting` is ``false``.

.. seealso:: :doc:`/tutorial/manage-chained-replication`

Expand Down