Configuration File Settings and Command-Line Options Mapping
The following table maps the configuration file settings and the related mongod and mongos command-line options.
ChangeLog
- Starting in version 6.1:
- MongoDB always enables journaling. As a result, MongoDB removes the
storage.journal.enabledoption and the corresponding--journaland--nojournalcommand-line options. - Starting in version 5.0:
- MongoDB removes the
--serviceExecutorcommand-line option and the correspondingnet.serviceExecutorconfiguration option. - Starting in version 4.4:
- MongoDB removes the
--noIndexBuildRetrycommand-line option and the correspondingstorage.indexBuildRetryoption. - Starting in version 4.2:
-
MongoDB removes the deprecated MMAPv1 storage engine and the MMAPv1-specific configuration options:
Removed Configuration File Setting Removed Command-line Option storage.mmapv1.journal.commitIntervalMsstorage.mmapv1.journal.debugFlagsmongod --journalOptionsstorage.mmapv1.nsSizemongod --nssizestorage.mmapv1.preallocDataFilesmongod --nopreallocstorage.mmapv1.quota.enforcedmongod --quotastorage.mmapv1.quota.maxFilesPerDBmongod --quotaFilesstorage.mmapv1.smallFilesmongod --smallfilesstorage.repairPathmongod --repairpathreplication.secondaryIndexPrefetchmongod --replIndexPrefetchFor earlier versions of MongoDB, refer to the corresponding version of the manual. For example: