I've using MongoDB 2.0 storing my daily statistic data.
The statistic collection updates very often and the data inside have many fragments.
I don't have 2x free space on the same host, so I decided to just run compact command on the statistic collection.
1st time:
Collection size: about 25GB
Free space left: about 4GB
Result: Failed. MongoDB alive but keep saying out of disk space in server log file, and only hundreds of GB free space left after compact runs.
2nd time:
Collection size: about 25GB
Free space left: about 8GB
Result: Failed. This time MongoDB server crashed. 1.7GB free space left after compact runs.
So, could anyone tell me, how many free space should I reserve for compacting a 25GB data collection in MongoDB 2.0?