Parameter | Restart Required | Default Value | Acceptable Values | Supported Version | Supported Instance Type | Applicable Scope | Description |
operation.profiling.slowOpThresholdMs | No | 100 | [0-65536] | 4.0, 4.2, 4.4 | Replica set instance, sharded cluster instance | mongod, mongos | This parameter is used to set the slow query judgment time in ms. |
operationProfiling.mode | No | off | [off | slowOp | all] | 4.0, 4.2, 4.4 | Replica set instance, sharded cluster instance | mongod | This parameter is used to set the operational performance analysis mode for the database. By setting different modes, the performance data of database operations can be recorded for performance optimization and troubleshooting. This parameter has the following optional values: off: Disable operational performance analysis. slowOp: Record slow operations, that is, operations with execution time exceeding the threshold. The default threshold is 100 ms. all: Records performance data for all operations. |
setParameter.cursorTimeoutMillis | No | 600000 | [1-2147483647] | 3.2, 3.6, 4.0, 4.2, 4.4 | Replica set instance, sharded cluster instance | 3.2 and 3.6: mongod; 4.0, 4.2, and 4.4: mongod, mongos | This parameter is used to set the maximum idle time of the cursor, that is, when the cursor is not used within a certain period of time, it will be automatically closed to release related resources. By default, the value of this parameter is 10 minutes. If you need to extend or shorten the timeout period of the cursor, you can do so by modifying the value of this parameter. It should be noted that if this parameter is set to 0, it means that the cursor timeout mechanism is disabled, and the cursor will remain open until the client actively closes it. |
setParameter.intenalQueryExecMaxBlockingSortBytes | No | 33554432 | [33554432-268435456] | 4.0, 4.2, 4.4 | Replica set instance, sharded cluster instance | mongod, mongos | This parameter controls the maximum memory that MongoDB can use when performing sort operations. When MongoDB executes a query that requires sorting, it may need to sort the result set in memory. If the size of the result set exceeds the set value, MongoDB will use disk for sorting operations, which may compromise performance. Unit: Byte. |
setParameter.maxTransactionLockRequestTimeoutMillis | No | 5 | [0-60] | 4.0, 4.2, 4.4 | Replica set instance, sharded cluster instance | mongod | This parameter controls the maximum timeout period for MongoDB transactions waiting to acquire locks. When a transaction needs to acquire a lock, if the lock is already held by other transactions, then the transaction will wait for a period of time and try to acquire the lock. If the waiting time exceeds the value set by this parameter, the transaction will report a timeout exception. Unit: ms. |
setParameter.transactionLifetimeLimitSeconds | No | 60 | [5-300] | 4.0, 4.2, 4.4 | Replica set instance, sharded cluster instance | mongod | This parameter is used to set the maximum lifetime of a single transaction in seconds. When a transaction starts executing, MongoDB will assign a unique transaction ID to the transaction and record the start time of the transaction. If the transaction is not completed within the set time, MongoDB will automatically roll back the transaction and release related resources. |
setParameter.failIndexKeyTooLong | No | true | [true | false] | 3.2, 3.6, 4.0 | Replica set instance, sharded cluster instance | mongod | This parameter is used to set whether to limit the length of the index key. If this parameter is set to true, when MongoDB creates an index, if the length of the index key exceeds the maximum limit supported by MongoDB, MongoDB will report an error and refuse to create the index. |
balance.window | No | NULL | [00:00 | 23:00] | 4.0, 4.2, 4.4 | Sharded cluster instance | mongos | The MongoDB cluster balancing operation is used to distribute the data in the cluster to each node as evenly as possible to improve the performance and availability of the cluster. This parameter specifies how long MongoDB performs a balancing operation on the cluster to ensure that the data is evenly distributed among the nodes. |
openBalance.window | No | false | [true | false] | 4.0, 4.2, 4.4 | Sharded cluster instance | mongos | This parameter is used to enable or disable the balance window. |
Was this page helpful?