Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-45118

Eventing's numeric statistics in UI not promptly updating

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 7.0.0
    • Cheshire-Cat
    • UI
    • Untriaged
    • 1
    • Unknown

    Description

      Eventing's numeric statistics in UI not promptly updating

      In MH the screen used to refresh "instantly" for the success, timeout, and failure counts in the UI for 6.5.1 where the stats were updating every 2000 ms. (2 seconds).

      Now the statistics for the Eventing progress ( success, timeout, and failure counts) seem to take 10 seconds to change seems like something changed in the source of the stats (ns_server?)

      The issue is for a developer they now has to wait an additional 10 seconds to notice that his Eventing function is failing.

      Some stats fetching examples (fuction name 'aaaa' bucket 'travel-sample'

      An example statistic for Eventing numeric stats in Eventing are fetched (via a direct REST API call) the call these are delayed and only reported every 10 sec. (used in the UI)

      curl -s -u $CB_USERNAME:$CB_PASSWORD -X POST http://localhost:8091/_uistats \
          -d '[{ "bucket": "travel-sample", "step": 1, "stats": [ "eventing/aaaa/processed_count" ], "startTS": -2000, "aggregate": true }]' | jq .
      

      An example statistic for Eventing charts aggregated across all eventing nodes (via a direct REST API call) these are delayed about the same as above (used in the UI)

      cat granularity_10sec.json
      [{"step":10,"start":-120,"metric":[{"label":"name","value":"eventing_processed_count"}],"aggregationFunction":"sum","alignTimestamps":true}]
       
      curl -s -u $CB_USERNAME:$CB_PASSWORD -X POST \
          -d @./granularity_10sec.json 'http://localhost:8091/pools/default/stats/range' | jq '.[].data'  

       

      An example (from individual?) eventing nodes (via a direct REST API call) and seem to be very current and frequently updated (not used in the UI)

      curl -s -u $CB_USERNAME:$CB_PASSWORD -X GET 'http://localhost:8096/api/v1/stats' | jq . | grep num_processed_ 
      

       

      Attachments

        1. 6.6_works.out
          1 kB
          Jon Strabala
        2. 7.0beta_slower.out
          1 kB
          Jon Strabala
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vinayaka.kamath Vinayaka Kamath (Inactive)
            jon.strabala Jon Strabala
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty