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

[Stats] The 'usedMem' attribute exposed by the basic stats endpoint is always 0.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.0.0
    • Cheshire-Cat
    • couchbase-bucket
    • Enterprise Edition 7.0.0 build 3874 ‧ IPv4
    • Triaged
    • 1
    • Unknown
    • KV-Engine Sprint 2020-Dec

    Description

      Description:

      When querying the basic stats endpoint 'http://10.112.210.101:8091/pools/default/buckets?basic_stats=true&skipMap=true', the 'usedMem' attribute is always 0.

      Consequently, this causes the RAM usage is to be displayed as 0B for a bucket on the UI.

      Steps to reproduce:

      Initial state: A 3 node cluster with all services apart from analytics.

      1. Insert a 1000 documents into 'default.scope0.collection0'.

      What happens:

      Observe that the RAM usage displayed in the UI is 0B (note the screenshot will not align with logs as it was taken at a different moment in time).

       

      Observe that querying the basic_stats indicates that the 'memUsed' attribute is 0.

      (testrunner_venv) asadzaidi@EM224 cbbs % curl -su Administrator:password "http://10.112.210.101:8091/pools/default/buckets?basic_stats=true&skipMap=true" | jq '.[0]'.basicStats
      {
        "storageTotals": {
          "ram": {
            "total": 8736903168,
            "quotaTotal": 2264924160,
            "quotaUsed": 2264924160,
            "used": 5638823936,
            "usedByData": 0,
            "quotaUsedPerNode": 754974720,
            "quotaTotalPerNode": 754974720
          },
          "hdd": {
            "total": 59485716480,
            "quotaTotal": 59485716480,
            "used": 7931428862,
            "usedByData": 31536440,
            "free": 51157716174
          }
        },
        "quotaPercentUsed": 0,
        "opsPerSec": 0,
        "diskFetches": 0,
        "itemCount": 1000,
        "diskUsed": 31536440,
        "dataUsed": 2219094,
        "memUsed": 0,
        "vbActiveNumNonResident": 0
      }
      

       

      What I expected to see:

      I expected the RAM usage to be non-zero.

       

       

      Attachments

        1. Screenshot 2020-12-04 at 13.32.37.png
          17 kB
          Asad Zaidi

        Issue Links

          For Gerrit Dashboard: MB-43101
          # Subject Branch Project Status CR V

          Activity

            People

              asad.zaidi Asad Zaidi (Inactive)
              asad.zaidi Asad Zaidi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty