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

Add metrics on the backlog OpLog entries as seen by the secondaries to mongostat

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: mongostat
    • None

      To more accurately gauge replication lag and the rate that replication lag is increasing, as well as diagnose specific issues on particular secondaries it would be very useful to add a stat to the output of mongostat. This new metric would indicate the size of the back log of OpLog entries as seen by each secondary. This would be the count of op-log records in the range between T(last op-log on the primary) and T(last op-log received by this client). This would give an objective idea of a real replication lag. The way the lag is measured today - T(local)-T(last op-log received), - is an interesting measure which is easy and cheap to obtain but is not sufficient to give a real view of how big the replication lag really is.

            Assignee:
            Unassigned Unassigned
            Reporter:
            andre.defrere@mongodb.com Andre de Frere
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: