Are there any mechanisms to limit the size of a single database on MongoDB 2.6? I found some options like
nssize but am unsure how to use them.
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
Ok, it was simple :)
I wanted to limit each database to 256MB of space per student. In order to achieve that, I enabled
This however doesn't stop them from creating another database with the same user. Any help on this?
Sounds like something for capped collections. Doesn't limit the database itself but does limit the collections?
I have the same issue. Mongo does not respect quota. I haven't found the answer, but I found SERVER-5136 . According to this, it is recorded issue but sadly resolution is still not planned.