Skip to content

DOCSP-17736 cluster chaining parameter #5937

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

Merged
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 @@ -1984,6 +1984,33 @@ The following parameters support diagnostic data capture (FTDC):
Replication and Consistency
~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. parameter:: enableOverrideClusterChainingSetting

.. versionadded:: 5.0.2

|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

.. note:: 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 @@ -467,11 +467,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 5.0.1 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 5.0.2:

- 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::

Expand Down
10 changes: 9 additions & 1 deletion source/release-notes/5.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,15 @@ re-evaluating a sync source. This parameter will not prevent a node
from starting to sync from another node if it doesn't have a sync
source.

``enableOverrideClusterChainingSetting`` Server Parameter
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Starting in MongoDB 5.0.2, you can set the new
:parameter:`enableOverrideClusterChainingSetting` server parameter to
``true`` to allow :term:`secondary` members to replicate data from other
secondary members even if :rsconf:`settings.chainingAllowed` is
``false``.

.. _5.0-rel-notes-security:

Security
Expand Down Expand Up @@ -588,7 +597,6 @@ This parameter can affect the behavior of:
:dbcommand:`moveChunk` commands to evenly distribute chunks across
shards. See :ref:`sharding-balancing`.


.. _5.0-rel-notes-shell:

Shell Changes
Expand Down