Uploaded image for project: 'Stratos'
  1. Stratos
  2. STRATOS-849

Stratos does not create specified min instance count in deployment policy

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.0 RC3
    • Component/s: Autoscaler
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ravihansa Akila
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: