36.13 MongoDB Database Log File Grows Too Large in Size

MongoDB database writes logs to a single log file and the size of the log file grows infinitely. This might take up memory and cause performance issues. MongoDB database now writes logs to a number of rotated files instead of writing to a single log file. However, these rotated log files might also grow unbound in size. To prevent this, Sentinel retains only 10 latest log files by default.

You can modify this configuration by performing the following steps:

  1. Log in to the Sentinel server as the novell user.

  2. Open the /etc/opt/novell/sentinel/config/configuration.properties file.

  3. Set the desired value for the sentinel.mongodb.max.logfiles configuration property. For example, if you want to configure Sentinel to retain 50 latest MongoDB database log files, set the property as follows:

    sentinel.mongodb.max.logfiles=50

  4. Save the modified configuration.properties file.

  5. Restart Sentinel.