A large number of log files affects the shell startup time (the shell checks which files can be deleted according with the 30 days retention policy, so it has to go through all the files). This is especially problematic when log files are loaded from a network filesystem.
We should enhance the log retention behavior so in addition to deleting log files that are older than 30 days, we also cap the number of log files we store. Not sure what a good number is (100?) and if we should consider making this number configurable with a default that we think makes sense.
Created with Jira Integration+ for massimiliano.marcon (massimiliano.marcon@mongodb.com)
- is duplicated by
-
MONGOSH-1448 Limit # of log files in addition to age
- Closed