stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Imesh Gunaratne <im...@apache.org>
Subject Re: Monitors are not created upon deployment
Date Sun, 11 Jan 2015 07:20:08 GMT
Great work Lahiru!
Just to clarify, have we updated the dependent scaling samples accordingly?

Thanks

On Sun, Jan 11, 2015 at 12:47 PM, Lahiru Sandaruwan <lahirus@wso2.com>
wrote:

> Found the cause. We have updated the dependent scaling to be defined using
> cartridge/group id. Earlier we had it using alias. My sample was not
> updated to reflect that change.
>
> Issue was we were missing few null checks when we wrongly define the
> scaling dependents. I have fixed those and put the logs as appropriately.
>
> Thanks.
>
> On Sun, Jan 11, 2015 at 10:53 AM, Lahiru Sandaruwan <lahirus@wso2.com>
> wrote:
>
>> Sorry.. Issue is a different one. Looking into it.
>>
>> On Sun, Jan 11, 2015 at 10:41 AM, Lahiru Sandaruwan <lahirus@wso2.com>
>> wrote:
>>
>>> This is happening because "ApplicationHolder.getApplications
>>> ().getApplication(applicationId);"
>>> returns null in "getApplicationMonitor" method. Somehow the added
>>> application is not there.
>>>
>>> Thanks.
>>>
>>> On Sun, Jan 11, 2015 at 10:19 AM, Lahiru Sandaruwan <lahirus@wso2.com>
>>> wrote:
>>>
>>>> I will have a look.
>>>>
>>>> On Sun, Jan 11, 2015 at 9:28 AM, Imesh Gunaratne <imesh@apache.org>
>>>> wrote:
>>>>
>>>>> Yes I can also see this problem with the above dependency scaling
>>>>> sample:
>>>>>
>>>>> [2015-01-11 09:21:08,843]  INFO
>>>>> {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} -  Application
>>>>> deployed successfully: [application-id] app_group_v2
>>>>> [2015-01-11 09:21:08,853]  INFO
>>>>> {org.apache.stratos.autoscaler.applications.dependency.DependencyBuilder}
-
>>>>>  Building dependency for the Application/Group app_group_v2
>>>>> [2015-01-11 09:21:08,854]  INFO
>>>>> {org.apache.stratos.autoscaler.applications.dependency.DependencyBuilder}
-
>>>>>  Setting the [terminationBehaviour] terminate-none to the [dependency-tree]
>>>>> app_group_v2
>>>>>
>>>>> There are no logs after the above lines, we might need to investigate
>>>>> and see the cause of the issue.
>>>>>
>>>>> Thanks
>>>>>
>>>>> On Sun, Jan 11, 2015 at 2:39 AM, Lahiru Sandaruwan <lahirus@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Sorry, There is no error. But this is the last set of logs i can
see.
>>>>>>
>>>>>> On Sun, Jan 11, 2015 at 2:38 AM, Lahiru Sandaruwan <lahirus@wso2.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> It seems $subject on master.
>>>>>>> Sample : [1]
>>>>>>> Error: [2]
>>>>>>>
>>>>>>> Thanks.
>>>>>>>
>>>>>>> [1]
>>>>>>> https://github.com/rekathiru/grouping-samples/tree/master/dependency_scaling/sample_groups
>>>>>>>
>>>>>>> [2]
>>>>>>>
>>>>>>> [2015-01-11 02:31:14,481]  INFO
>>>>>>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
-
>>>>>>> 'admin@carbon.super [-1234]' logged in at [2015-01-11
>>>>>>> 02:31:14,481+0530]
>>>>>>>
>>>>>>> [2015-01-11 02:31:14,524]  INFO
>>>>>>> {org.apache.stratos.cloud.controller.messaging.topology.TopologyBuilder}
-
>>>>>>> Application Cluster esbgroup6.esb.domain created in CC topology
>>>>>>>
>>>>>>> [2015-01-11 02:31:14,524]  INFO
>>>>>>> {org.apache.stratos.cloud.controller.messaging.topology.TopologyBuilder}
-
>>>>>>> Application Cluster mytomcat.tomcat.domain created in CC topology
>>>>>>>
>>>>>>> [2015-01-11 02:31:14,524]  INFO
>>>>>>> {org.apache.stratos.cloud.controller.messaging.topology.TopologyBuilder}
-
>>>>>>> Application Cluster phpgroup6.php.domain created in CC topology
>>>>>>>
>>>>>>> [2015-01-11 02:31:14,530]  INFO
>>>>>>> {org.apache.stratos.cloud.controller.messaging.publisher.TopologyEventPublisher}
>>>>>>> -  Publishing application clusters created event: [application-id]
>>>>>>> app_group_v2
>>>>>>>
>>>>>>> [2015-01-11 02:31:14,540]  INFO
>>>>>>> {org.apache.stratos.messaging.message.processor.topology.ApplicationClustersCreatedMessageProcessor}
>>>>>>> -  Cluster created:  [ Cluster Id: esbgroup6.esb.domain, Service
Name: esb,
>>>>>>> Autoscale Policy Name: autoscale_policy_1, Deployment Policy
Name: null,
>>>>>>> Tenant Range: *, Is a Kubernetes Cluster: false ]
>>>>>>>
>>>>>>> [2015-01-11 02:31:14,540]  INFO
>>>>>>> {org.apache.stratos.messaging.message.processor.topology.ApplicationClustersCreatedMessageProcessor}
>>>>>>> -  Cluster created:  [ Cluster Id: mytomcat.tomcat.domain, Service
Name:
>>>>>>> tomcat, Autoscale Policy Name: autoscale_policy_1, Deployment
Policy Name:
>>>>>>> null, Tenant Range: *, Is a Kubernetes Cluster: false ]
>>>>>>>
>>>>>>> [2015-01-11 02:31:14,540]  INFO
>>>>>>> {org.apache.stratos.messaging.message.processor.topology.ApplicationClustersCreatedMessageProcessor}
>>>>>>> -  Cluster created:  [ Cluster Id: phpgroup6.php.domain, Service
Name: php,
>>>>>>> Autoscale Policy Name: autoscale_policy_1, Deployment Policy
Name: null,
>>>>>>> Tenant Range: *, Is a Kubernetes Cluster: false ]
>>>>>>>
>>>>>>> [2015-01-11 02:31:14,540]  INFO
>>>>>>> {org.apache.stratos.autoscaler.event.receiver.topology.AutoscalerTopologyEventReceiver}
>>>>>>> -  [ApplicationClustersCreatedEvent] Received: class
>>>>>>> org.apache.stratos.messaging.event.topology.ApplicationClustersCreatedEvent
>>>>>>>
>>>>>>> [2015-01-11 02:31:14,546]  INFO
>>>>>>> {org.apache.stratos.messaging.domain.application.locking.ApplicationLockHierarchy}
>>>>>>> -  Added lock for Application app_group_v2
>>>>>>>
>>>>>>> [2015-01-11 02:31:14,561]  INFO
>>>>>>> {org.apache.stratos.autoscaler.client.CloudControllerClient}
-  Validating
>>>>>>> partitions of policy via cloud controller: [cartridge-type] tomcat
>>>>>>>
>>>>>>> [2015-01-11 02:31:14,564]  INFO
>>>>>>> {org.apache.stratos.messaging.message.processor.application.ApplicationCreatedMessageProcessor}
>>>>>>> -  Application with id [ app_group_v2 ] created
>>>>>>>
>>>>>>> [2015-01-11 02:31:14,577]  INFO
>>>>>>> {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
>>>>>>> -  All partitions [P1] were validated successfully, against the
Cartridge:
>>>>>>> tomcat
>>>>>>>
>>>>>>> [2015-01-11 02:31:14,585]  INFO
>>>>>>> {org.apache.stratos.autoscaler.client.CloudControllerClient}
-  Validating
>>>>>>> partitions of policy via cloud controller: [cartridge-type] esb
>>>>>>>
>>>>>>> [2015-01-11 02:31:14,595]  INFO
>>>>>>> {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
>>>>>>> -  All partitions [P1] were validated successfully, against the
Cartridge:
>>>>>>> esb
>>>>>>>
>>>>>>> [2015-01-11 02:31:14,597]  INFO
>>>>>>> {org.apache.stratos.autoscaler.client.CloudControllerClient}
-  Validating
>>>>>>> partitions of policy via cloud controller: [cartridge-type] php
>>>>>>>
>>>>>>> [2015-01-11 02:31:14,610]  INFO
>>>>>>> {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
>>>>>>> -  All partitions [P1] were validated successfully, against the
Cartridge:
>>>>>>> php
>>>>>>>
>>>>>>> [2015-01-11 02:31:14,619]  INFO
>>>>>>> {org.apache.stratos.autoscaler.pojo.policy.PolicyManager} - 
Deployment
>>>>>>> policy is added successfully: [application-id] app_group_v2
>>>>>>>
>>>>>>> [2015-01-11 02:31:14,620]  INFO
>>>>>>> {org.apache.stratos.autoscaler.services.impl.AutoScalerServiceImpl}
-
>>>>>>> Adding application signup: [application-id] app_group_v2
>>>>>>>
>>>>>>> [2015-01-11 02:31:14,634]  INFO
>>>>>>> {org.apache.stratos.manager.components.ApplicationSignUpHandler}
-  Adding
>>>>>>> application signup: [application-id] app_group_v2 [tenant-id]
-1234
>>>>>>>
>>>>>>> [2015-01-11 02:31:14,645]  INFO
>>>>>>> {org.apache.stratos.manager.components.ApplicationSignUpHandler}
-
>>>>>>> Application signup added successfully: [application-id] app_group_v2
>>>>>>> [tenant-id] -1234
>>>>>>>
>>>>>>> [2015-01-11 02:31:14,646]  INFO
>>>>>>> {org.apache.stratos.autoscaler.services.impl.AutoScalerServiceImpl}
-
>>>>>>> Application signup added successfully: [application-id] app_group_v2
>>>>>>>
>>>>>>> [2015-01-11 02:31:14,651]  INFO
>>>>>>> {org.apache.stratos.autoscaler.util.AutoscalerUtil} -  Application
monitor
>>>>>>> is going to be started for [application] app_group_v2
>>>>>>>
>>>>>>> [2015-01-11 02:31:14,653]  INFO
>>>>>>> {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} - 
Application
>>>>>>> deployed successfully: [application-id] app_group_v2
>>>>>>>
>>>>>>> [2015-01-11 02:31:14,659]  INFO
>>>>>>> {org.apache.stratos.autoscaler.applications.dependency.DependencyBuilder}
>>>>>>> -  Building dependency for the Application/Group app_group_v2
>>>>>>>
>>>>>>> [2015-01-11 02:31:14,659]  INFO
>>>>>>> {org.apache.stratos.autoscaler.applications.dependency.DependencyBuilder}
>>>>>>> -  Setting the [terminationBehaviour] terminate-none to the
>>>>>>> [dependency-tree] app_group_v2
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> --
>>>>>>> Lahiru Sandaruwan
>>>>>>> Committer and PMC member, Apache Stratos,
>>>>>>> Senior Software Engineer,
>>>>>>> WSO2 Inc., http://wso2.com
>>>>>>> lean.enterprise.middleware
>>>>>>>
>>>>>>> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
>>>>>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> --
>>>>>> Lahiru Sandaruwan
>>>>>> Committer and PMC member, Apache Stratos,
>>>>>> Senior Software Engineer,
>>>>>> WSO2 Inc., http://wso2.com
>>>>>> lean.enterprise.middleware
>>>>>>
>>>>>> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
>>>>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Imesh Gunaratne
>>>>>
>>>>> Technical Lead, WSO2
>>>>> Committer & PMC Member, Apache Stratos
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> --
>>>> Lahiru Sandaruwan
>>>> Committer and PMC member, Apache Stratos,
>>>> Senior Software Engineer,
>>>> WSO2 Inc., http://wso2.com
>>>> lean.enterprise.middleware
>>>>
>>>> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
>>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>>>
>>>>
>>>
>>>
>>> --
>>> --
>>> Lahiru Sandaruwan
>>> Committer and PMC member, Apache Stratos,
>>> Senior Software Engineer,
>>> WSO2 Inc., http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>>
>>>
>>
>>
>> --
>> --
>> Lahiru Sandaruwan
>> Committer and PMC member, Apache Stratos,
>> Senior Software Engineer,
>> WSO2 Inc., http://wso2.com
>> lean.enterprise.middleware
>>
>> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>
>>
>
>
> --
> --
> Lahiru Sandaruwan
> Committer and PMC member, Apache Stratos,
> Senior Software Engineer,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>


-- 
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Mime
View raw message