MibMongoDbConfig
Introduction
This configuration is applied to all services that use MongoDB.
Keys
ServerList: list of servers that contains the MongoDB service separeted by ',' (May contains only one item).
Port: port used in the access to MongoDB
Database: MongoDB database name
UserName: MongoDB user name
Password: MongoDB password
SafeMode false
SlaveOk false
ConnectTimeoutMs, int -1
SocketTimeoutMs, int -1
OperationMaxTimeMS, int -1
MaxConnectionIdleTimeMs, int -1
MaxConnectionLifeTimeMs, int -1
MaxConnectionPoolSize, int -1
MinConnectionPoolSize, int -1
ServerSelectionTimeoutMs, int -1
WaitQueueSize, int ⚠️ [deprecated] -1
WaitQueueTimeoutMs, int -1
WaitQueueMultiple, double ⚠️ [deprecated] 0.0
HeartbeatIntervalMs, int -1
HeartbeatTimeoutMs, int -1
CollectionsToBeIgnoredForIndexes, string: list of collections that should not be used when creating an index (the list must be separated by , or ;)
AllowDiskUse, boolean: Pipeline stages have a memory limit of 100 megabytes by default. If required, you can exceed this limit by setting this key to true. See thisDocumentation.
For more information about these settings, see this documentation.
Who uses this configuration?
- MibAnalytics
- MibEditHistoryMicroService
Examples
MIBMONGODBCONFIG_DEFAULT_SERVERLIST=services.mediaibox.com.br
MIBMONGODBCONFIG_DEFAULT_PORT=27017
MIBMONGODBCONFIG_DEFAULT_DATABASE=myDatabase
MIBMONGODBCONFIG_DEFAULT_SAFEMODE=true
MIBMONGODBCONFIG_DEFAULT_ALLOWDISKUSE=true