MongoDB journal enabled¶
Description¶
This advisor warns if the journal is explicitly disabled with storage.journal.enabled: false on MongoDB versions before 7.0. A mongod that does not set the option is not reported, and MongoDB 7.0 and later are never reported because they always journal.
Disabled journal is dangerous because you could have a serious issue for data durability in case of a failure.
For Production systems, enable journal to ensure that data files are valid/recoverable.
It is always recommended to enable the journal.
MongoDB enables journaling by default. Before 7.0, you can turn it off only by setting storage.journal.enabled: false explicitly, which is the only case this advisor reports. MongoDB 7.0 and later always journal and ignore the option.
For more information, see the Journaling section in the MongoDB documentation.
Resolution¶
To enable journaling:
- Enable journal.
- Edit mongod.conf and set the following parameter:
storage: journal: enabled: true - Roll-restart your
mongod(data bearing) nodes.
Need more support from Percona?¶
Percona experts bring years of experience in tackling tough database performance issues and design challenges.