[AMBARI-24463]Heatmaps:Calculation for Host Memory Used and Host CPU Wait IO is not correct
What changes were proposed in this pull request?
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 results returned by psutil.virtual_memory() .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.
How was this patch tested?
Manually Tested.
@avijayanhwx Could you help review this when you have time?
Refer to this link for build results (access rights to CI server needed): https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/3566/ Test PASSed.
@d0zen1 @swagle Could you help review this when you have time?