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

Standardised column contents for mongostat in chained replication

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • Legacy C++ Implementation
    • None
    • mongostat
    • None

    Description

      In a chained replication scenario, a node will update it's own local.slaves collection. This is indicated in the output of mongostat as a local update, while other update operations are described as from replication. This is shown with the usual shorthand - two numbers separated by a pipe character. The issue is, only those rows in the output that have a local update are displayed this way. All other rows are shown as a single number:

      *20   2771      1     *0      17    38|0       0   656g  1313g   164g      0  test:2.6%          0       1|0     2|0   952k   913k   667 testRS  SEC   03:48:33
      *30   2830    1|1     *0      23    55|0       1   656g  1313g   164g      0  test:0.2%          0       0|0     0|0   973k   946k   667 testRS  SEC   03:48:34
      *16   3050      1     *0      13    46|0       0   656g  1313g   164g      0  test:2.6%          0       0|0     3|0     1m     1m   667 testRS  SEC   03:48:35
      *22   2996      1     *0      18    56|0       0   656g  1313g   164g      0  test:0.2%          0       0|0     2|0     1m     1m   667 testRS  SEC   03:48:36
      *24   3141      1     *0      20    41|0       0   656g  1313g   164g      0  test:3.0%          0       0|0     2|0     1m     1m   667 testRS  SEC   03:48:37
       *8   2950      1     *0       9    33|0       0   656g  1313g   164g      0  test:0.2%          0       0|0     0|0     1m     1m   667 testRS  SEC   03:48:38

      This makes the output inconsistent and hard to read.

      Elsewhere in the output, the pipe delimiter is used on every line (for example, in the command column).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              andre.defrere@mongodb.com Andre de Frere
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: