Docs Menu

Docs HomeMongoDB Manual

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.

Configuration File Setting
mongod and mongos Command-Line Options
auditLog.auditEncryptionKeyIdentifier
Starting in version 5.0:
MongoDB removes the --serviceExecutor command-line option and the corresponding net.serviceExecutor configuration option.
Starting in version 4.4:
MongoDB removes the --noIndexBuildRetry command-line option and the corresponding storage.indexBuildRetry option.
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.commitIntervalMs
storage.mmapv1.journal.debugFlags
mongod --journalOptions
storage.mmapv1.nsSize
mongod --nssize
storage.mmapv1.preallocDataFiles
mongod --noprealloc
storage.mmapv1.quota.enforced
mongod --quota
storage.mmapv1.quota.maxFilesPerDB
mongod --quotaFiles
storage.mmapv1.smallFiles
mongod --smallfiles
storage.repairPath
mongod --repairpath
replication.secondaryIndexPrefetch
mongod --replIndexPrefetch

For earlier versions of MongoDB, refer to the corresponding version of the manual. For example:

  • https://www.mongodb.com/docs/v4.0

  • https://www.mongodb.com/docs/v3.6

  • https://www.mongodb.com/docs/v3.4

←  Convert Command-Line Options to YAMLMongoDB Server Parameters →
Share Feedback
© 2022 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2022 MongoDB, Inc.