cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject [1/2] git commit: updated refs/heads/master to 2093c33
Date Fri, 04 Dec 2015 18:30:04 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master 6dcfd668f -> 2093c33eb


CLOUDSTACK-9107: Description of global config agent.load.threshold and the actual behavior
are not in sync
Made configuration parameter description and behavior in sync.


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

Branch: refs/heads/master
Commit: 04c44894b961cede7a917bcc78b153a0fc8ffd46
Parents: 7e902cd
Author: Koushik Das <koushik@apache.org>
Authored: Fri Dec 4 14:08:56 2015 +0530
Committer: Koushik Das <koushik@apache.org>
Committed: Fri Dec 4 14:08:56 2015 +0530

----------------------------------------------------------------------
 .../com/cloud/agent/manager/ClusteredAgentManagerImpl.java   | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/04c44894/engine/orchestration/src/com/cloud/agent/manager/ClusteredAgentManagerImpl.java
----------------------------------------------------------------------
diff --git a/engine/orchestration/src/com/cloud/agent/manager/ClusteredAgentManagerImpl.java
b/engine/orchestration/src/com/cloud/agent/manager/ClusteredAgentManagerImpl.java
index f707781..f35a4ef 100644
--- a/engine/orchestration/src/com/cloud/agent/manager/ClusteredAgentManagerImpl.java
+++ b/engine/orchestration/src/com/cloud/agent/manager/ClusteredAgentManagerImpl.java
@@ -1411,14 +1411,12 @@ public class ClusteredAgentManagerImpl extends AgentManagerImpl implements
Clust
                         final double managedHostsCount = allManagedRoutingAgents.size();
                         if (allHostsCount > 0.0) {
                             final double load = managedHostsCount / allHostsCount;
-                            if (load >= ConnectedAgentThreshold.value()) {
-                                s_logger.debug("Scheduling agent rebalancing task as the
average agent load " + load + " is more than the threshold " +
-                                        ConnectedAgentThreshold.value());
+                            if (load > ConnectedAgentThreshold.value()) {
+                                s_logger.debug("Scheduling agent rebalancing task as the
average agent load " + load + " is more than the threshold " + ConnectedAgentThreshold.value());
                                 scheduleRebalanceAgents();
                                 _agentLbHappened = true;
                             } else {
-                                s_logger.debug("Not scheduling agent rebalancing task as
the averages load " + load + " is less than the threshold " +
-                                        ConnectedAgentThreshold.value());
+                                s_logger.debug("Not scheduling agent rebalancing task as
the average load " + load + " has not crossed the threshold " + ConnectedAgentThreshold.value());
                             }
                         }
                     }


Mime
View raw message