Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <ol> <li>Upgrade to 2.2.2 - 2.2.0 has an idempotency bug in replication and no longer recommended for production.</li> <li>See here for general info <a href="http://docs.mongodb.org/manual/faq/storage/#faq-disk-size" rel="nofollow">http://docs.mongodb.org/manual/faq/storage/#faq-disk-size</a></li> <li>The only way to recover space back from mongodb is to either sync a new node over the network - in which case the documents are copied over the the new file system and stored anew without fragmentation. Or to use the repair command - but for that you need double the disk space that you are using on disk. The data files are copied, defragged and compacted and copied back over the original. The compact command is badly named and only defrags - it doesn't recover disk space back from mongo. </li> <li>Going forward, use usePowerOf2Sizes command (new in 2.2.x) <a href="http://docs.mongodb.org/manual/reference/command/collMod/" rel="nofollow">http://docs.mongodb.org/manual/reference/command/collMod/</a> If you use that command and allocate say an 800 byte document, 1024 bytes will be allocated on disk. If you then delete that doc and insert a new one - say 900 bytes, that doc can fit in the 1024 byte space. Without this option enabled, the 800 byte doc might only have 850 bytes on disk - so when it's deleted and the 900 byte doc inserted, new space has to be allocated. And if that is then deleted you will end up with two free space - 850 bytes and 950 bytes which are never joined (unless compact or repair is used) - so then insert a 1000 byte doc and you need to allocate <em>another</em> chunk of disk. usePowerOf2Sizes helps this situation a lot by using standard bucket sizes. </li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload