For sharded clusters, the index build occurs only on shardsĬontaining data for the collection being indexed. Starting with MongoDB 4.4, index builds on a replica set or shardedĬluster build simultaneously across all data-bearing replica set Indexes on the primary before replicating the index build to MongoDB 4.4 running featureCompatibilityVersion: "4.2" builds Least 4.4 to start index builds simultaneously across Must have featureCompatibilityVersion set to at The value of the corresponding configuration file setting orĬommand line option to persist those changes through a serverĮach mongod in the replica set or sharded cluster Is running overrides any values set on startup. The minimum oplog retention period while the mongod To configure the minimum oplog retention period on a running
Add the -oplogMinRetentionHours command line option.To configure the minimum oplog retention period when starting theĪdd the storage.oplogMinRetentionHours setting to the Maintain the configured maximum oplog size. The oplog entry is older than the configured number of hours basedīy default MongoDB does not set a minimum oplog retention period andĪutomatically truncates the oplog starting with the oldest entries to.The oplog has reached the maximum configured size, and.Starting in MongoDB 4.4, you can specify the minimum number of hours Sync if it encountered an error during the process. Prior to MongoDB 4.4, the secondary would restart the entire initial Synchronization process from the beginning. Healthy source from the replica set and restarts the initial Initial sync process during the configured time period, it selects a new If the secondary cannot successfully resume the Parameter for controlling the amount of time the secondary attempts to InitialSyncTransientErrorRetryPeriodSeconds server Restart the initial sync process as if it encountered a non-transientīy default, the secondary tries to resume initial sync for 24 hours. If the sync source runs MongoDB 4.2 or earlier, the secondary must Sync source must also run MongoDB 4.4 to support resumable initial sync. Temporary) network error, collection drop, or collection rename. To resume the sync process if interrupted by a transient (i.e. Starting in MongoDB 4.4, a secondary performing initial sync can attempt