Why is MongoDB preallocating so many data files at once? -
our mongodb sitting @ 1.2tb. have 2tb total disk space on server, , within 1 evening created few 2gb data files, using disk space , crashing process.
when looked @ data files, noticed preallocates few of these files every couple of days, @ 1 point generating more 140gb of files.
how can control this?
if want control size of generated data files have following options available when starting mongod
:
--smallfiles
decrease initial data files size , limit maximum of 512mb [--smallfiles manual reference]--quota
,--quotafiles
adjust maximum number of data files allowed per mongodb database [--quota manual reference]
Comments
Post a Comment