You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Udara Liyanage <ud...@wso2.com> on 2015/03/12 04:48:33 UTC

Mock IaaS stat publisher stops

Hi Imesh,

I started 10 php instances assuming all instances is sending its statistics
to CEP. However I noticed the below log which shows statistics updater is
stopped. after that no stat is logged.
Does this mean last sample value (20) is sent every time or stat publisher
is stopped. I guess the former one.



[2015-03-12 09:04:26,869]  INFO
{org.apache.stratos.messaging.message.receiver.instance.notifier.InstanceNotifierEventMessageDelegator}
-  Instance notifier event message delegator started
[2015-03-12 09:04:26,870]  INFO
{org.apache.stratos.cloud.controller.messaging.publisher.TopologyEventPublisher}
-  Publishing member activated event: [service-name] php [cluster-id]
single-cartridge-app.my-php.php.domain [cluster-instance-id]
single-cartridge-app-1 [member-id]
single-cartridge-app.my-php.php.domain1a5383c8-a9cc-4e2a-8864-399ce7c2dc03
[network-partition-id] network-partition-1 [partition-id] partition-1
[2015-03-12 09:04:26,881]  INFO
{org.apache.stratos.messaging.message.processor.topology.MemberActivatedMessageProcessor}
-  Member activated: [service] php [cluster]
single-cartridge-app.my-php.php.domain [member]
single-cartridge-app.my-php.php.domain1a5383c8-a9cc-4e2a-8864-399ce7c2dc03
[2015-03-12 09:04:26,881]  INFO
{org.apache.stratos.autoscaler.status.processor.cluster.ClusterStatusActiveProcessor}
-  Publishing cluster activated event for [application]:
single-cartridge-app [cluster]: single-cartridge-app.my-php.php.domain
[2015-03-12 09:04:26,890]  INFO
{org.apache.stratos.cloud.controller.messaging.topology.TopologyBuilder} -
 Cluster activated adding status started for
single-cartridge-app.my-php.php.domain
[2015-03-12 09:04:26,900]  INFO
{org.apache.stratos.cloud.controller.messaging.publisher.TopologyEventPublisher}
-  Publishing cluster activated event: [service-name] php [cluster-id]
single-cartridge-app.my-php.php.domain  [instance-id]
single-cartridge-app-1 [application-id] single-cartridge-app
[2015-03-12 09:04:26,913]  INFO
{org.apache.stratos.autoscaler.event.receiver.topology.AutoscalerTopologyEventReceiver}
-  [ClusterActivatedEvent] Received: class
org.apache.stratos.messaging.event.topology.ClusterInstanceActivatedEvent
[2015-03-12 09:04:26,913]  INFO
{org.apache.stratos.autoscaler.monitor.component.ParentComponentMonitor} -
 No more dependent monitors to be started for component: [type]
application[component] single-cartridge-app
[2015-03-12 09:04:26,913]  INFO
{org.apache.stratos.autoscaler.status.processor.group.GroupStatusActiveProcessor}
-  Sending application active for [application] single-cartridge-app
[instance] single-cartridge-app-1
[2015-03-12 09:04:26,923]  INFO
{org.apache.stratos.autoscaler.applications.topic.ApplicationsEventPublisher}
-  Publishing application active event: [application] single-cartridge-app
[instance] single-cartridge-app-1


[2015-03-12 09:04:58,190]  INFO
{org.apache.stratos.mock.iaas.statistics.generator.MockHealthStatisticsUpdater}
-  Continuing last sample value: [cartridge-type] php [factor]
MemoryConsumption [value] 20
[2015-03-12 09:04:58,191]  INFO
{org.apache.stratos.mock.iaas.statistics.generator.MockHealthStatisticsGenerator}
- * Mock statistics updater task stopped:* [service-name] php [factor]
MemoryConsumption

-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897

Re: Mock IaaS stat publisher stops

Posted by Imesh Gunaratne <im...@apache.org>.
Hi Udara,

The below log is printed when statistics publishing is stopped for a given
cartridge/scaling factor:

[2015-03-12 09:04:58,191]  INFO {org.apache.stratos.mock.iaas.
statistics.generator.MockHealthStatisticsGenerator} - * Mock statistics
updater task stopped:* [service-name] php [factor] MemoryConsumption

This means that you may have set statistics publishing pattern mode to
*stop*:

