@@ -15,9 +15,11 @@ Use ``mongosync`` for Disaster Recovery
1515Setting up {+c2c-product-name+} to prepare for disaster recovery follows the
1616same procedure as other :ref:`connections <c2c-connecting>` between clusters.
1717Synchronization keeps the destination cluster up to date with the source
18- cluster and ready as a backup. In the event that the source cluster fails or
19- becomes otherwise unavailable, the destination cluster can replace it as the
20- primary cluster.
18+ cluster using :term:`eventual consistency`. This means that until the migration
19+ commits, the destination cluster might represent a stale and inconsistent
20+ version of the source cluster. If the source cluster fails or becomes otherwise
21+ unavailable, the destination cluster can replace it as the primary cluster if
22+ your application can tolerate potentially stale data.
2123
2224:program:`mongosync` temporarily alters some collection characteristics
2325during synchronization. The original values are restored during the
@@ -58,6 +60,16 @@ the following changes that mimic the sync finalization process of the
5860
5961 If synchronization was started with write blocking, disable the Write
6062 Block Mode.
63+ * - :ref:`Capped Collections <c2c-dr-capped-collections>`
64+ - Synchronization sets capped collections to the maximum allowable
65+ size. To set your required maximum size, use the
66+ :dbcommand:`collMod` command.
67+ * - Dummy Indexes
68+ - In some cases, synchronization may create dummy indexes on the
69+ destination to support writes on sharded or collated collections.
70+
71+ Use the :dbcommand:`dropIndexes` command to drop any dummy indexes. Each
72+ dummy index's name contains the word ``dummy``.
6173
6274
6375.. _c2c-dr-unique:
@@ -141,3 +153,22 @@ To enable writes, update :dbcommand:`setUserWriteBlockMode`:
141153 }
142154 )
143155
156+ .. _c2c-dr-capped-collections:
157+
158+ Capped Collections
159+ ------------------
160+
161+ During synchronization, capped collections are set to the maximum
162+ allowable size. To set your required maximum size, use the ``collMod``
163+ command. For details, see :ref:`resize-capped-collection`.
164+
165+ .. example::
166+
167+ .. code-block:: javascript
168+ :emphasize-lines: 3
169+
170+ db.runCommand( {
171+ collMod: "<collection_name>",
172+ cappedSize: <max_size_in_bytes>,
173+ cappedMax: <max_number_of_documents_in_collection>
174+ } )
0 commit comments