Skip to content

Commit 2fd95fb

Browse files
author
Dave Cuthbert
authored
Merge pull request #4 from davemungo/DOCSP-22673-Create-faq-page
DOCSP-22673 Create FAQ page
2 parents 12f2095 + 4751289 commit 2fd95fb

File tree

1 file changed

+79
-0
lines changed

1 file changed

+79
-0
lines changed

source/faq.txt

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,82 @@ Frequently Asked Questions
1010
This page provides answers to some frequently asked questions we have
1111
encountered. If you have additional questions please contact MongoDB
1212
Support.
13+
14+
Does ``mongosync`` have to use the same operating system as MongoDB Enterprise Server?
15+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16+
17+
When ``mongosync`` runs on its own hardware, it does not have to use
18+
the same operation system (OS) as the source or destination clusters it
19+
is connecting.
20+
21+
Should I increase the size of the oplog in the source cluster?
22+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
23+
24+
If you anticipate synchronizing a large data set, or if you plan to
25+
pause synchronization for an extended period of time, increase the size
26+
of the replica set :term:`oplog` in the source cluster.
27+
28+
The ``oplog`` in the source cluster must be large enough to track
29+
events that happen during the time it takes to complete the initial
30+
sync to the destination cluster.
31+
32+
The proper ``oplog`` size depends on system hardware, network speed,
33+
and other factors including system workload. However, assuming network
34+
transfer speeds of 30-50GB per hour, a rough formula to estimate the
35+
required ``oplog`` size is:
36+
37+
.. code-block:: shell
38+
39+
minimumRetentionHours = dataSizeInGB / 30
40+
41+
To learn more about how to increase the size of the ``oplog``, see:
42+
:ref:`tutorial-change-oplog-size`.
43+
44+
Which connection string options does ``mongosync`` allow?
45+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
46+
47+
``mongosync`` requires :ref:`readConcern: "majority" <read-concern>`
48+
and :ref:`writeConcern: "majority" <write-concern>`. ``mongosync``
49+
overwrites any other ``readConcern`` or ``writeConcern`` and uses
50+
``"majority"`` instead.
51+
52+
``monogosync`` accepts all other :ref:`connection string options
53+
<mongodb-uri>`.
54+
55+
56+
Which security and authentication options are supported?
57+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
58+
59+
``mongosync`` uses a standard MongoDB :ref:`connection string
60+
<mongodb-uri>` to connect to the source and destination clusters.
61+
62+
:ref:`LDAP <security-auth-ldap>` and :ref:`X509
63+
<authentication-mechanism-x509>` are supported. For available
64+
authentication options, see :ref:`authentication`.
65+
66+
67+
Can I configure ``mongosync`` for high availability?
68+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69+
70+
There is no automatic failover built into ``mongosync``. However you
71+
can write a script or use your operating system's process managers,
72+
``systemd`` for example, to restart the ``mongosync`` process.
73+
74+
The ``mongosync`` binary is stateless. The metadata for restarting is
75+
stored on the destination cluster.
76+
77+
A ``mongosync`` operation can be resumed if ``mongosync`` becomes
78+
unavailable during synchronization. When ``mongosync`` becomes
79+
available again, restart the ``mongosync`` process with the same
80+
parameters. ``mongosync`` resumes the operation from where it stopped
81+
when ``mongosync`` became unavailable.
82+
83+
Can the source or destination be a replica set with arbiters?
84+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
85+
86+
Yes, the replica set can have arbiters. The source replica set must
87+
have more than 2 non-arbiter nodes and you must sync from a non-arbiter
88+
node. Use the source cluster's connection string to specify a
89+
:ref:`read preference <mongodb-uri>` for a non-arbiter, data-bearing
90+
node.
91+

0 commit comments

Comments
 (0)