ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt <mithm...@gmail.com>
Subject Re: Review Request 44040: Show swap memory for HAWQ Segment hosts
Date Thu, 25 Feb 2016 23:00:11 GMT


> On Feb. 25, 2016, 1:05 p.m., Matt wrote:
> > ambari-server/src/main/resources/common-services/HAWQ/2.0.0/widgets.json, line 138
> > <https://reviews.apache.org/r/44040/diff/1/?file=1271283#file1271283line138>
> >
> >     Fixing an aggregation issue.
> >     
> >     The mem_total across all segment hosts should be summed up and expressed as
a percentage.
> 
> jun aoki wrote:
>     Was it average previously instead of summary?

X can be mem_total, mem_free, or any other parameter. For computing an average across multiple
hosts: 1. Get value of X from every host, 2. Sum X's received, 3. Do percentage computation.


If there is only one HAWQ Segment it would have been correct - it would be the Percentage
memory utilized for that host: ((mem_total - mem_free - mem_cached)/mem_total) * 100
If there are multiple hosts, to get the aggregate percentage across all hosts this is the
required formula: ((mem_total._sum - mem_free._sum - mem_cached._sum)/mem_total._sum) * 100


- Matt


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/44040/#review120766
-----------------------------------------------------------


On Feb. 25, 2016, 1:03 p.m., Matt wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/44040/
> -----------------------------------------------------------
> 
> (Updated Feb. 25, 2016, 1:03 p.m.)
> 
> 
> Review request for Ambari, Alexander Denissov, bhuvnesh chaudhary, Goutam Tadi, jun aoki,
Lav Jain, and Newton Alex.
> 
> 
> Bugs: AMBARI-15191
>     https://issues.apache.org/jira/browse/AMBARI-15191
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> On the HAWQ service page, show swap memory utilization for HAWQ Segment hosts, on the
existing memory widget.
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/resources/common-services/HAWQ/2.0.0/widgets.json 48ae989 
> 
> Diff: https://reviews.apache.org/r/44040/diff/
> 
> 
> Testing
> -------
> 
> Manually Tested.
> 
> 
> Thanks,
> 
> Matt
> 
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message