My server is running mongoDB, for web application that requires a lot of databases (around 1000-2000 databases) which can't be merged.
Right now, each databases takes pre-allocation size of 64 MB. According to MongoDB's documentation, it can reach up to 2 GB.
My question is as follows:
Can I suppress this behavior? Because my server's storage space can't take 2000 databases, if each of them have 2 GB in size. Can I somehow tell MongoDB to reduce the allocated size for each database for a set number (for example, can I force MongoDB to only allocate 128 MB for each database?
I plan not to use
--noprealloc
, because according to the MongoDB's documentation it will severely reduce the performance of the server. What is the downside of using--noprealloc
for a production server?Is there any other solution to my problem?