Skip to content

Commit 445dc8a

Browse files
Merge v0.9.0 into v1.0
Bring v0.9.0 and v1.0 back into sync
2 parents 74a6955 + e806f7e commit 445dc8a

17 files changed

+597
-62
lines changed

snooty.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ toc_landing_pages = ["/quickstart",
1717
"reference/reference",
1818
"/connecting",
1919
"/using-mongosync",
20+
"/multiple-mongosyncs",
2021
"/release-notes/release-notes",
2122
"/faq"
2223
]

source/faq.txt

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,21 @@ Which connection string options does ``mongosync`` allow?
5656
---------------------------------------------------------
5757

5858
``mongosync`` requires :ref:`readConcern: "majority" <read-concern>`
59-
and :ref:`writeConcern: "majority" <write-concern>`. ``mongosync``
60-
overwrites any other ``readConcern`` or ``writeConcern`` and uses
61-
``"majority"`` instead.
59+
and :ref:`writeConcern: "majority" <write-concern>`.
60+
61+
If the ``readConcern`` is not ``majority``, ``mongosync`` returns an
62+
error:
63+
64+
.. code-block:: shell
65+
66+
Invalid URI option, read concern must be majority
67+
68+
If the ``writeConcern`` is not ``majority``, ``mongosync`` returns an
69+
error:
70+
71+
.. code-block:: shell
72+
73+
Invalid URI option, write concern must be majority
6274

6375
``mongosync`` accepts all other :ref:`connection string options
6476
<mongodb-uri>`.

source/includes/api/requests/start-reversible.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
curl localhost:27182/api/v1/start -XPOST
1+
curl localhost:27182/api/v1/start -XPOST \
22
--data '
33
{
44
"source": "cluster0",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
To set ``enableUserWriteBlocking``, the ``mongosync`` user must have a
2+
role that includes the ``setUserWriteBlockMode`` and
3+
``bypassWriteBlockingMode`` ActionTypes.

source/includes/opts/cluster0.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.. reference/configuration.txt
2+
.. reference/mongosync.txt
3+
4+
Sets the :ref:`connection URI <mongodb-uri>` for the first cluster.
5+
The first cluster can serve as either the source or the destination
6+
in the sync process. Designate the source and destination clusters
7+
in the call to the :ref:`c2c-api-start` API endpoint.
8+
9+
For more information on connecting ``mongosync``, see
10+
:ref:`Connections <c2c-connecting>`.

source/includes/opts/cluster1.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.. reference/configuration.txt
2+
.. reference/mongosync.txt
3+
4+
Sets the :ref:`connection URI <mongodb-uri>` for the second cluster.
5+
The second cluster can serve as either the source or the destination
6+
in the sync process. Designate the source and destination clusters
7+
in the call to the :ref:`c2c-api-start` API endpoint.
8+
9+
For more information on connecting ``mongosync``, see
10+
:ref:`Connections <c2c-connecting>`.

source/includes/opts/id.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.. reference/configuration.txt
2+
.. reference/mongosync.txt
3+
4+
Sets an identifier for the ``mongosync`` instance.
5+
6+
Use this |opt-term| when running multiple instances of ``mongosync`` on a sharded
7+
cluster, to synchronize the shards individually.
8+
9+
The identifier value for this |opt-term| must correspond to the shard ID of the
10+
shard it syncs. To find the shard ID, use the :dbcommand:`listShards` command.

source/includes/opts/logPath.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.. reference/configuration.txt
2+
.. reference/mongosync.txt
3+
4+
Sets the path to the log directory. {+c2c-product-name+} writes logs
5+
to files in this directory.

source/includes/opts/port.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.. reference/configuration.txt
2+
.. reference/mongosync.txt
3+
4+
*Default*: ``27182``
5+
6+
Sets the port used by the HTTP server for the {+c2c-product-name+}
7+
HTTP API.

source/includes/opts/verbosity.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.. reference/configuration.txt
2+
.. reference/mongosync.txt
3+
4+
*Default*: ``INFO``
5+
6+
Sets the verbosity level to use in log messages.
7+
{+c2c-product-name+} logs all messages at the specified level and
8+
any messages at lower levels.
9+
10+
The |verbosity-opt| |verbosity-opt-type| supports the following values:
11+
12+
- ``TRACE``
13+
- ``DEBUG``
14+
- ``INFO``
15+
- ``WARN``
16+
- ``ERROR``
17+
- ``FATAL``
18+
- ``PANIC``

source/index.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ common questions users have asked about ``mongosync``.
3838
/quickstart
3939
/installation
4040
/connecting
41+
/multiple-mongosyncs
4142
/reference
4243
/release-notes
4344
/faq

0 commit comments

Comments
 (0)