@@ -261,17 +261,17 @@ set members sync, or copy, :term:`oplog` entries from other members.
261
261
When a new member joins a set or an existing member restarts, the
262
262
member waits to receive heartbeats from other members. By
263
263
default, the member syncs from the *the closest* member of the
264
- set that is either the primary or another secondary with more recent
265
- oplog entries. This prevents two secondaries from syncing from each other.
264
+ set that is either the primary or another :term:` secondary` with more recent
265
+ oplog entries.
266
266
267
267
In version 2.0, secondaries only change sync targets if the connection
268
- between secondaries drops or produces an error.
268
+ to the sync target drops or produces an error.
269
269
270
270
For example:
271
271
272
272
#. If you have two secondary members in one data center and a primary in
273
273
a second facility, and if you start all three instances at roughly
274
- the same time (i.e. with no existing data sets or oplog,) both
274
+ the same time (i.e. with no existing data sets or oplog), both
275
275
secondaries will likely sync from the primary, as neither secondary
276
276
has more recent oplog entries.
277
277
@@ -283,4 +283,28 @@ For example:
283
283
facility, the new secondary will likely sync from the existing
284
284
secondary because it is closer than the primary.
285
285
286
- .. seealso:: :ref:`replica-set-resync-stale-member`
286
+ In version 2.2, secondaries also use the following additional sync
287
+ behaviors:
288
+
289
+ - Secondaries will sync from :ref:`delayed members
290
+ <replica-set-delayed-members>` *only* if no other member is available.
291
+
292
+ - Secondaries will *not* sync from :ref:`hidden members
293
+ <replica-set-hidden-members>`.
294
+
295
+ - Secondaries will *not* start syncing from a member in a
296
+ :term:`recovering` state.
297
+
298
+ - For one member to sync from another, both members must have the same
299
+ value, either ``true`` or ``false``, for the
300
+ :data:`members[n].buildIndexes` field.
301
+
302
+ Pre-Fetching Indexes to Improve Replication Throughput
303
+ ------------------------------------------------------
304
+
305
+ By default, secondaries will in most cases pre-fetch :ref:`indexes`
306
+ associated with the affected document to improve replication throughput.
307
+
308
+ You can limit this feature to pre-fetch only the index on the ``_id``
309
+ field, or you can disable this feature entirely. For more information,
310
+ see :setting:`replIndexPrefetch`.
0 commit comments