Where parameter scale number is Optional. The method db.stats(scale) returns statistics that reflect the use state of a single database. Run validate on each collection on the mongod to to restore the correct statistics after an unclean shutdown.įor example the following example converts the returned values to kilobytes: db.stats(1024) ![]() However, mongod instances running with non-default -syncdelay settings may have more or less frequent checkpoints. ![]() Checkpoints usually occur every 60 seconds. The amount of drift depends on the number of insert, update, or delete operations performed between the last checkpoint and the unclean shutdown. After an unclean shutdown of a mongod using the Wired Tiger storage engine, count and size statistics reported by db.stats may be inaccurate.
0 Comments
Leave a Reply. |