Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-14157

rs.status() shell helper reports repllag

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Needs Further Definition
    • Component/s: Replication
    • Labels:
      None

      Description

      The result returned by replSetGetStatus contains enough information to compute a "repllag" value for each member with an optime. Having the server actually perform this computation would avoid the need for it to be done (potentially poorly) client-side.

      Presumably the most sensible definition of repllag would be latest_optime - optime, where latest_optime is the largest optime.getTime() value of any replset member (that has an optime), but anything that is self-consistent would be fine.

        Attachments

          Activity

            People

            Assignee:
            backlog-server-repl Backlog - Replication Team
            Reporter:
            kevin.pulo Kevin Pulo
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated: