Skip to content

Commit 1216390

Browse files
DOCSP-41323 made behavior page (#365)
1 parent fbcba2b commit 1216390

18 files changed

+380
-303
lines changed

snooty.toml

Lines changed: 2 additions & 1 deletion
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]

source/about-mongosync.txt

Lines changed: 6 additions & 5 deletions
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`

source/includes/fact-connection-strings-atlas.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
:ref:`mongosync <c2c-mongosync>` uses a :ref:`MongoDB URI
2-
connection string <mongodb-uri>` to connect clusters:
1+
``mongosync`` uses a :ref:`MongoDB URI
2+
connection string <mongodb-uri>` to connect Atlas clusters:
33

44
- The SRV connection scheme has the form:
55

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
``mongosync`` uses a :ref:`MongoDB URI
2+
connection string <mongodb-uri>` to connect self-managed clusters:
3+
4+
- The SRV connection scheme has the form:
5+
6+
.. code-block:: none
7+
8+
mongodb+srv://[username:password@][host.domain.TLD][/defaultauthdb][?options]
9+
10+
- The standard URI connection scheme has the form:
11+
12+
.. code-block:: none
13+
14+
mongodb://[username:password@]host1[:port1][,...hostN[:portN]][/[defaultauthdb][?options]]
15+
16+
Specify the hostnames of the :program:`mongod` instances the same way
17+
that they are listed in your replica set configuration.
18+
19+
For :ref:`sharded clusters <sharding-sharded-cluster>`, specify the
20+
hostnames of the :program:`mongos` instances instead of the
21+
:program:`mongod` instances.
22+
23+
.. note::
24+
25+
``mongosync`` does not require the :urioption:`replicaSet` option.
26+
27+
.. include:: /includes/read-preference-connection-string.rst

source/includes/fact-connection-strings.rst

Lines changed: 1 addition & 1 deletion
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:

source/index.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ and data residency compliance.
2020
In addition to continuous data synchronization, ``mongosync`` can also
2121
facilitate a one time data migration between clusters.
2222

23-
For an overview of ``mongosync``, see :ref:`about-mongosync`.
23+
For an overview of the ``mongosync`` process, see :ref:`about-mongosync`.
2424

2525
To get started with ``mongosync``, refer to the :ref:`Quick Start Guide
2626
<c2c-quickstart>`. For more detailed information, refer to the
2727
:ref:`c2c-install` or :ref:`c2c-connecting` page that best fits your
2828
situation. See also the :ref:`c2c-limitations` page for important
29-
restrictions.
29+
restrictions and the :ref:`c2c-mongosync-behavior` page for behavior information.
3030

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

source/quickstart.txt

Lines changed: 4 additions & 5 deletions
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.
@@ -117,7 +116,7 @@ Setup
117116

118117
.. step:: Download and install ``mongosync``
119118

120-
:ref:`c2c-mongosync` is the tool that connects the source and
119+
``mongosync`` is the tool that connects the source and
121120
destination clusters. You can host ``mongosync`` on its own
122121
hardware, ``mongosync`` does not have to run on the hardware that
123122
hosts your MongodDB clusters.
@@ -169,7 +168,7 @@ Connect the Clusters
169168

170169
.. step:: Initialize mongosync
171170

172-
:program:`mongosync` must create an initial connection to the source and
171+
``mongosync`` must create an initial connection to the source and
173172
destination clusters before it can start to sync data. To create the initial
174173
connection, issue the following command with your connection
175174
strings on a single line (the command is
@@ -284,7 +283,7 @@ Synchronization Notes
284283

285284
- The default port for the HTTP API is ``27182``. Use the ``--port``
286285
option with ``mongosync`` to :ref:`configure another port
287-
<c2c-mongosync>`
286+
<c2c-config>`.
288287

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

source/reference.txt

Lines changed: 4 additions & 4 deletions
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

source/reference/configuration.txt

Lines changed: 5 additions & 5 deletions
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

source/reference/disaster-recovery.txt

Lines changed: 5 additions & 5 deletions
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

@@ -77,8 +77,8 @@ the following changes that mimic the sync finalization process of the
7777
Unique Indexes
7878
--------------
7979

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

source/reference/logging.txt

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Logging
66

77
.. default-domain:: mongodb
88

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

1313
.. contents:: On this page
1414
:local:
@@ -20,7 +20,8 @@ calls.
2020
Destination
2121
-----------
2222

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

2526
Standard Output
2627
^^^^^^^^^^^^^^^
@@ -72,18 +73,19 @@ logs that ``mongosync`` has rotated.
7273
Verbosity
7374
---------
7475

75-
:program:`mongosync` supports user-defined verbosity to increase or decrease
76-
the level of log messages ``mongosync`` outputs.
76+
``mongosync`` supports user-defined verbosity to
77+
increase or decrease the level of log messages ``mongosync`` outputs.
7778

7879
The verbosity level can be set using the :option:`--verbosity` option from the
7980
command-line or the :setting:`verbosity` setting in the configuration file.
8081

8182
Format
8283
------
8384

84-
:program:`mongosync` outputs log messages in structured JSON format.
85-
Each log message is a document that holds the key-value pairs for that entry.
86-
The keys label the log message elements, the values are the reported events.
85+
``mongosync`` outputs log messages in structured
86+
JSON format. Each log message is a document that holds the key-value pairs for
87+
that entry. The keys label the log message elements, the values are the
88+
reported events.
8789

8890
For example:
8991

0 commit comments

Comments
 (0)