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

"metadata overhead warning" alert doesn't seem to be calculated correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.0.1
    • 2.0
    • ns_server
    • Security Level: Public
    • None

    Description

      "metadata overhead warning" alert doesn't seem to be calculated correctly

      The calculation for metadata overhead warning is done with (ep_overhead/ep_max_data_size) * 100
      (Ref - https://github.com/couchbase/ns_server/blob/master/src/menelaus_web_alerts_srv.erl#L274)

      As per documentation(stats.org):
      ep_overhead - Extra memory used by transient data like persistence queues, replication queues, checkpoints, etc
      ep_max_data_size - Max amount of data allowed in memory

      So ep_overhead doesn't seem to be the right stat to use here as we want to calculate Metadata overhead.

      So on a node with most of the data in RAM being metadata e.g

      bash> ./cbstats 10.3.3.95:11210 all | grep mem
      ep_diskqueue_memory: 0
      ep_mem_high_wat: 805306368
      ep_mem_low_wat: 644245094
      ep_mem_tracker_enabled: true
      ep_mutation_mem_threshold: 0
      ep_warmup_min_memory_threshold: 100
      mem_used: 949808672
      vb_active_ht_memory: 25407488
      vb_active_itm_memory: 346355534
      vb_active_meta_data_memory: 334585930
      vb_active_perc_mem_resident: 0
      vb_active_queue_memory: 0
      vb_pending_ht_memory: 0
      vb_pending_itm_memory: 0
      vb_pending_meta_data_memory: 0
      vb_pending_perc_mem_resident: 0
      vb_pending_queue_memory: 0
      vb_replica_ht_memory: 25407488
      vb_replica_itm_memory: 348684429
      vb_replica_meta_data_memory: 336858898
      vb_replica_perc_mem_resident: 0
      vb_replica_queue_memory: 0

      The Metadata overhead warning is not generated. The stats used in calculation are:

      bash> ./cbstats 10.3.3.95:11210 all | grep ep_overhead
      ep_overhead: 52325504
      bash> ./cbstats 10.3.3.95:11210 all | grep ep_max_data_size
      ep_max_data_size: 1073741824

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            deepkaran.salooja Deepkaran Salooja
            deepkaran.salooja Deepkaran Salooja
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty