My MongoDB version is 5.0.18.
mongod.log is under /var/log/mongodb and data is located in /var/lib/mongo.
They are mounted on totally different partitions.
Several days ago, slow queries flooded the mongod.log and exhausted the disk space.
Then, as the title, mongod crashed.
It looks like by design, but
Is there anyway to prevent mongod from crash like this?
mongod crashing is a disaster in anyway, but losing mongod.log doesn’t hurt so much.