Simple bash script for a quick overview of the topology of a sharded MongoDB cluster
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
mongo_cluster_topology.sh

README.md

mongo-cluster-topology

Simple bash script for a quick overview of the topology of a sharded MongoDB cluster

It will give you:

  • The list and status of your mongos
  • The list and status of your config server
  • The list and status of every replica set members present in your cluster (including secondary members and arbiters), plus:
    • The date of the last role change between primary and secondary
    • The apply lag between primary and all secondary members
    • The oplog window
  • The balancer status

Usage

See MongoDB sharded cluster topology on My DBA World