[ https://issues.apache.org/jira/browse/STRATOS-849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Imesh Gunaratne updated STRATOS-849: ------------------------------------ Fix Version/s: (was: 4.1.0 M1) 4.1.0-M1 > Stratos does not create specified min instance count in deployment policy > ------------------------------------------------------------------------- > > Key: STRATOS-849 > URL: https://issues.apache.org/jira/browse/STRATOS-849 > Project: Stratos > Issue Type: Bug > Components: Autoscaler > Reporter: Akila > Priority: Blocker > Fix For: 4.1.0-M1 > > > Use the following deployment policy with min count - 3 > { > "id": "deployp", > "partitionGroup": { > "id": "ec2", > "partitionAlgo": "one-after-another", > "partition": [ > { > "id": "P1", > "partitionMax": "10", > "partitionMin": "3" > } > ] > } > } > Stratos will only create 1 LB and 1 service instance. When RuleLog DEBUG logs > are enabled following can be observed. > TID: [0] [STRATOS] [2014-09-30 10:19:17,862] DEBUG > {org.apache.stratos.autoscaler.monitor.VMLbClusterMonitor} - Cluster monitor > is running.. LbClusterMonitor [clusterId=lblb-1025611169.lb.domain, > serviceId=lb] {org.apache.stratos.autoscaler.monitor.VMLbClusterMonitor} > TID: [0] [STRATOS] [2014-09-30 10:19:17,862] DEBUG > {org.apache.stratos.autoscaler.monitor.VMLbClusterMonitor} - Running minimum > check for partition P1 > {org.apache.stratos.autoscaler.monitor.VMLbClusterMonitor} > TID: [0] [STRATOS] [2014-09-30 10:19:17,862] DEBUG > {org.apache.stratos.autoscaler.rule.RuleLog} - Running minimum rule: > [network-partition] ec2 [partition] P1 > {org.apache.stratos.autoscaler.rule.RuleLog} > TID: [0] [STRATOS] [2014-09-30 10:19:17,863] DEBUG > {org.apache.stratos.autoscaler.rule.RuleLog} - [min-check] > [network-partition] ec2 [partition] P1 Non terminated member count: 1 > {org.apache.stratos.autoscaler.rule.RuleLog} > TID: [0] [STRATOS] [2014-09-30 10:19:17,863] DEBUG > {org.apache.stratos.autoscaler.rule.RuleLog} - [min-check] > [network-partition] ec2 [partition] P1 Minimum member count: 1 > {org.apache.stratos.autoscaler.rule.RuleLog} > TID: [0] [STRATOS] [2014-09-30 10:19:17,863] DEBUG > {org.apache.stratos.autoscaler.rule.RuleLog} - Running obsolete instances > rule: [partition] P1 [network-partition] ec2 > {org.apache.stratos.autoscaler.rule.RuleLog} > TID: [0] [STRATOS] [2014-09-30 10:19:17,863] DEBUG > {org.apache.stratos.autoscaler.rule.RuleLog} - [obsolete-check] > [network-partition] ec2 [partition] P1 Obsolete member count: 0 > {org.apache.stratos.autoscaler.rule.RuleLog} > TID: [0] [STRATOS] [2014-09-30 10:19:17,863] DEBUG > {org.apache.stratos.autoscaler.rule.AutoscalerRuleEvaluator} - Minimum check > executed for : org.apache.stratos.autoscaler.PartitionContext@4eb71db > {org.apache.stratos.autoscaler.rule.AutoscalerRuleEvaluator} > TID: [0] [STRATOS] [2014-09-30 10:19:30,421] DEBUG > {org.apache.stratos.autoscaler.monitor.VMLbClusterMonitor} - Cluster monitor > is running.. LbClusterMonitor [clusterId=jboss.jboss.domain, serviceId=jboss] > {org.apache.stratos.autoscaler.monitor.VMLbClusterMonitor} > TID: [0] [STRATOS] [2014-09-30 10:19:30,421] DEBUG > {org.apache.stratos.autoscaler.monitor.VMLbClusterMonitor} - Running minimum > check for partition P1 > {org.apache.stratos.autoscaler.monitor.VMLbClusterMonitor} > TID: [0] [STRATOS] [2014-09-30 10:19:30,421] DEBUG > {org.apache.stratos.autoscaler.rule.RuleLog} - Running minimum rule: > [network-partition] ec2 [partition] P1 > {org.apache.stratos.autoscaler.rule.RuleLog} > TID: [0] [STRATOS] [2014-09-30 10:19:30,421] DEBUG > {org.apache.stratos.autoscaler.rule.RuleLog} - [min-check] > [network-partition] ec2 [partition] P1 Non terminated member count: 1 > {org.apache.stratos.autoscaler.rule.RuleLog} > TID: [0] [STRATOS] [2014-09-30 10:19:30,422] DEBUG > {org.apache.stratos.autoscaler.rule.RuleLog} - [min-check] > [network-partition] ec2 [partition] P1 Minimum member count: 1 > {org.apache.stratos.autoscaler.rule.RuleLog} > TID: [0] [STRATOS] [2014-09-30 10:19:30,422] DEBUG > {org.apache.stratos.autoscaler.rule.RuleLog} - Running obsolete instances > rule: [partition] P1 [network-partition] ec2 > {org.apache.stratos.autoscaler.rule.RuleLog} > TID: [0] [STRATOS] [2014-09-30 10:19:30,422] DEBUG > {org.apache.stratos.autoscaler.rule.RuleLog} - [obsolete-check] > [network-partition] ec2 [partition] P1 Obsolete member count: 0 > {org.apache.stratos.autoscaler.rule.RuleLog} > TID: [0] [STRATOS] [2014-09-30 10:19:30,422] DEBUG > {org.apache.stratos.autoscaler.rule.AutoscalerRuleEvaluator} - Minimum check > executed for : org.apache.stratos.autoscaler.PartitionContext@31918b23 > {org.apache.stratos.autoscaler.rule.AutoscalerRuleEvaluator} > TID: [0] [STRATOS] [2014-09-30 10:20:47,864] DEBUG > {org.apache.stratos.autoscaler.monitor.VMLbClusterMonitor} - Cluster monitor > is running.. LbClusterMonitor [clusterId=lblb-1025611169.lb.domain, > serviceId=lb] {org.apache.stratos.autoscaler.monitor.VMLbClusterMonitor} > TID: [0] [STRATOS] [2014-09-30 10:20:47,864] DEBUG > {org.apache.stratos.autoscaler.monitor.VMLbClusterMonitor} - Running minimum > check for partition P1 > {org.apache.stratos.autoscaler.monitor.VMLbClusterMonitor} > TID: [0] [STRATOS] [2014-09-30 10:20:47,865] DEBUG > {org.apache.stratos.autoscaler.rule.RuleLog} - Running minimum rule: > [network-partition] ec2 [partition] P1 > {org.apache.stratos.autoscaler.rule.RuleLog} > TID: [0] [STRATOS] [2014-09-30 10:20:47,865] DEBUG > {org.apache.stratos.autoscaler.rule.RuleLog} - [min-check] > [network-partition] ec2 [partition] P1 Non terminated member count: 1 > {org.apache.stratos.autoscaler.rule.RuleLog} > TID: [0] [STRATOS] [2014-09-30 10:20:47,865] DEBUG > {org.apache.stratos.autoscaler.rule.RuleLog} - [min-check] > [network-partition] ec2 [partition] P1 Minimum member count: 1 > {org.apache.stratos.autoscaler.rule.RuleLog} > TID: [0] [STRATOS] [2014-09-30 10:20:47,865] DEBUG > {org.apache.stratos.autoscaler.rule.RuleLog} - Running obsolete instances > rule: [partition] P1 [network-partition] ec2 > {org.apache.stratos.autoscaler.rule.RuleLog} > TID: [0] [STRATOS] [2014-09-30 10:20:47,865] DEBUG > {org.apache.stratos.autoscaler.rule.RuleLog} - [obsolete-check] > [network-partition] ec2 [partition] P1 Obsolete member count: 0 > {org.apache.stratos.autoscaler.rule.RuleLog} > TID: [0] [STRATOS] [2014-09-30 10:20:47,866] DEBUG > {org.apache.stratos.autoscaler.rule.AutoscalerRuleEvaluator} - Minimum check > executed for : org.apache.stratos.autoscaler.PartitionContext@4eb71db > {org.apache.stratos.autoscaler.rule.AutoscalerRuleEvaluator} > TID: [0] [STRATOS] [2014-09-30 10:21:00,422] DEBUG > {org.apache.stratos.autoscaler.monitor.VMLbClusterMonitor} - Cluster monitor > is running.. LbClusterMonitor [clusterId=jboss.jboss.domain, serviceId=jboss] > {org.apache.stratos.autoscaler.monitor.VMLbClusterMonitor} > TID: [0] [STRATOS] [2014-09-30 10:21:00,423] DEBUG > {org.apache.stratos.autoscaler.monitor.VMLbClusterMonitor} - Running minimum > check for partition P1 > {org.apache.stratos.autoscaler.monitor.VMLbClusterMonitor} > TID: [0] [STRATOS] [2014-09-30 10:21:00,423] DEBUG > {org.apache.stratos.autoscaler.rule.RuleLog} - Running minimum rule: > [network-partition] ec2 [partition] P1 > {org.apache.stratos.autoscaler.rule.RuleLog} > TID: [0] [STRATOS] [2014-09-30 10:21:00,423] DEBUG > {org.apache.stratos.autoscaler.rule.RuleLog} - [min-check] > [network-partition] ec2 [partition] P1 Non terminated member count: 1 > {org.apache.stratos.autoscaler.rule.RuleLog} > TID: [0] [STRATOS] [2014-09-30 10:21:00,424] DEBUG > {org.apache.stratos.autoscaler.rule.RuleLog} - [min-check] > [network-partition] ec2 [partition] P1 Minimum member count: 1 > {org.apache.stratos.autoscaler.rule.RuleLog} > TID: [0] [STRATOS] [2014-09-30 10:21:00,424] DEBUG > {org.apache.stratos.autoscaler.rule.RuleLog} - Running obsolete instances > rule: [partition] P1 [network-partition] ec2 > {org.apache.stratos.autoscaler.rule.RuleLog} > TID: [0] [STRATOS] [2014-09-30 10:21:00,425] DEBUG > {org.apache.stratos.autoscaler.rule.RuleLog} - [obsolete-check] > [network-partition] ec2 [partition] P1 Obsolete member count: 0 > {org.apache.stratos.autoscaler.rule.RuleLog} > TID: [0] [STRATOS] [2014-09-30 10:21:00,425] DEBUG > {org.apache.stratos.autoscaler.rule.AutoscalerRuleEvaluator} - Minimum check > executed for : org.apache.stratos.autoscaler.PartitionContext@31918b23 > {org.apache.stratos.autoscaler.rule.AutoscalerRuleEvaluator} > It seems service instance is also created by VMLbClusterMonitor. This is > wrong. This should be fixed in ClustorMonitorFactory class. -- This message was sent by Atlassian JIRA (v6.3.4#6332)