Hacker News new | comments | show | ask | jobs | submit login

This is a daily issue for me - having to resync replicas that run out of disk space because Mongo has no compacting strategy.

Resyncing will drop disk usage from 200GB to 50GB(!). So much wasted space.

If you're resyncing that frequently, you should probably be used TTL indexes, the usePowerOf2Sizes column flag directly, or potentially capped collections.


The data in question is date referenced events - they can't be deleted because I need the data for analytics. It grows forever.

Why on earth is a resync necessary then?

Because the machines run out of disk space. A resync does a compress.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact