Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 863 Bytes

cluster_info.md

File metadata and controls

31 lines (20 loc) · 863 Bytes

Cluster Info and Stats

Keyhole with --allinfo flag collects cluster and storage information:

  • Sharded cluster
  • Replica set
  • Standalone

Usages

keyhole --allinfo [--redact] <connection_string>

Cluster Information Collection

With --allinfo, it collects cluster stats and output to a gzipped BSON file. You can use Maobi to generate a report. For example:

keyhole --allinfo mongodb://...

For a sharded cluster, Keyhole collects chunks information to create Shard Distribution information. Note that, with thousands of chunks, collecting chunk sizes is a time consuming process.

Redaction

To avoid leaking PII and PHI information, you can redact the sample document collected by Keyhole. For example:

keyhole --allinfo -redact mongodb://...