-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Diagnostics, Internal Code
-
None
-
Fully Compatible
-
v4.0, v3.6, v3.4
-
Sharding 2017-12-04, Sharding 2018-01-01, Sharding 2017-12-18
-
(copied to CRM)
setParameter is used to modify a variety of server settings, many of which can have a marked impact on server behaviour and/or performance. Thus, in the context of analysing a logfile, it is vital to be aware of any changes to such parameters.
Since setParameter normally runs very fast, it will only be logged if logLevel is >= 1. It would be much better if the setParameter command was logged at the default log level of 0.
Two likely ways this could be done are either:
- forcing the normal command logging to be performed (for setParameter) irrespective of slowms (probably not so nice to implement):
2015-06-15T13:20:42.990+1000 [conn1423] command admin.$cmd command: setParameter { setParameter: 1.0, parameterName: value, ... } keyUpdates:0 numYields:0 reslen:46 5ms
- or outputting a new log line (probably much easier to implement):
2015-06-15T13:20:42.990+1000 [conn1423] setParameter { parameterName: value, ... }
- is related to
-
SERVER-29291 Periodically record all active configuration settings in the mongod and mongos.
- Closed
-
SERVER-18986 When increasing logLevel above 0, log basic startup info
- Closed
- related to
-
SERVER-8552 setParameter command has confusing behavior when setting multiple parameters.
- Backlog
-
SERVER-5892 setParameter for "logLevel" logged incorrectly
- Closed