Anybody knows why local db grows so much over 3 month?apn:PRIMARY> show dbs
admin (empty)
iphones 0.203125GB
local 2.0146484375GB
todos 0.203125GB
Do I need to do anything about it?
Hi,
MongoDB applies database operations on the primary and then records the operations on the primary’s oplog. The secondary members then replicate this log and apply the operations to themselves in an asynchronous process.
Since the oplog is a capped collection, disk space will be preallocated on creation and does not shrink or grow. The default size of the oplog on 64-bit linux is 5% of free disk space. The oplog default is smaller on systems that are typically used for development (OS X, 32-bit). The documentation link above includes the full details.
If you want to see some information on the oplog size in the shell, run db.printReplicationInfo().
Cheers,
Stephen