Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-1135

Mongostat - Add (optional?) field seconds-behind-master

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • mongostat
    • None

    Description

      We have a sharded cluster with 1 primary and 1 replica (2 total). I like keeping track of Mongo running a window with mongostat going. I'd like to know how many seconds behind the primary each of the shards is.

      This data is already available in some statistics gathering mode, but it would be nice to be able to have this as a column in mongostat.

      I know about how large my oplog is (15 hours) so this could be a percent of oplog size if that's more convenient to implement.

      If you are reticent to change existing mongostat output, perhaps there could be a flag to show this extended data.

      So, to reiterate, add a column (0 on primary boxes by definition) showing either:

      • Seconds behind master, or
      • Percent of oplog behind master, or
      • both columns in case someone's really hyper-OCD about this.

      Thanks your your attention.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kevin.rice@searshc.com Kevin Rice
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: