HADOOP-10305. Add rpc.metrics.quantile.enable and rpc.metrics.percentiles.intervals to core-default.xml. Contributed by Akira Ajisaka.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1562660 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7c8fc5881c
commit
f00e3a3d7a
|
@ -157,6 +157,10 @@ Release 2.3.0 - UNRELEASED
|
||||||
HADOOP-9652. Allow RawLocalFs#getFileLinkStatus to fill in the link owner
|
HADOOP-9652. Allow RawLocalFs#getFileLinkStatus to fill in the link owner
|
||||||
and mode if requested. (Andrew Wang via Colin Patrick McCabe)
|
and mode if requested. (Andrew Wang via Colin Patrick McCabe)
|
||||||
|
|
||||||
|
HADOOP-10305. Add "rpc.metrics.quantile.enable" and
|
||||||
|
"rpc.metrics.percentiles.intervals" to core-default.xml.
|
||||||
|
(Akira Ajisaka via wang)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
HADOOP-10142. Avoid groups lookup for unprivileged users such as "dr.who"
|
HADOOP-10142. Avoid groups lookup for unprivileged users such as "dr.who"
|
||||||
|
|
|
@ -245,6 +245,7 @@ public class CommonConfigurationKeys extends CommonConfigurationKeysPublic {
|
||||||
|
|
||||||
public static final String RPC_METRICS_QUANTILE_ENABLE =
|
public static final String RPC_METRICS_QUANTILE_ENABLE =
|
||||||
"rpc.metrics.quantile.enable";
|
"rpc.metrics.quantile.enable";
|
||||||
|
public static final boolean RPC_METRICS_QUANTILE_ENABLE_DEFAULT = false;
|
||||||
public static final String RPC_METRICS_PERCENTILES_INTERVALS_KEY =
|
public static final String RPC_METRICS_PERCENTILES_INTERVALS_KEY =
|
||||||
"rpc.metrics.percentiles.intervals";
|
"rpc.metrics.percentiles.intervals";
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,7 +54,8 @@ public class RpcMetrics {
|
||||||
int[] intervals = conf.getInts(
|
int[] intervals = conf.getInts(
|
||||||
CommonConfigurationKeys.RPC_METRICS_PERCENTILES_INTERVALS_KEY);
|
CommonConfigurationKeys.RPC_METRICS_PERCENTILES_INTERVALS_KEY);
|
||||||
rpcQuantileEnable = (intervals.length > 0) && conf.getBoolean(
|
rpcQuantileEnable = (intervals.length > 0) && conf.getBoolean(
|
||||||
CommonConfigurationKeys.RPC_METRICS_QUANTILE_ENABLE, false);
|
CommonConfigurationKeys.RPC_METRICS_QUANTILE_ENABLE,
|
||||||
|
CommonConfigurationKeys.RPC_METRICS_QUANTILE_ENABLE_DEFAULT);
|
||||||
if (rpcQuantileEnable) {
|
if (rpcQuantileEnable) {
|
||||||
rpcQueueTimeMillisQuantiles =
|
rpcQueueTimeMillisQuantiles =
|
||||||
new MutableQuantiles[intervals.length];
|
new MutableQuantiles[intervals.length];
|
||||||
|
|
|
@ -1268,4 +1268,26 @@
|
||||||
Default, "dr.who=;" will consider "dr.who" as user without groups.
|
Default, "dr.who=;" will consider "dr.who" as user without groups.
|
||||||
</description>
|
</description>
|
||||||
</property>
|
</property>
|
||||||
|
|
||||||
|
<property>
|
||||||
|
<name>rpc.metrics.quantile.enable</name>
|
||||||
|
<value>false</value>
|
||||||
|
<description>
|
||||||
|
Setting this property to true and rpc.metrics.percentiles.intervals
|
||||||
|
to a comma-separated list of the granularity in seconds, the
|
||||||
|
50/75/90/95/99th percentile latency for rpc queue/processing time in
|
||||||
|
milliseconds are added to rpc metrics.
|
||||||
|
</description>
|
||||||
|
</property>
|
||||||
|
|
||||||
|
<property>
|
||||||
|
<name>rpc.metrics.percentiles.intervals</name>
|
||||||
|
<value></value>
|
||||||
|
<description>
|
||||||
|
A comma-separated list of the granularity in seconds for the metrics which
|
||||||
|
describe the 50/75/90/95/99th percentile latency for rpc queue/processing
|
||||||
|
time. The metrics are outputted if rpc.metrics.quantile.enable is set to
|
||||||
|
true.
|
||||||
|
</description>
|
||||||
|
</property>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
Loading…
Reference in New Issue