Details

Type: Improvement

Status: Open

Priority: Major

Resolution: Unresolved

Affects Version/s: 0.94.14

Fix Version/s: None

Component/s: regionserver

Labels:None
Description
It is important for applications to get latency statistics when invoking hbase apis. Currently, the average latency of methods in HRegionInterface will be computed in HBaseRpcMetrics. However, user might expect more detail latency statistics, such as 75% percentile latency, 95% percentile latency, etc. Therefore, will it be useful if we computing latency percentiles for rpc invoking of region server methods?
This patch will computing real time rpc invoke latency percentiles for methods of HRegionInterface, including:
1. Based on MetricsHistogram, implement MetricsTimeVaryingHistogram which will compute real time percentiles for metric;
2. Add 999th percentile statistics for MetricsHistogram;
3. Extend HBaseRpcMetrics to compute rpc invoke real time latency percentiles based on MetricsTimeVaryingHistogram.