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

Storage stats to calculate resident ratio are 0

    XMLWordPrintable

Details

    Description

      Build: 7.1.0-1695

      We use num_rec_allocs, num_rec_frees, num_rec_swapout, num_rec_swapin to calulate average resident ratio like 

      for index in storage_stats:
          total_num_rec_allocs += index["Stats"]["MainStore"]["num_rec_allocs"] + \
              index["Stats"]["BackStore"]["num_rec_allocs"]
          total_num_rec_frees += index["Stats"]["MainStore"]["num_rec_frees"] + \
              index["Stats"]["BackStore"]["num_rec_frees"]
          total_num_rec_swapout += index["Stats"]["MainStore"]["num_rec_swapout"] + \
              index["Stats"]["BackStore"]["num_rec_swapout"]
          total_num_rec_swapin += index["Stats"]["MainStore"]["num_rec_swapin"] + \
              index["Stats"]["BackStore"]["num_rec_swapin"]
       
      total_recs_in_mem = total_num_rec_allocs - total_num_rec_frees
      total_recs_on_disk = total_num_rec_swapout - total_num_rec_swapin
      logger.info("Total Recs in Mem {}".format(total_recs_in_mem))
      logger.info("Total Recs in Disk {}".format(total_recs_on_disk))
      avg_rr = total_recs_in_mem / (total_recs_on_disk + total_recs_in_mem)
      return avg_rr 

      All values are 0. Sample response attached. It was not observed with 7.1.0-1650. 

      Most of the test runs failed due to this

      http://perf.jenkins.couchbase.com/job/hemera/3224/console 

      Attachments

        Issue Links

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

          Activity

            People

              akhil.mundroy Akhil Mundroy
              vikas.chaudhary Vikas Chaudhary
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty