Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-24463

Heatmaps:Specific calculation methods for Host Memory Used and Host CPU Wait IO are not correct

    XMLWordPrintableJSON

Details

    • Bug
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • None
    • trunk
    • None

    Description

      1.Host Memory Used calculation method : ((mem_total - mem_free - mem_cached)/mem_total)*100
      The value of mem_free was collected by psutil.virtual_memory() method in host_info.py file and it correspond to 'available' in psutil.virtual_memory() results.Actually,the available = free + buffers + cached.So,the Host Memory Used calculation method should be ((mem_total - mem_free)/mem_total)*100

      2.Host CPU Wait IO was collected by psutil.cpu_times_percent() method in host_info.py.It has been converted to percentage.So,we should use ${cpu_wio} instead of ${cpu_wio*100} as its value in widgets.json.

      Attachments

        Activity

          People

            wangjianfei wangjianfei
            wangjianfei wangjianfei
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m