Skip to content

Commit 7914c91

Browse files
DOCSP-41323 made behavior page
1 parent 450c92b commit 7914c91

19 files changed

+350
-311
lines changed

Diff for: snooty.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ toc_landing_pages = ["/quickstart",
2121
"/release-notes/release-notes",
2222
"/faq",
2323
"/reference/collection-level-filtering",
24-
"/reference/verification"
24+
"/reference/verification",
25+
"/reference/mongosync"
2526
]
2627

2728
[constants]

Diff for: source/about-mongosync.txt

+6-5
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ About ``mongosync``
1212
:depth: 2
1313
:class: singlecol
1414

15-
The ``mongosync`` binary is the primary process used in {+c2c-product-name+}.
16-
``mongosync`` migrates data from a source cluster to a destination cluster and
17-
keeps the clusters in continuous sync until you
15+
The :ref:`mongosync <c2c-mongosync>` binary is the primary process used in
16+
{+c2c-product-name+}. ``mongosync`` migrates data from a source cluster to a
17+
destination cluster and keeps the clusters in continuous sync until you
1818
:ref:`finalize <c2c-about-finalizing>` the sync.
1919

2020
You can use ``mongosync`` to create
@@ -162,5 +162,6 @@ Learn More
162162

163163
To learn more about ``mongosync``, see:
164164

165-
- :ref:`mongosync <c2c-mongosync>`
166-
- :ref:`mongosync States <c2c-states>`
165+
- :ref:`c2c-mongosync`
166+
- :ref:`mongosync Behavior <c2c-mongosync-behavior>`
167+
- :ref:`c2c-limitations`

Diff for: source/includes/fact-connection-strings-atlas.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
:ref:`mongosync <c2c-mongosync>` uses a :ref:`MongoDB URI
1+
``mongosync`` uses a :ref:`MongoDB URI
22
connection string <mongodb-uri>` to connect Atlas clusters:
33

44
- The SRV connection scheme has the form:

Diff for: source/includes/fact-connection-strings-onprem.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
:ref:`mongosync <c2c-mongosync>` uses a :ref:`MongoDB URI
1+
``mongosync`` uses a :ref:`MongoDB URI
22
connection string <mongodb-uri>` to connect self-managed clusters:
33

44
- The SRV connection scheme has the form:

Diff for: source/includes/fact-connection-strings.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
:ref:`mongosync <c2c-mongosync>` uses a :ref:`MongoDB URI
1+
``mongosync`` uses a :ref:`MongoDB URI
22
connection string <mongodb-uri>` to connect clusters:
33

44
- The SRV connection scheme has the form:

Diff for: source/index.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ To get started with ``mongosync``, refer to the :ref:`Quick Start Guide
2727
<c2c-quickstart>`. For more detailed information, refer to the
2828
:ref:`c2c-install` or :ref:`c2c-connecting` page that best fits your
2929
situation. See also the :ref:`c2c-limitations` page for important
30-
restrictions.
30+
restrictions and the :ref:`c2c-mongosync-behavior` page for behavior information.
3131

3232
.. include:: /includes/limitations-warning
3333

Diff for: source/quickstart.txt

+4-5
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ Overview
2121

2222
{+c2c-full-product-name+} connects MongoDB clusters and provides a way
2323
to synchronize data between them. The tool that makes the connection is
24-
:ref:`c2c-mongosync`. This page provides a short introduction to help
25-
you get started with {+c2c-product-name+}. For more details, please see
24+
:ref:`mongosync <c2c-mongosync>`. For more details, please see
2625
the rest of the {+c2c-product-name+} documentation.
2726

2827
``mongosync`` syncs data between two clusters.
@@ -119,7 +118,7 @@ Setup
119118

120119
.. step:: Download and install ``mongosync``
121120

122-
:ref:`c2c-mongosync` is the tool that connects the source and
121+
``mongosync`` is the tool that connects the source and
123122
destination clusters. You can host ``mongosync`` on its own
124123
hardware, ``mongosync`` does not have to run on the hardware that
125124
hosts your MongodDB clusters.
@@ -171,7 +170,7 @@ Connect the Clusters
171170

172171
.. step:: Initialize mongosync
173172

174-
:program:`mongosync` must create an initial connection to the source and
173+
``mongosync`` must create an initial connection to the source and
175174
destination clusters before it can start to sync data. To create the initial
176175
connection, issue the following command with your connection
177176
strings on a single line (the command is
@@ -295,7 +294,7 @@ Synchronization Notes
295294

296295
- The default port for the HTTP API is ``27182``. Use the ``--port``
297296
option with ``mongosync`` to :ref:`configure another port
298-
<c2c-mongosync>`
297+
<c2c-config>`.
299298

300299
- ``mongosync`` can swap the source and destination clusters to enable
301300
:ref:`reverse synchronization <c2c-api-reverse>`.

Diff for: source/reference.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ Reference
33
=========
44

55
:ref:`c2c-mongosync`
6-
The options and behavior in {+c2c-product-name+}.
6+
Overview of ``mongosync`` binary.
77

88
:ref:`c2c-config`
9-
Configure :program:`mongosync` instances at startup using a
10-
configuration file.
9+
Configure ``mongosync`` instances at startup
10+
using a configuration file.
1111

1212
:ref:`c2c-api`
1313
API endpoints to interact with ``mongosync``.
@@ -50,7 +50,7 @@ Reference
5050

5151
.. toctree::
5252
:titlesonly:
53-
53+
5454
/reference/mongosync
5555
/reference/configuration
5656
/reference/api

Diff for: source/reference/configuration.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ Configuration
1212
:depth: 2
1313
:class: singlecol
1414

15-
You can configure :program:`mongosync` instances at startup using a
16-
configuration file. The configuration file contains settings that are
15+
You can configure :ref:`mongosync <c2c-mongosync>` instances at startup
16+
using a configuration file. The configuration file contains settings that are
1717
the equivalent of ``mongosync`` command line options.
1818

1919
Configuration File
2020
==================
2121

22-
Most :program:`mongosync` command line options can be written to a YAML
23-
file. The configuration file specifies values for each setting using
24-
YAML format.
22+
You can write most ``mongosync``
23+
:ref:`command line options <c2c-cli-options>` to a YAML file. The
24+
configuration file specifies values for each setting using YAML format.
2525

2626
For example:
2727

Diff for: source/reference/cutover-process.txt

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Finalize Cutover Process
1414

1515
You can finalize a migration and transfer your application
1616
workload from the source to the destination cluster using the
17-
``mongosync`` cutover process.
17+
:ref:`mongosync <c2c-mongosync>` cutover process.
1818

1919
.. note::
2020

@@ -29,7 +29,8 @@ Steps
2929
.. procedure::
3030
:style: normal
3131

32-
.. step:: Verify the status of the :program:`mongosync` process.
32+
.. step:: Verify the status of the ``mongosync``
33+
process.
3334

3435
Call the :ref:`progress <c2c-api-progress>` endpoint to determine
3536
the status of ``mongosync`` before starting the cutover process.

Diff for: source/reference/disaster-recovery.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ version of the source cluster. If the source cluster fails or becomes otherwise
2121
unavailable, the destination cluster can replace it as the primary cluster if
2222
your application can tolerate potentially stale data.
2323

24-
:program:`mongosync` temporarily alters some collection characteristics
25-
during synchronization. The original values are restored during the
26-
:ref:`commit process <c2c-api-commit>`. If synchronization ends prematurely,
24+
:ref:`mongosync <c2c-mongosync>` temporarily alters some collection
25+
characteristics during synchronization. The original values are restored during
26+
the :ref:`commit process <c2c-api-commit>`. If synchronization ends prematurely,
2727
you must manually reset these collection characteristics on the destination
2828
cluster before you can use it as the primary cluster.
2929

@@ -102,8 +102,8 @@ To enable writes, update :dbcommand:`setUserWriteBlockMode`:
102102
Unique Indexes
103103
--------------
104104

105-
:program:`mongosync` replicates writes in parallel, which can cause
106-
transient uniqueness violations on the destination cluster. To avoid
105+
``mongosync`` replicates writes in parallel, which
106+
can cause transient uniqueness violations on the destination cluster. To avoid
107107
these errors, unique indexes are replicated as non-unique. If
108108
synchronization ends early, manually resolve any uniqueness violations
109109
and convert any non-unique indexes that should be unique into unique indexes.

Diff for: source/reference/logging.txt

+11-9
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Logging
77

88
.. default-domain:: mongodb
99

10-
:program:`mongosync` maintains a running log of events, including entries
11-
such as the copying collections and indexes, change stream events, and API
12-
calls.
10+
:ref:`mongosync <c2c-mongosync>` maintains a running log of events,
11+
including entries such as the copying collections and indexes, change stream
12+
events, and API calls.
1313

1414
.. contents:: On this page
1515
:local:
@@ -21,7 +21,8 @@ calls.
2121
Destination
2222
-----------
2323

24-
:program:`mongosync` can write log messages to stdout or to file.
24+
``mongosync`` can write log messages to stdout or
25+
to file.
2526

2627
Standard Output
2728
^^^^^^^^^^^^^^^
@@ -77,18 +78,19 @@ Rotate Log File
7778
Verbosity
7879
---------
7980

80-
:program:`mongosync` supports user-defined verbosity to increase or decrease
81-
the level of log messages ``mongosync`` outputs.
81+
``mongosync`` supports user-defined verbosity to
82+
increase or decrease the level of log messages ``mongosync`` outputs.
8283

8384
The verbosity level can be set using the :option:`--verbosity` option from the
8485
command-line or the :setting:`verbosity` setting in the configuration file.
8586

8687
Format
8788
------
8889

89-
:program:`mongosync` outputs log messages in structured JSON format.
90-
Each log message is a document that holds the key-value pairs for that entry.
91-
The keys label the log message elements, the values are the reported events.
90+
``mongosync`` outputs log messages in structured
91+
JSON format. Each log message is a document that holds the key-value pairs for
92+
that entry. The keys label the log message elements, the values are the
93+
reported events.
9294

9395
For example:
9496

0 commit comments

Comments
 (0)