- Reference >
- Advanced Options for MongoDB Deployments
Advanced Options for MongoDB Deployments¶
On this page
Overview¶
The following mongod and mongos configuration options are available through the Ops Manager Advanced Options field when you deploy MongoDB. You select advanced options when deploying replica sets, sharded clusters, and standalone instances.
Advanced Options¶
The Ops Manager Advanced Options map to the MongoDB configuration options and parameters described here.
auditLog¶
- auditLogDestination:
auditLog.destination
- auditLogFormat:
auditLog.format
- auditLogPath:
auditLog.path
- auditLogFilter:
auditLog.filter
basisTech¶
- rootDirectory:
basisTech.rootDirectory
net¶
bind_ip:
net.bindIp
Warning
If you set the
net.bind_ip
, you must include127.0.0.1
as well.Example
198.51.100.0,127.0.0.1
maxConns:
net.maxIncomingConnections
net.http¶
Changed in version MongoDB: 3.6
MongoDB 3.6 removes the deprecated net.http
settings. You cannot
set net.http
settings on MongoDB 3.6+ deployments.
- nohttpinterface:
net.http.enabled
- jsonp:
net.http.JSONPEnabled
- rest:
net.http.RESTInterfaceEnabled
net.ssl¶
- sslOnNormalPorts:
net.ssl.sslOnNormalPorts
- sslPEMKeyFile:
net.ssl.PEMKeyFile
- sslPEMKeyPassword:
net.ssl.PEMKeyPassword
- sslMode:
net.ssl.mode
operationProfiling¶
- slowms:
operationProfiling.slowOpThresholdMs
- profile:
operationProfiling.mode
processManagement¶
- pidfilepath:
processManagement.pidFilePath
replication¶
- oplogSize:
replication.oplogSizeMB
- enableMajorityReadConcern:
replication.enableMajorityReadConcern
security¶
- clusterAuthMode:
security.clusterAuthMode
- enableEncryption:
security.enableEncryption
- encryptionCipherMode:
security.encryptionCipherMode
- encryptionKeyFile:
security.encryptionKeyFile
- javascriptEnabled:
security.javascriptEnabled
security.kmip¶
- keyIdentifier:
security.kmip.keyIdentifier
- serverName:
security.kmip.serverName
- kmipPort:
security.kmip.port
- clientCertificateFile:
security.kmip.clientCertificateFile
- clientCertificatePassword:
security.kmip.clientCertificatePassword
- serverCAFile:
security.kmip.serverCAFile
setParameter¶
- connPoolMaxConnectionsPerHost: connPoolMaxConnectionsPerHost
- connPoolMaxShardedConnsPerHost: connPoolMaxShardedConnectionsPerHost
- wiredTigerConcurrentReadTransactions: wiredTigerConcurrentReadTransactions
- wiredTigerConcurrentWriteTransactions: wiredTigerConcurrentWriteTransactions
- releaseConnectionsAfterResponse: releaseConnectionsAfterResponse
- newCollectionsUsePowerOf2Sizes: newCollectionsUsePowerOf2Sizes
- enableLocalhostAuthBypass: enableLocalhostAuthBypass
- enableTestCommands: enableTestCommands
- ttlMonitorEnabled: ttlMonitorEnabled
- failIndexKeyTooLong: failIndexKeyTooLong
- logLevel: logLevel
- saslHostName: saslHostName
- saslServiceName: saslServiceName
- [other]: specify a custom option and its value. You cannot use the
other
field to specify an option that is available in the drop-down menu.
sharding¶
- moveParanoia:
sharding.archiveMovedChunks
- noAutoSplit:
sharding.autoSplit
set tofalse
storage¶
syncdelay:
storage.syncPeriodSecs
noprealloc:
storage.mmapv1.preallocDataFiles
smallfiles:
storage.mmapv1.smallFiles
nssize:
storage.mmapv1.nsSize
quota: quota
quotaFiles: quotaFiles
directoryperdb:
storage.directoryPerDB
engine:
storage.engine
New in version 3.4: You can set the engine option to
inMemory
to use an in-memory storage engine per member in your deployment.If a member using an in-memory storage engine fails or is shut down, it loses all of its data. When that member is restarted, it needs to resychronize all of the data from another member. You can use an in-memory storage engine for multiple members of a replica set or shard.
For more information, see In-Memory Storage Engine in the MongoDB manual.
storage.journal¶
- nojournal:
storage.journal.enabled
- journalCommitInterval:
storage.mmapv1.journal.commitIntervalMs
storage.wiredTiger.collectionConfig¶
- blockCompressor:
storage.wiredTiger.collectionConfig.blockCompressor
storage.wiredTiger.engineConfig¶
- cacheSizeGB:
storage.wiredTiger.engineConfig.cacheSizeGB
- checkpointDelaySecs:
storage.syncPeriodSecs
- journalCompressor:
storage.wiredTiger.engineConfig.journalCompressor
- directoryForIndexes:
storage.wiredTiger.engineConfig.directoryForIndexes
- statisticsLogDelaySecs:
storage.wiredTiger.engineConfig.statisticsLogDelaySecs
storage.wiredTiger.indexConfig¶
- prefixCompression:
storage.wiredTiger.indexConfig.prefixCompression
storage.inMemory.engineConfig¶
- prefixCompression:
storage.inMemory.engineConfig.inMemorySizeGB
systemLog¶
- logappend:
systemLog.logAppend
: - quiet:
systemLog.quiet
: - syslog:
systemLog.destination
: - logTimestampFormat:
systemLog.timeStampFormat
- logRotate:
systemLog.logRotate
- verbosity:
systemLog.verbosity