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

mongotop does not report activity on secondary

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.8.0-rc2
    • Fix Version/s: 2.8.0-rc3
    • Component/s: mongotop
    • Labels:
      None

      Description

      To reproduce, run mongotop --host replset/localhost:27017,localhost:27018 - where localhost:27017 is the primary of the replset replica set while localhost:27018 is a secondary.

      Issue: mongotop will only reports activity on the primary even when operations are occurring on the secondary.

      Proposal 1: By default, mongotop should allow secondary reads (for the top/server status queries) only if the host is supplied using the replica set format. Furthermore, only one host should be accepted if the format is used - otherwise, it's ambiguous which host should be reported on.

      Proposal 2: Same as proposal 1 but without the latter constraint on the number of hosts accepted - mongotop would report on all hosts supplied, or all hosts in the replica set (similar to mongostat's --discover).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mpobrien Michael O'Brien
              Reporter:
              adinoyi.omuya Adinoyi Omuya
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: