MongoCounters

class MongoCounters(admin: MongoClient, database: MongoDatabase)

MongoDB's counters and settings around a raw run's windows, read with admin on database.

Constructors

Link copied to clipboard
constructor(admin: MongoClient, database: MongoDatabase)

Functions

Link copied to clipboard

Each of Wow's and the clone's collections now, for a calibration's side-by-side layout (a raw run's store.collections): its documents, their mean size, its storage and its indexes' bytes, and each index's key, size and uniqueness.

Link copied to clipboard

MongoDB's cumulative counters: the journal's syncs, their time, writes and bytes; the oplog's bytes; the operations; and the snapshot collection's write latency (latencyStats, microseconds) and its writes.

Link copied to clipboard
fun ratios(growth: Map<String, Double>): Map<String, Double>

The mean latency of the snapshot collection's writes over a step, microseconds, from the counters' growth.

Link copied to clipboard

The server's version and the settings a ceiling is quoted with: its storage engine, journal and write concern.

Link copied to clipboard

Each of Wow's and the clone's collections' operations by kind (the top command): their counts (<namespace> <kind>), where a calibration's gap is, and mongod's time on them (<namespace> <kind> micros), where its CPU goes.