Configuration File Settings and Command-Line Options Mapping

The following table maps the configuration file settings and the related mongodand mongos command-line options.

Configuration File Settingmongod and mongos Command-Line Options
auditLog.destinationmongod —auditDestinationmongos —auditDestination
auditLog.filtermongod —auditFiltermongos —auditFilter
auditLog.formatmongod —auditFormatmongos —auditFormat
auditLog.pathmongod —auditPathmongos —auditPath
cloud.monitoring.free.statemongod —enableFreeMonitoring
cloud.monitoring.free.tagsmongod —freeMonitoringTag
net.bindIpmongod —bind_ipmongos —bind_ip
net.bindIpAllmongod —bind_ip_allmongos —bind_ip_all
net.compression.compressorsmongod —networkMessageCompressorsmongos —networkMessageCompressors
net.ipv6mongod —ipv6mongos —ipv6
net.maxIncomingConnectionsmongod —maxConnsmongos —maxConns
net.portmongod —portmongos —port
net.serviceExecutormongod —serviceExecutormongos —serviceExecutor
net.tls.allowConnectionsWithoutCertificatesmongod —tlsAllowConnectionsWithoutCertificatesmongos —tlsAllowConnectionsWithoutCertificates
net.tls.allowInvalidCertificatesmongod —tlsAllowInvalidCertificatesmongos —tlsAllowInvalidCertificates
net.tls.allowInvalidHostnamesmongod —tlsAllowInvalidHostnamesmongos —tlsAllowInvalidHostnames
net.tls.CAFilemongod —tlsCAFilemongos —tlsCAFile
net.tls.clusterCAFilemongod —tlsClusterCAFilemongos —tlsClusterCAFile
net.tls.certificateSelectormongod —tlsCertificateSelectormongos —tlsCertificateSelector
net.tls.clusterCertificateSelectormongod —tlsClusterCertificateSelectormongos —tlsClusterCertificateSelector
net.tls.clusterFilemongod —tlsClusterFilemongos —tlsClusterFile
net.tls.clusterPasswordmongod —tlsClusterPasswordmongos —tlsClusterPassword
net.tls.CRLFilemongod —tlsCRLFilemongos —tlsCRLFile
net.tls.disabledProtocolsmongod —tlsDisabledProtocolsmongos —tlsDisabledProtocols
net.tls.FIPSModemongod —tlsFIPSModemongos —tlsFIPSMode
net.tls.modemongod —tlsModemongos —tlsMode
net.tls.certificateKeyFilemongod —tlsCertificateKeyFilemongos —tlsCertificateKeyFile
net.tls.certificateKeyFilePasswordmongod —tlsCertificateKeyFilePasswordmongos —tlsCertificateKeyFilePassword
net.ssl.sslOnNormalPortsmongod —sslOnNormalPortsmongos —sslOnNormalPorts
net.unixDomainSocket.enabledmongod —nounixsocketmongos —nounixsocket
net.unixDomainSocket.filePermissionsmongod —filePermissionsmongos —filePermissions
net.unixDomainSocket.pathPrefixmongod —unixSocketPrefixmongos —unixSocketPrefix
net.wireObjectCheck
operationProfiling.modemongod —profile
operationProfiling.slowOpSampleRatemongod —slowOpSampleRatemongos —slowOpSampleRate
operationProfiling.slowOpThresholdMsmongod —slowmsmongos —slowms
processManagement.forkmongod —forkmongos —fork
processManagement.pidFilePathmongod —pidfilepathmongos —pidfilepath
processManagement.timeZoneInfomongod —timeZoneInfomongos —timeZoneInfo
processManagement.windowsService.descriptionmongod.exe —serviceDescriptionmongos.exe —serviceDescription
processManagement.windowsService.displayNamemongod.exe —serviceDisplayNamemongos.exe —serviceDisplayName
processManagement.windowsService.serviceNamemongod.exe —serviceNamemongos.exe —serviceName
processManagement.windowsService.servicePasswordmongod.exe —servicePasswordmongos.exe —servicePassword
processManagement.windowsService.serviceUsermongod.exe —serviceUsermongos.exe —serviceUser
replication.enableMajorityReadConcernmongod —enableMajorityReadConcern
replication.localPingThresholdMsmongos —localThreshold
replication.oplogSizeMBmongod —oplogSize
replication.replSetNamemongod —replSet
security.authorizationmongod —authmongod —noauth
security.clusterAuthModemongod —clusterAuthModemongos —clusterAuthMode
security.enableEncryptionmongod —enableEncryption
security.encryptionCipherModemongod —encryptionCipherMode
security.encryptionKeyFilemongod —encryptionKeyFile
security.javascriptEnabledmongod —noscripting
security.keyFilemongod —keyFilemongos —keyFile
security.kmip.clientCertificateFilemongod —kmipClientCertificateFile
security.kmip.clientCertificatePasswordmongod —kmipClientCertificatePassword
security.kmip.keyIdentifiermongod —kmipKeyIdentifier
security.kmip.portmongod —kmipPort
security.kmip.rotateMasterKeymongod —kmipRotateMasterKey
security.kmip.serverCAFilemongod —kmipServerCAFile
security.kmip.serverNamemongod —kmipServerName
security.kmip.clientCertificateSelectormongod —kmipClientCertificateSelector
security.ldap.authz.queryTemplatemongod —ldapAuthzQueryTemplate
security.ldap.bind.methodmongod —ldapBindMethodmongos —ldapBindMethod
security.ldap.bind.queryPasswordmongod —ldapQueryPasswordmongos —ldapQueryPassword
security.ldap.bind.queryUsermongod —ldapQueryUsermongos —ldapQueryUser
security.ldap.bind.saslMechanismsmongod —ldapBindSASLMechanismsmongos —ldapBindSASLMechanisms
security.ldap.bind.useOSDefaultsmongod —ldapBindWithOSDefaultsmongos —ldapBindWithOSDefaults
security.ldap.serversmongod —ldapServersmongos —ldapServers
security.ldap.timeoutMSmongod —ldapTimeoutMSmongos —ldapTimeoutMS
security.ldap.transportSecuritymongod —ldapTransportSecuritymongos —ldapTransportSecurity
security.ldap.userToDNMappingmongod —ldapUserToDNMappingmongos —ldapUserToDNMapping
security.redactClientLogDatamongod —redactClientLogDatamongos —redactClientLogData
security.sasl.hostNamemongod —setParameter saslHostName=…mongos —setParameter saslHostName=…
security.sasl.saslauthdSocketPathmongod —setParameter saslauthdPath=…mongos —setParameter saslauthdPath=…
security.sasl.serviceNamemongod —setParameter saslServiceName=…mongos —setParameter saslServiceName=…
security.transitionToAuthmongod —transitionToAuthmongos —transitionToAuth
setParametermongod —setParametermongos —setParameter
sharding.archiveMovedChunksmongod —moveParanoiamongod —noMoveParanoia
sharding.clusterRolemongod —shardsvrmongod —configsvr
sharding.configDBmongos —configdb
snmp.disabledmongod —snmp-disabled
snmp.mastermongod —snmp-master
snmp.subagentmongod —snmp-subagent
storage.dbPathmongod —dbpath
storage.directoryPerDBmongod —directoryperdb
storage.enginemongod —storageEngine
storage.indexBuildRetrymongod —noIndexBuildRetry
storage.inMemory.engineConfig.inMemorySizeGBmongod —inMemorySizeGB
storage.journal.commitIntervalMsmongod —journalCommitInterval
storage.journal.enabledmongod —journalmongod —nojournal
storage.syncPeriodSecsmongod —syncdelay
storage.wiredTiger.collectionConfig.blockCompressormongod —wiredTigerCollectionBlockCompressor
storage.wiredTiger.engineConfig.cacheSizeGBmongod —wiredTigerCacheSizeGB
storage.wiredTiger.engineConfig.directoryForIndexesmongod —wiredTigerDirectoryForIndexes
storage.wiredTiger.engineConfig.journalCompressormongod —wiredTigerJournalCompressor
storage.wiredTiger.indexConfig.prefixCompressionmongod —wiredTigerIndexPrefixCompression
systemLog.component.accessControl.verbositymongod —setParameter "logComponentVerbosity={accessControl: … }"mongos —setParameter "logComponentVerbosity={accessControl: … }"
systemLog.component.command.verbositymongod —setParameter "logComponentVerbosity={command: … }"mongos —setParameter "logComponentVerbosity={command: … }"
systemLog.component.control.verbositymongod —setParameter "logComponentVerbosity={control: … }"mongos —setParameter "logComponentVerbosity={control: … }"
systemLog.component.ftdc.verbositymongod —setParameter "logComponentVerbosity={ftdc: … }"mongos —setParameter "logComponentVerbosity={ftdc: … }"
systemLog.component.geo.verbositymongod —setParameter "logComponentVerbosity={geo: … }"mongos —setParameter "logComponentVerbosity={geo: … }"
systemLog.component.index.verbositymongod —setParameter "logComponentVerbosity={index: … }"mongos —setParameter "logComponentVerbosity={index: … }"
systemLog.component.network.verbositymongod —setParameter "logComponentVerbosity={network: … }"mongos —setParameter "logComponentVerbosity={network: … }"
systemLog.component.query.verbositymongod —setParameter "logComponentVerbosity={query: … }"mongos —setParameter "logComponentVerbosity={query: … }"
systemLog.component.replication.heartbeats.verbositymongod —setParameter "logComponentVerbosity={replication: {heartbeats: … }}"mongos —setParameter "logComponentVerbosity={replication: {heartbeats: … }}"
systemLog.component.replication.rollback.verbositymongod —setParameter "logComponentVerbosity={replication: {rollback: … }}"mongos —setParameter "logComponentVerbosity={replication: {rollback: … }}"
systemLog.component.replication.verbositymongod —setParameter "logComponentVerbosity={replication: … }"mongos —setParameter "logComponentVerbosity={replication: … }"
systemLog.component.sharding.verbositymongod —setParameter "logComponentVerbosity={sharding: … }"mongos —setParameter "logComponentVerbosity={sharding: … }"
systemLog.component.storage.journal.verbositymongod —setParameter "logComponentVerbosity={storage: {journal: … }}"mongos —setParameter "logComponentVerbosity={storage: {journal: … }}"
systemLog.component.storage.recovery.verbositymongod —setParameter "logComponentVerbosity={storage: {recovery: … }}"mongos —setParameter "logComponentVerbosity={storage: {recovery: … }}"
systemLog.component.storage.verbositymongod —setParameter "logComponentVerbosity={storage: … }"mongos —setParameter "logComponentVerbosity={storage: … }"
systemLog.component.write.verbositymongod —setParameter "logComponentVerbosity={write: … }"mongos —setParameter "logComponentVerbosity={write: … }"
systemLog.destinationmongod —logpathmongos —logpathmongod —syslogmongos —syslog
systemLog.logAppendmongod —logappendmongos —logappend
systemLog.logRotatemongod —logRotate
systemLog.pathmongod —logpathmongos —logpath
systemLog.quietmongod —quiet
systemLog.syslogFacilitymongod —syslogFacilitymongos —syslogFacility
systemLog.timeStampFormatmongod —timeStampFormatmongos —timeStampFormat
systemLog.traceAllExceptionsmongod —traceExceptions
systemLog.verbositymongod —verbosemongos —verbose