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 <[email protected]> Authored: Thu Jan 16 18:53:37 2014 +0530 Committer: Lahiru Sandaruwan <[email protected]> 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();