<pattern factor="memory-consumption" mode="*stop*">
                <!-- Sample values -->
                <sampleValues>20,30,40,50,60,70,50,40,30,20</sampleValues>
                <!-- Duration of each sample value in seconds -->
                <sampleDuration>60</sampleDuration>
            </pattern>

If you need to verify whether Mock IaaS publishes statistics for 10
instances, you could enable debug logs for *MockHealthStatisticsNotifier*
 class:

Thanks


On Thu, Mar 12, 2015 at 9:18 AM, Udara Liyanage <ud...@wso2.com> wrote:

> Hi Imesh,
>
> I started 10 php instances assuming all instances is sending its
> statistics to CEP. However I noticed the below log which shows statistics
> updater is stopped. after that no stat is logged.
> Does this mean last sample value (20) is sent every time or stat publisher
> is stopped. I guess the former one.
>
>
>
> [2015-03-12 09:04:26,869]  INFO
> {org.apache.stratos.messaging.message.receiver.instance.notifier.InstanceNotifierEventMessageDelegator}
> -  Instance notifier event message delegator started
> [2015-03-12 09:04:26,870]  INFO
> {org.apache.stratos.cloud.controller.messaging.publisher.TopologyEventPublisher}
> -  Publishing member activated event: [service-name] php [cluster-id]
> single-cartridge-app.my-php.php.domain [cluster-instance-id]
> single-cartridge-app-1 [member-id]
> single-cartridge-app.my-php.php.domain1a5383c8-a9cc-4e2a-8864-399ce7c2dc03
> [network-partition-id] network-partition-1 [partition-id] partition-1
> [2015-03-12 09:04:26,881]  INFO
> {org.apache.stratos.messaging.message.processor.topology.MemberActivatedMessageProcessor}
> -  Member activated: [service] php [cluster]
> single-cartridge-app.my-php.php.domain [member]
> single-cartridge-app.my-php.php.domain1a5383c8-a9cc-4e2a-8864-399ce7c2dc03
> [2015-03-12 09:04:26,881]  INFO
> {org.apache.stratos.autoscaler.status.processor.cluster.ClusterStatusActiveProcessor}
> -  Publishing cluster activated event for [application]:
> single-cartridge-app [cluster]: single-cartridge-app.my-php.php.domain
> [2015-03-12 09:04:26,890]  INFO
> {org.apache.stratos.cloud.controller.messaging.topology.TopologyBuilder} -
>  Cluster activated adding status started for
> single-cartridge-app.my-php.php.domain
> [2015-03-12 09:04:26,900]  INFO
> {org.apache.stratos.cloud.controller.messaging.publisher.TopologyEventPublisher}
> -  Publishing cluster activated event: [service-name] php [cluster-id]
> single-cartridge-app.my-php.php.domain  [instance-id]
> single-cartridge-app-1 [application-id] single-cartridge-app
> [2015-03-12 09:04:26,913]  INFO
> {org.apache.stratos.autoscaler.event.receiver.topology.AutoscalerTopologyEventReceiver}
> -  [ClusterActivatedEvent] Received: class
> org.apache.stratos.messaging.event.topology.ClusterInstanceActivatedEvent
> [2015-03-12 09:04:26,913]  INFO
> {org.apache.stratos.autoscaler.monitor.component.ParentComponentMonitor} -
>  No more dependent monitors to be started for component: [type]
> application[component] single-cartridge-app
> [2015-03-12 09:04:26,913]  INFO
> {org.apache.stratos.autoscaler.status.processor.group.GroupStatusActiveProcessor}
> -  Sending application active for [application] single-cartridge-app
> [instance] single-cartridge-app-1
> [2015-03-12 09:04:26,923]  INFO
> {org.apache.stratos.autoscaler.applications.topic.ApplicationsEventPublisher}
> -  Publishing application active event: [application] single-cartridge-app
> [instance] single-cartridge-app-1
>
>
> [2015-03-12 09:04:58,190]  INFO
> {org.apache.stratos.mock.iaas.statistics.generator.MockHealthStatisticsUpdater}
> -  Continuing last sample value: [cartridge-type] php [factor]
> MemoryConsumption [value] 20
> [2015-03-12 09:04:58,191]  INFO
> {org.apache.stratos.mock.iaas.statistics.generator.MockHealthStatisticsGenerator}
> - * Mock statistics updater task stopped:* [service-name] php [factor]
> MemoryConsumption
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>



-- 
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos