[jira] [Updated] (HADOOP-14166) Reset the DecayRpcScheduler AvgResponseTime metric to zero when queue is not used

2017-05-24 Thread Brahma Reddy Battula (JIRA)

 [ 
https://issues.apache.org/jira/browse/HADOOP-14166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brahma Reddy Battula updated HADOOP-14166:
--
   Resolution: Fixed
 Hadoop Flags: Reviewed
Fix Version/s: 2.8.2
   3.0.0-alpha3
   2.9.0
   Status: Resolved  (was: Patch Available)

Committed to {{trunk}},{{branch-2}} and {{branch-2.8}}. [~surendrasingh] thanks 
for your contribution. it's nice finding.. [~xyao] thanks for additional review.

> Reset the DecayRpcScheduler AvgResponseTime metric to zero when queue is not 
> used
> -
>
> Key: HADOOP-14166
> URL: https://issues.apache.org/jira/browse/HADOOP-14166
> Project: Hadoop Common
>  Issue Type: Bug
>  Components: common
>Reporter: Surendra Singh Lilhore
>Assignee: Surendra Singh Lilhore
> Fix For: 2.9.0, 3.0.0-alpha3, 2.8.2
>
> Attachments: HADOOP-14166.001.patch
>
>
> {noformat}
>  "name" : "Hadoop:service=NameNode,name=DecayRpcSchedulerMetrics2.ipc.8020",
> "modelerType" : "DecayRpcSchedulerMetrics2.ipc.8020",
> "tag.Context" : "ipc.8020",
> "tag.Hostname" : "host1",
> "DecayedCallVolume" : 3,
> "UniqueCallers" : 1,
> "Caller(root).Volume" : 266,
> "Caller(root).Priority" : 3,
> "Priority.0.AvgResponseTime" : 6.151201023385511E-5,
> "Priority.1.AvgResponseTime" : 0.0,
> "Priority.2.AvgResponseTime" : 0.0,
> "Priority.3.AvgResponseTime" : 1.184686336544601,
> "Priority.0.CompletedCallVolume" : 0,
> "Priority.1.CompletedCallVolume" : 0,
> "Priority.2.CompletedCallVolume" : 0,
> "Priority.3.CompletedCallVolume" : 2,
> "CallVolume" : 266
> {noformat}
> "Priority.0.AvgResponseTime" is always "6.151201023385511E-5" even the queue 
> is not used for long time.
> {code}
>   if (lastAvg > PRECISION || averageResponseTime > PRECISION) {
> if (enableDecay) {
>   final double decayed = decayFactor * lastAvg + averageResponseTime;
>   LOG.info("Decayed "  + i + " time " +   decayed);
>   responseTimeAvgInLastWindow.set(i, decayed);
> } else {
>   responseTimeAvgInLastWindow.set(i, averageResponseTime);
> }
>   }
> {code}
> we should reset it to zero when above condition is false.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org



[jira] [Updated] (HADOOP-14166) Reset the DecayRpcScheduler AvgResponseTime metric to zero when queue is not used

2017-03-09 Thread Surendra Singh Lilhore (JIRA)

 [ 
https://issues.apache.org/jira/browse/HADOOP-14166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Surendra Singh Lilhore updated HADOOP-14166:

Status: Patch Available  (was: Open)

> Reset the DecayRpcScheduler AvgResponseTime metric to zero when queue is not 
> used
> -
>
> Key: HADOOP-14166
> URL: https://issues.apache.org/jira/browse/HADOOP-14166
> Project: Hadoop Common
>  Issue Type: Bug
>  Components: common
>Reporter: Surendra Singh Lilhore
>Assignee: Surendra Singh Lilhore
> Attachments: HADOOP-14166.001.patch
>
>
> {noformat}
>  "name" : "Hadoop:service=NameNode,name=DecayRpcSchedulerMetrics2.ipc.8020",
> "modelerType" : "DecayRpcSchedulerMetrics2.ipc.8020",
> "tag.Context" : "ipc.8020",
> "tag.Hostname" : "host1",
> "DecayedCallVolume" : 3,
> "UniqueCallers" : 1,
> "Caller(root).Volume" : 266,
> "Caller(root).Priority" : 3,
> "Priority.0.AvgResponseTime" : 6.151201023385511E-5,
> "Priority.1.AvgResponseTime" : 0.0,
> "Priority.2.AvgResponseTime" : 0.0,
> "Priority.3.AvgResponseTime" : 1.184686336544601,
> "Priority.0.CompletedCallVolume" : 0,
> "Priority.1.CompletedCallVolume" : 0,
> "Priority.2.CompletedCallVolume" : 0,
> "Priority.3.CompletedCallVolume" : 2,
> "CallVolume" : 266
> {noformat}
> "Priority.0.AvgResponseTime" is always "6.151201023385511E-5" even the queue 
> is not used for long time.
> {code}
>   if (lastAvg > PRECISION || averageResponseTime > PRECISION) {
> if (enableDecay) {
>   final double decayed = decayFactor * lastAvg + averageResponseTime;
>   LOG.info("Decayed "  + i + " time " +   decayed);
>   responseTimeAvgInLastWindow.set(i, decayed);
> } else {
>   responseTimeAvgInLastWindow.set(i, averageResponseTime);
> }
>   }
> {code}
> we should reset it to zero when above condition is false.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org



[jira] [Updated] (HADOOP-14166) Reset the DecayRpcScheduler AvgResponseTime metric to zero when queue is not used

2017-03-09 Thread Surendra Singh Lilhore (JIRA)

 [ 
https://issues.apache.org/jira/browse/HADOOP-14166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Surendra Singh Lilhore updated HADOOP-14166:

Attachment: HADOOP-14166.001.patch

Attached initial patch..
Please review...

> Reset the DecayRpcScheduler AvgResponseTime metric to zero when queue is not 
> used
> -
>
> Key: HADOOP-14166
> URL: https://issues.apache.org/jira/browse/HADOOP-14166
> Project: Hadoop Common
>  Issue Type: Bug
>  Components: common
>Reporter: Surendra Singh Lilhore
>Assignee: Surendra Singh Lilhore
> Attachments: HADOOP-14166.001.patch
>
>
> {noformat}
>  "name" : "Hadoop:service=NameNode,name=DecayRpcSchedulerMetrics2.ipc.8020",
> "modelerType" : "DecayRpcSchedulerMetrics2.ipc.8020",
> "tag.Context" : "ipc.8020",
> "tag.Hostname" : "host1",
> "DecayedCallVolume" : 3,
> "UniqueCallers" : 1,
> "Caller(root).Volume" : 266,
> "Caller(root).Priority" : 3,
> "Priority.0.AvgResponseTime" : 6.151201023385511E-5,
> "Priority.1.AvgResponseTime" : 0.0,
> "Priority.2.AvgResponseTime" : 0.0,
> "Priority.3.AvgResponseTime" : 1.184686336544601,
> "Priority.0.CompletedCallVolume" : 0,
> "Priority.1.CompletedCallVolume" : 0,
> "Priority.2.CompletedCallVolume" : 0,
> "Priority.3.CompletedCallVolume" : 2,
> "CallVolume" : 266
> {noformat}
> "Priority.0.AvgResponseTime" is always "6.151201023385511E-5" even the queue 
> is not used for long time.
> {code}
>   if (lastAvg > PRECISION || averageResponseTime > PRECISION) {
> if (enableDecay) {
>   final double decayed = decayFactor * lastAvg + averageResponseTime;
>   LOG.info("Decayed "  + i + " time " +   decayed);
>   responseTimeAvgInLastWindow.set(i, decayed);
> } else {
>   responseTimeAvgInLastWindow.set(i, averageResponseTime);
> }
>   }
> {code}
> we should reset it to zero when above condition is false.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org



[jira] [Updated] (HADOOP-14166) Reset the DecayRpcScheduler AvgResponseTime metric to zero when queue is not used

2017-03-09 Thread Surendra Singh Lilhore (JIRA)

 [ 
https://issues.apache.org/jira/browse/HADOOP-14166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Surendra Singh Lilhore updated HADOOP-14166:

Description: 
{noformat}
 "name" : "Hadoop:service=NameNode,name=DecayRpcSchedulerMetrics2.ipc.8020",
"modelerType" : "DecayRpcSchedulerMetrics2.ipc.8020",
"tag.Context" : "ipc.8020",
"tag.Hostname" : "host1",
"DecayedCallVolume" : 3,
"UniqueCallers" : 1,
"Caller(root).Volume" : 266,
"Caller(root).Priority" : 3,
"Priority.0.AvgResponseTime" : 6.151201023385511E-5,
"Priority.1.AvgResponseTime" : 0.0,
"Priority.2.AvgResponseTime" : 0.0,
"Priority.3.AvgResponseTime" : 1.184686336544601,
"Priority.0.CompletedCallVolume" : 0,
"Priority.1.CompletedCallVolume" : 0,
"Priority.2.CompletedCallVolume" : 0,
"Priority.3.CompletedCallVolume" : 2,
"CallVolume" : 266
{noformat}

"Priority.0.AvgResponseTime" is always "6.151201023385511E-5" even the queue is 
not used for long time.

{code}
  if (lastAvg > PRECISION || averageResponseTime > PRECISION) {
if (enableDecay) {
  final double decayed = decayFactor * lastAvg + averageResponseTime;
  LOG.info("Decayed "  + i + " time " +   decayed);
  responseTimeAvgInLastWindow.set(i, decayed);
} else {
  responseTimeAvgInLastWindow.set(i, averageResponseTime);
}
  }
{code}

we should reset it to zero when above condition is false.

  was:
{noformat}
 "name" : "Hadoop:service=NameNode,name=DecayRpcSchedulerMetrics2.ipc.65110",
"modelerType" : "DecayRpcSchedulerMetrics2.ipc.65110",
"tag.Context" : "ipc.65110",
"tag.Hostname" : "BLR106556",
"DecayedCallVolume" : 3,
"UniqueCallers" : 1,
"Caller(root).Volume" : 266,
"Caller(root).Priority" : 3,
"Priority.0.AvgResponseTime" : 6.151201023385511E-5,
"Priority.1.AvgResponseTime" : 0.0,
"Priority.2.AvgResponseTime" : 0.0,
"Priority.3.AvgResponseTime" : 1.184686336544601,
"Priority.0.CompletedCallVolume" : 0,
"Priority.1.CompletedCallVolume" : 0,
"Priority.2.CompletedCallVolume" : 0,
"Priority.3.CompletedCallVolume" : 2,
"CallVolume" : 266
{noformat}

"Priority.0.AvgResponseTime" is always "6.151201023385511E-5" even the queue is 
not used for long time.

{code}
  if (lastAvg > PRECISION || averageResponseTime > PRECISION) {
if (enableDecay) {
  final double decayed = decayFactor * lastAvg + averageResponseTime;
  LOG.info("Decayed "  + i + " time " +   decayed);
  responseTimeAvgInLastWindow.set(i, decayed);
} else {
  responseTimeAvgInLastWindow.set(i, averageResponseTime);
}
  }
{code}

we should reset it to zero when above condition is false.


> Reset the DecayRpcScheduler AvgResponseTime metric to zero when queue is not 
> used
> -
>
> Key: HADOOP-14166
> URL: https://issues.apache.org/jira/browse/HADOOP-14166
> Project: Hadoop Common
>  Issue Type: Bug
>  Components: common
>Reporter: Surendra Singh Lilhore
>Assignee: Surendra Singh Lilhore
>
> {noformat}
>  "name" : "Hadoop:service=NameNode,name=DecayRpcSchedulerMetrics2.ipc.8020",
> "modelerType" : "DecayRpcSchedulerMetrics2.ipc.8020",
> "tag.Context" : "ipc.8020",
> "tag.Hostname" : "host1",
> "DecayedCallVolume" : 3,
> "UniqueCallers" : 1,
> "Caller(root).Volume" : 266,
> "Caller(root).Priority" : 3,
> "Priority.0.AvgResponseTime" : 6.151201023385511E-5,
> "Priority.1.AvgResponseTime" : 0.0,
> "Priority.2.AvgResponseTime" : 0.0,
> "Priority.3.AvgResponseTime" : 1.184686336544601,
> "Priority.0.CompletedCallVolume" : 0,
> "Priority.1.CompletedCallVolume" : 0,
> "Priority.2.CompletedCallVolume" : 0,
> "Priority.3.CompletedCallVolume" : 2,
> "CallVolume" : 266
> {noformat}
> "Priority.0.AvgResponseTime" is always "6.151201023385511E-5" even the queue 
> is not used for long time.
> {code}
>   if (lastAvg > PRECISION || averageResponseTime > PRECISION) {
> if (enableDecay) {
>   final double decayed = decayFactor * lastAvg + averageResponseTime;
>   LOG.info("Decayed "  + i + " time " +   decayed);
>   responseTimeAvgInLastWindow.set(i, decayed);
> } else {
>   responseTimeAvgInLastWindow.set(i, averageResponseTime);
> }
>   }
> {code}
> we should reset it to zero when above condition is false.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org