Surya Hebbar has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/20008


Change subject: IMPALA-12182: Add CPU utilization chart for RuntimeProfile's 
sampled metrics
......................................................................

IMPALA-12182: Add CPU utilization chart for RuntimeProfile's sampled metrics

RuntimeProfile contains samples of CPU utilization metrics for user,
sys and iowait. These are retrieved from the ChunkedTimeSeriesCounter
used in AggregatedRuntimeProfile for the thrift profile and
are downsampled to a maximum of 64 values similar to
SamplingTimeSeriesCounter for the RuntimeProfile.

AggregatedRuntimeProfile used in the thrift profile contains
the complete series of values from the ChunkedTimeSeriesCounter.
Currently, JSON profiles and webUI summary pages contain the
downsampled values.

The samples are updated based on 'periodic_counter_update_period_ms'
providing the 'period' within profile's 'Per Node Profiles'.

Aggregate CPU usage for each node is being calculated
after accumulating the basis point values for user, sys
and iowait.

CPU nodes are colored by splitting the hue values in HSL color space.

Currently, a lightweight SVG and CSS library chartist.js
is being used to plot the values and the license has been
included within the patch.

Rendering functions have been declared with 'async' keyword
for better performance during resize events.

Aggregate CPU usage values for each node is being logged
to the console for review and debugging purposes.

An example has been included with the associated ticket.

The legend for each CPU node containing the 'profile_name' will
be incorporated in a subsequent patchset.

Testing: Manual testing with TPC-DS and TPC-H queries

Change-Id: Idea2a6db217dbfaa7a0695aeabb6d9c1ecf62158
---
M .gitattributes
M LICENSE.txt
A www/chartist/chartist.min.css
A www/chartist/chartist.umd.min.js
M www/query_timeline.tmpl
5 files changed, 184 insertions(+), 17 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/08/20008/1
--
To view, visit http://gerrit.cloudera.org:8080/20008
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Idea2a6db217dbfaa7a0695aeabb6d9c1ecf62158
Gerrit-Change-Number: 20008
Gerrit-PatchSet: 1
Gerrit-Owner: Surya Hebbar <[email protected]>

Reply via email to