Limit mongo collection by disk space?

Is there some way we can limit our mongo collection by disk space in the version ( v3.0.10. Upgrading versions is not an option. ) of mongo we’re using?

Mongo goes offline when we run out of disk space which triggers our health checks to fail.

We give our mongo collection an expiration time and logs records are auto deleted, but when there’s very high activity then the time window doesn’t solve the problem of disk space usage.

Any help here please ?

Hi @ravis_shanker

The only way to restrict the size of collections, size of collection or number of documents, is to used capped collections