Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.
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
3 changes: 3 additions & 0 deletions source/includes/api/facts/multiple-mongosync-endpoints.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
When you configure multiple ``mongosync`` instances to sync between
sharded clusters, you must send identical API endpoint commands to each
``mongosync`` instance.
3 changes: 2 additions & 1 deletion source/multiple-mongosyncs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ the source cluster. You must use the same version of ``mongosync``
between all instances. For a replica set source, you can only use one
``mongosync`` instance.

.. include:: /includes/api/facts/multiple-mongosync-endpoints

To configure multiple ``mongosync`` instances:

#. :ref:`Verify cluster configuration <c2c-shard-config-verify>`
Expand Down Expand Up @@ -147,7 +149,6 @@ To configure multiple ``mongosync`` instances:
Consider designating a range of ports to simplify scripting
{+c2c-product-name+} operations.


.. _c2c-sharded-start:

Start Multiple ``mongosync`` Instances
Expand Down
11 changes: 9 additions & 2 deletions source/reference/api/commit.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ Before using the ``commit`` endpoint:
- Use the :ref:`progress <c2c-api-progress>` endpoint to confirm the
following values:

- ``state: "RUNNING"``
- ``canCommit: true``
- ``lagTimeSeconds`` is near ``0`` (*Recommended, but not required*)

.. note:: lagTimeSeconds
Expand All @@ -75,6 +73,15 @@ Before using the ``commit`` endpoint:
When ``lagTimeSeconds`` is ``0``, the source and destination
clusters are in a consistent state.

- ``state: "RUNNING"``
- ``canCommit: true``

.. note::

.. include:: /includes/api/facts/multiple-mongosync-endpoints
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think on all of the API endpoint pages it becomes confusing because it doesn't link to a multiple mongosync section that explains how to use it. Could we try to add something like that?


For more information, see :ref:`c2c-sharded-commit`.

Request
-------

Expand Down
7 changes: 7 additions & 0 deletions source/reference/api/pause.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ Requirement
To use the ``pause`` endpoint, ``mongosync`` must be in the ``RUNNING``
state.

.. note::

.. include:: /includes/api/facts/multiple-mongosync-endpoints

For more information, see :ref:`Pause Multiple Mongosyncs
<c2c-sharded-pause>`.

Request
-------

Expand Down
7 changes: 7 additions & 0 deletions source/reference/api/resume.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ Requirement
To use the ``resume`` endpoint, ``mongosync`` must be in the ``PAUSED``
state.

.. note::

.. include:: /includes/api/facts/multiple-mongosync-endpoints

For more information, see :ref:`Resume Multiple Mongosyncs
<c2c-sharded-resume>`.

Request
-------

Expand Down
7 changes: 7 additions & 0 deletions source/reference/api/reverse.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ To use the ``reverse`` endpoint:
- .. include:: /includes/fact-reverse-limitation.rst
- .. include:: /includes/fact-permissions-body.rst

.. note::

.. include:: /includes/api/facts/multiple-mongosync-endpoints

For more information, see :ref:`Reverse Multiple Mongosyncs
<c2c-sharded-reverse>`.

.. _c2c-validate-unique-index:

Validate Unique Indexes
Expand Down
7 changes: 7 additions & 0 deletions source/reference/api/start.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ Ensure that you use this configured ``mongosync`` user in the connection
strings for the :setting:`cluster0` or :setting:`cluster1` settings when
you start ``mongosync``.

.. note::

.. include:: /includes/api/facts/multiple-mongosync-endpoints

For more information, see :ref:`Start Multiple Mongosyncs
<c2c-sharded-start>`.

Request
-------

Expand Down