I believe the issue may lie in other collections continuing to grow
outside of the collection that we were deleting from. I've done a
bunch of testing locally, and Mongo seems to do a good job at reusing
available space, so I don't believe there's an issue here. We ended up
purging our feed data and starting over just to get things back
online, so I can't send the stats over. One thing I have noticed
though that I can reliably reproduce is as follows:
If mongo runs out of disk space and throws an assertion like this:
Tue Oct 5 13:14:16 [conn3] Caught Assertion in insert , continuing
Tue Oct 5 13:14:16 [conn3] insert test.bar exception 12520 file
allocation failure 16ms
It will not create the next datafile even if you free up disk space.
The only way to get it to continue operating normally is to shut it
down completely and start it back up. This is an issue for large
datasets where it takes the cache a while to warm up. One other issue
with deleting lots of data is that the resident memory usage never
goes down until you restart mongo. I'm not sure if this is intended,
but it seems like it should decrease if I'm deleting gigabytes of
data.