You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by la...@apache.org on 2014/12/15 07:41:33 UTC

stratos git commit: Adding cluster id to cluster monitor log

Repository: stratos
Updated Branches:
  refs/heads/4.1.0-test df4710a10 -> bbc838ac6


Adding cluster id to cluster monitor log


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/bbc838ac
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/bbc838ac
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/bbc838ac

Branch: refs/heads/4.1.0-test
Commit: bbc838ac627e0456a1bea878bfa8ee7f05d1b79c
Parents: df4710a
Author: Lahiru Sandaruwan <la...@apache.org>
Authored: Mon Dec 15 12:13:30 2014 +0530
Committer: Lahiru Sandaruwan <la...@apache.org>
Committed: Mon Dec 15 12:13:40 2014 +0530

----------------------------------------------------------------------
 .../stratos/autoscaler/monitor/cluster/VMClusterMonitor.java  | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/bbc838ac/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/cluster/VMClusterMonitor.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/cluster/VMClusterMonitor.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/cluster/VMClusterMonitor.java
index 9f40c76..653499f 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/cluster/VMClusterMonitor.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/monitor/cluster/VMClusterMonitor.java
@@ -254,7 +254,8 @@ public class VMClusterMonitor extends AbstractClusterMonitor {
                             boolean rifReset = instanceContext.isRifReset();
                             boolean memoryConsumptionReset = instanceContext.isMemoryConsumptionReset();
                             boolean loadAverageReset = instanceContext.isLoadAverageReset();
-                            boolean averageRequestServedPerInstanceReset = instanceContext.isAverageRequestServedPerInstanceReset();
+                            boolean averageRequestServedPerInstanceReset
+                                    = instanceContext.isAverageRequestServedPerInstanceReset();
 
                             if (log.isDebugEnabled()) {
                                 log.debug("Execution point of scaling Rule, [Is rif Reset] : " + rifReset
@@ -294,8 +295,8 @@ public class VMClusterMonitor extends AbstractClusterMonitor {
                                 instanceContext.setLoadAverageReset(false);
                             } else if (log.isDebugEnabled()) {
                                 log.debug(String.format("Scale rule will not run since the LB statistics have not " +
-                                                "received before this cycle for [cluster instance context] %s ",
-                                        instanceContext.getId()));
+                                                "received before this cycle for [cluster instance context] %s [cluster] %s",
+                                        instanceContext.getId(), clusterId));
                             }
 
                         }