Hi Akila,

There is no problem with ClusterMonitorFactory at all.

isLbCluster attribute of cluster object is true for jboss cluster. Hence
the factory is creating lb cluster jboss. We are looking into where the
isLbCluster was set to true for jboss.

Thanks.

On Tue, Sep 30, 2014 at 4:33 PM, Rajkumar Rajaratnam (JIRA) <j...@apache.org
> wrote:

>
>     [
> https://issues.apache.org/jira/browse/STRATOS-849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14153066#comment-14153066
> ]
>
> Rajkumar Rajaratnam commented on STRATOS-849:
> ---------------------------------------------
>
> Hi,
>
> ClusterMonitorFactory.getMonitor(Cluster) works based on the type of
> cluster set on cluster object. If it is a service cluster, isLbCluster and
> isKubernetesCluster should be set to false.
>
> I will look into it.
>
> > 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)
>



-- 
Rajkumar Rajaratnam
Software Engineer | WSO2, Inc.
Mobile +94777568639 | +94783498120

Reply via email to