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/01/16 14:19:06 UTC

git commit: Hard coding LB cartridges minimum value to one

Updated Branches:
  refs/heads/master cd028a186 -> fbf69efb7


Hard coding LB cartridges minimum value to one


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

Branch: refs/heads/master
Commit: fbf69efb73c13aa45f52732a4618398a014df6ab
Parents: cd028a1
Author: Lahiru Sandaruwan <la...@apache.org>
Authored: Thu Jan 16 18:53:37 2014 +0530
Committer: Lahiru Sandaruwan <la...@apache.org>
Committed: Thu Jan 16 18:53:37 2014 +0530

----------------------------------------------------------------------
 .../java/org/apache/stratos/autoscaler/util/AutoscalerUtil.java     | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/fbf69efb/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/util/AutoscalerUtil.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/util/AutoscalerUtil.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/util/AutoscalerUtil.java
index 3eeb52f..95ae035 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/util/AutoscalerUtil.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/util/AutoscalerUtil.java
@@ -225,6 +225,7 @@ public class AutoscalerUtil {
             partitionContext.setServiceName(cluster.getServiceName());
             partitionContext.setProperties(cluster.getProperties());
             partitionContext.setNetworkPartitionId(partitionGroup.getId());
+            partitionContext.setMinimumMemberCount(1);//Here it hard codes the minimum value as one for LB cartridge partitions
 
             for (Member member : cluster.getMembers()) {
                 String memberId = member.getMemberId();