You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Lahiru Sandaruwan <la...@wso2.com> on 2014/01/11 17:41:05 UTC

CEP seems to be emiting stats even though there are no incoming requests...

$subject.

For e.g. there is no instances in the cluster
"lahiru123.isuruh.lk.php.domain " since the user has unsubscribed.
But Autoscaler has received a stat event [1]..

[1]
TID: [0] [Agent] [2014-01-11 16:34:39,696] ERROR
{org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver}
-  A cluster monitor is not found in autoscaler context [cluster]
lahiru123.isuruh.lk.php.domain
{org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver}
TID: [0] [Agent] [2014-01-11 16:34:39,696] ERROR
{org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator}
-  Failed to retrieve instance notifier event message
{org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator}
java.lang.RuntimeException: A monitor is not found for this cluster
at
org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver.handleMemberFaultEvent(AutoscalerHealthStatReceiver.java:1084)
 at
org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver.access$300(AutoscalerHealthStatReceiver.java:49)
at
org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver$9.onEvent(AutoscalerHealthStatReceiver.java:753)
 at
org.apache.stratos.messaging.listener.EventListener.update(EventListener.java:42)
at java.util.Observable.notifyObservers(Observable.java:142)
 at
org.apache.stratos.messaging.event.EventObservable.notifyEventListeners(EventObservable.java:51)
at
org.apache.stratos.messaging.message.processor.health.stat.MemberFaultMessageProcessor.process(MemberFaultMessageProcessor.java:50)
 at
org.apache.stratos.messaging.message.processor.health.stat.SecondDerivativeOfMemoryConsumptionMessageProcessor.process(SecondDerivativeOfMemoryConsumptionMessageProcessor.java:59)
 at
org.apache.stratos.messaging.message.processor.health.stat.GradientOfMemoryConsumptionMessageProcessor.process(GradientOfMemoryConsumptionMessageProcessor.java:58)
 at
org.apache.stratos.messaging.message.processor.health.stat.AverageMemoryConsumptionMessageProcessor.process(AverageMemoryConsumptionMessageProcessor.java:59)
 at
org.apache.stratos.messaging.message.processor.health.stat.SecondDerivativeOfLoadAverageMessageProcessor.process(SecondDerivativeOfLoadAverageMessageProcessor.java:59)
 at
org.apache.stratos.messaging.message.processor.health.stat.GradientOfLoadAverageMessageProcessor.process(GradientOfLoadAverageMessageProcessor.java:59)
at
org.apache.stratos.messaging.message.processor.health.stat.AverageLoadAverageMessageProcessor.process(AverageLoadAverageMessageProcessor.java:59)
 at
org.apache.stratos.messaging.message.processor.health.stat.SecondDerivativeOfRequestsInFlightMessageProcessor.process(SecondDerivativeOfRequestsInFlightMessageProcessor.java:59)
 at
org.apache.stratos.messaging.message.processor.health.stat.GradientOfRequestsInFlightMessageProcessor.process(GradientOfRequestsInFlightMessageProcessor.java:59)
 at
org.apache.stratos.messaging.message.processor.health.stat.AverageRequestsInFlightMessageProcessor.process(AverageRequestsInFlightMessageProcessor.java:59)
 at
org.apache.stratos.messaging.message.processor.health.stat.MemberSecondDerivativeOfMemoryConsumptionMessageProcessor.process(MemberSecondDerivativeOfMemoryConsumptionMessageProcessor.java:59)
 at
org.apache.stratos.messaging.message.processor.health.stat.MemberGradientOfMemoryConsumptionMessageProcessor.process(MemberGradientOfMemoryConsumptionMessageProcessor.java:60)
 at
org.apache.stratos.messaging.message.processor.health.stat.MemberAverageMemoryConsumptionMessageProcessor.process(MemberAverageMemoryConsumptionMessageProcessor.java:59)
 at
org.apache.stratos.messaging.message.processor.health.stat.MemberSecondDerivativeOfLoadAverageMessageProcessor.process(MemberSecondDerivativeOfLoadAverageMessageProcessor.java:59)
 at
org.apache.stratos.messaging.message.processor.health.stat.MemberGradientOfLoadAverageMessageProcessor.process(MemberGradientOfLoadAverageMessageProcessor.java:59)
 at
org.apache.stratos.messaging.message.processor.health.stat.MemberAverageLoadAverageMessageProcessor.process(MemberAverageLoadAverageMessageProcessor.java:59)
 at
org.apache.stratos.messaging.message.processor.MessageProcessorChain.process(MessageProcessorChain.java:60)
at
org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator.run(HealthStatEventMessageDelegator.java:79)
 at java.lang.Thread.run(Thread.java:662)


-- 
--
Lahiru Sandaruwan
Software Engineer,
Platform Technologies,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

email: lahirus@wso2.com cell: (+94) 773 325 954
blog: http://lahiruwrites.blogspot.com/
twitter: http://twitter.com/lahirus
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146

Re: CEP seems to be emiting stats even though there are no incoming requests...

Posted by Udara Liyanage <ud...@wso2.com>.
Agree with Nirmal.
AS should ignore messages from invalid members

Touched, not typed. Erroneous words are a feature, not a typo.
On Jan 11, 2014 10:47 PM, "Nirmal Fernando" <ni...@gmail.com> wrote:

> There's a possibility that CEP would emit an event in this scenario (since
> CEP aggregates events came in a specific time period). This cannot be
> solved at CEP end, I think the solution would be to discard events that are
> not relevant at Auto-scaler end. Wdyt?
>
>
> On Sat, Jan 11, 2014 at 10:11 PM, Lahiru Sandaruwan <la...@wso2.com>wrote:
>
>> $subject.
>>
>> For e.g. there is no instances in the cluster
>> "lahiru123.isuruh.lk.php.domain " since the user has unsubscribed.
>> But Autoscaler has received a stat event [1]..
>>
>> [1]
>> TID: [0] [Agent] [2014-01-11 16:34:39,696] ERROR
>> {org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver}
>> -  A cluster monitor is not found in autoscaler context [cluster]
>> lahiru123.isuruh.lk.php.domain
>> {org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver}
>> TID: [0] [Agent] [2014-01-11 16:34:39,696] ERROR
>> {org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator}
>> -  Failed to retrieve instance notifier event message
>> {org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator}
>> java.lang.RuntimeException: A monitor is not found for this cluster
>> at
>> org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver.handleMemberFaultEvent(AutoscalerHealthStatReceiver.java:1084)
>>  at
>> org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver.access$300(AutoscalerHealthStatReceiver.java:49)
>> at
>> org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver$9.onEvent(AutoscalerHealthStatReceiver.java:753)
>>  at
>> org.apache.stratos.messaging.listener.EventListener.update(EventListener.java:42)
>> at java.util.Observable.notifyObservers(Observable.java:142)
>>  at
>> org.apache.stratos.messaging.event.EventObservable.notifyEventListeners(EventObservable.java:51)
>> at
>> org.apache.stratos.messaging.message.processor.health.stat.MemberFaultMessageProcessor.process(MemberFaultMessageProcessor.java:50)
>>  at
>> org.apache.stratos.messaging.message.processor.health.stat.SecondDerivativeOfMemoryConsumptionMessageProcessor.process(SecondDerivativeOfMemoryConsumptionMessageProcessor.java:59)
>>  at
>> org.apache.stratos.messaging.message.processor.health.stat.GradientOfMemoryConsumptionMessageProcessor.process(GradientOfMemoryConsumptionMessageProcessor.java:58)
>>  at
>> org.apache.stratos.messaging.message.processor.health.stat.AverageMemoryConsumptionMessageProcessor.process(AverageMemoryConsumptionMessageProcessor.java:59)
>>  at
>> org.apache.stratos.messaging.message.processor.health.stat.SecondDerivativeOfLoadAverageMessageProcessor.process(SecondDerivativeOfLoadAverageMessageProcessor.java:59)
>>  at
>> org.apache.stratos.messaging.message.processor.health.stat.GradientOfLoadAverageMessageProcessor.process(GradientOfLoadAverageMessageProcessor.java:59)
>> at
>> org.apache.stratos.messaging.message.processor.health.stat.AverageLoadAverageMessageProcessor.process(AverageLoadAverageMessageProcessor.java:59)
>>  at
>> org.apache.stratos.messaging.message.processor.health.stat.SecondDerivativeOfRequestsInFlightMessageProcessor.process(SecondDerivativeOfRequestsInFlightMessageProcessor.java:59)
>>  at
>> org.apache.stratos.messaging.message.processor.health.stat.GradientOfRequestsInFlightMessageProcessor.process(GradientOfRequestsInFlightMessageProcessor.java:59)
>>  at
>> org.apache.stratos.messaging.message.processor.health.stat.AverageRequestsInFlightMessageProcessor.process(AverageRequestsInFlightMessageProcessor.java:59)
>>  at
>> org.apache.stratos.messaging.message.processor.health.stat.MemberSecondDerivativeOfMemoryConsumptionMessageProcessor.process(MemberSecondDerivativeOfMemoryConsumptionMessageProcessor.java:59)
>>  at
>> org.apache.stratos.messaging.message.processor.health.stat.MemberGradientOfMemoryConsumptionMessageProcessor.process(MemberGradientOfMemoryConsumptionMessageProcessor.java:60)
>>  at
>> org.apache.stratos.messaging.message.processor.health.stat.MemberAverageMemoryConsumptionMessageProcessor.process(MemberAverageMemoryConsumptionMessageProcessor.java:59)
>>  at
>> org.apache.stratos.messaging.message.processor.health.stat.MemberSecondDerivativeOfLoadAverageMessageProcessor.process(MemberSecondDerivativeOfLoadAverageMessageProcessor.java:59)
>>  at
>> org.apache.stratos.messaging.message.processor.health.stat.MemberGradientOfLoadAverageMessageProcessor.process(MemberGradientOfLoadAverageMessageProcessor.java:59)
>>  at
>> org.apache.stratos.messaging.message.processor.health.stat.MemberAverageLoadAverageMessageProcessor.process(MemberAverageLoadAverageMessageProcessor.java:59)
>>  at
>> org.apache.stratos.messaging.message.processor.MessageProcessorChain.process(MessageProcessorChain.java:60)
>> at
>> org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator.run(HealthStatEventMessageDelegator.java:79)
>>  at java.lang.Thread.run(Thread.java:662)
>>
>>
>> --
>> --
>> Lahiru Sandaruwan
>> Software Engineer,
>> Platform Technologies,
>> WSO2 Inc., http://wso2.com
>> lean.enterprise.middleware
>>
>> email: lahirus@wso2.com cell: (+94) 773 325 954
>> blog: http://lahiruwrites.blogspot.com/
>> twitter: http://twitter.com/lahirus
>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>
>>
>
>
> --
> Best Regards,
> Nirmal
>
> Nirmal Fernando.
> PPMC Member & Committer of Apache Stratos,
> Senior Software Engineer, WSO2 Inc.
>
> Blog: http://nirmalfdo.blogspot.com/
>

Re: CEP seems to be emiting stats even though there are no incoming requests...

Posted by Lahiru Sandaruwan <la...@wso2.com>.
Yep, Agree with you guys.. will make this log debug..


On Sun, Jan 12, 2014 at 12:39 PM, Nirmal Fernando <ni...@gmail.com>wrote:

> Hi All,
>
> Will someone get concerned after seen a warning or an error, in this case?
> IMO if this is of no harm and not require any attention, we could just make
> it a debug log. But it really depends on the scenario and we need to
> examine.
>
>
> On Sat, Jan 11, 2014 at 11:49 PM, Lahiru Sandaruwan <la...@wso2.com>wrote:
>
>>
>>
>>
>> On Sat, Jan 11, 2014 at 11:22 PM, Isuru Perera <is...@wso2.com> wrote:
>>
>>> Then I think you can just log a warning message instead of logging an
>>> error message with stack trace.
>>>
>>>
>> +1 for getting rid of stack trace... IMO it should be an error level
>> log...
>>
>>
>>>
>>> On Sat, Jan 11, 2014 at 11:13 PM, Lahiru Sandaruwan <la...@wso2.com>wrote:
>>>
>>>>
>>>>
>>>>
>>>> On Sat, Jan 11, 2014 at 10:46 PM, Nirmal Fernando <
>>>> nirmal070125@gmail.com> wrote:
>>>>
>>>>> There's a possibility that CEP would emit an event in this scenario
>>>>> (since CEP aggregates events came in a specific time period). This cannot
>>>>> be solved at CEP end, I think the solution would be to discard events that
>>>>> are not relevant at Auto-scaler end. Wdyt?
>>>>>
>>>>
>>>> Yeah. Actually it happens already. Since the cluster monitor is not
>>>> there, it just prints this error message..
>>>>
>>>>>
>>>>>
>>>>> On Sat, Jan 11, 2014 at 10:11 PM, Lahiru Sandaruwan <la...@wso2.com>wrote:
>>>>>
>>>>>> $subject.
>>>>>>
>>>>>> For e.g. there is no instances in the cluster
>>>>>> "lahiru123.isuruh.lk.php.domain " since the user has unsubscribed.
>>>>>> But Autoscaler has received a stat event [1]..
>>>>>>
>>>>>> [1]
>>>>>> TID: [0] [Agent] [2014-01-11 16:34:39,696] ERROR
>>>>>> {org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver}
>>>>>> -  A cluster monitor is not found in autoscaler context [cluster]
>>>>>> lahiru123.isuruh.lk.php.domain
>>>>>> {org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver}
>>>>>> TID: [0] [Agent] [2014-01-11 16:34:39,696] ERROR
>>>>>> {org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator}
>>>>>> -  Failed to retrieve instance notifier event message
>>>>>> {org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator}
>>>>>> java.lang.RuntimeException: A monitor is not found for this cluster
>>>>>> at
>>>>>> org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver.handleMemberFaultEvent(AutoscalerHealthStatReceiver.java:1084)
>>>>>>  at
>>>>>> org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver.access$300(AutoscalerHealthStatReceiver.java:49)
>>>>>> at
>>>>>> org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver$9.onEvent(AutoscalerHealthStatReceiver.java:753)
>>>>>>  at
>>>>>> org.apache.stratos.messaging.listener.EventListener.update(EventListener.java:42)
>>>>>> at java.util.Observable.notifyObservers(Observable.java:142)
>>>>>>  at
>>>>>> org.apache.stratos.messaging.event.EventObservable.notifyEventListeners(EventObservable.java:51)
>>>>>> at
>>>>>> org.apache.stratos.messaging.message.processor.health.stat.MemberFaultMessageProcessor.process(MemberFaultMessageProcessor.java:50)
>>>>>>  at
>>>>>> org.apache.stratos.messaging.message.processor.health.stat.SecondDerivativeOfMemoryConsumptionMessageProcessor.process(SecondDerivativeOfMemoryConsumptionMessageProcessor.java:59)
>>>>>>  at
>>>>>> org.apache.stratos.messaging.message.processor.health.stat.GradientOfMemoryConsumptionMessageProcessor.process(GradientOfMemoryConsumptionMessageProcessor.java:58)
>>>>>>  at
>>>>>> org.apache.stratos.messaging.message.processor.health.stat.AverageMemoryConsumptionMessageProcessor.process(AverageMemoryConsumptionMessageProcessor.java:59)
>>>>>>  at
>>>>>> org.apache.stratos.messaging.message.processor.health.stat.SecondDerivativeOfLoadAverageMessageProcessor.process(SecondDerivativeOfLoadAverageMessageProcessor.java:59)
>>>>>>  at
>>>>>> org.apache.stratos.messaging.message.processor.health.stat.GradientOfLoadAverageMessageProcessor.process(GradientOfLoadAverageMessageProcessor.java:59)
>>>>>> at
>>>>>> org.apache.stratos.messaging.message.processor.health.stat.AverageLoadAverageMessageProcessor.process(AverageLoadAverageMessageProcessor.java:59)
>>>>>>  at
>>>>>> org.apache.stratos.messaging.message.processor.health.stat.SecondDerivativeOfRequestsInFlightMessageProcessor.process(SecondDerivativeOfRequestsInFlightMessageProcessor.java:59)
>>>>>>  at
>>>>>> org.apache.stratos.messaging.message.processor.health.stat.GradientOfRequestsInFlightMessageProcessor.process(GradientOfRequestsInFlightMessageProcessor.java:59)
>>>>>>  at
>>>>>> org.apache.stratos.messaging.message.processor.health.stat.AverageRequestsInFlightMessageProcessor.process(AverageRequestsInFlightMessageProcessor.java:59)
>>>>>>  at
>>>>>> org.apache.stratos.messaging.message.processor.health.stat.MemberSecondDerivativeOfMemoryConsumptionMessageProcessor.process(MemberSecondDerivativeOfMemoryConsumptionMessageProcessor.java:59)
>>>>>>  at
>>>>>> org.apache.stratos.messaging.message.processor.health.stat.MemberGradientOfMemoryConsumptionMessageProcessor.process(MemberGradientOfMemoryConsumptionMessageProcessor.java:60)
>>>>>>  at
>>>>>> org.apache.stratos.messaging.message.processor.health.stat.MemberAverageMemoryConsumptionMessageProcessor.process(MemberAverageMemoryConsumptionMessageProcessor.java:59)
>>>>>>  at
>>>>>> org.apache.stratos.messaging.message.processor.health.stat.MemberSecondDerivativeOfLoadAverageMessageProcessor.process(MemberSecondDerivativeOfLoadAverageMessageProcessor.java:59)
>>>>>>  at
>>>>>> org.apache.stratos.messaging.message.processor.health.stat.MemberGradientOfLoadAverageMessageProcessor.process(MemberGradientOfLoadAverageMessageProcessor.java:59)
>>>>>>  at
>>>>>> org.apache.stratos.messaging.message.processor.health.stat.MemberAverageLoadAverageMessageProcessor.process(MemberAverageLoadAverageMessageProcessor.java:59)
>>>>>>  at
>>>>>> org.apache.stratos.messaging.message.processor.MessageProcessorChain.process(MessageProcessorChain.java:60)
>>>>>> at
>>>>>> org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator.run(HealthStatEventMessageDelegator.java:79)
>>>>>>  at java.lang.Thread.run(Thread.java:662)
>>>>>>
>>>>>>
>>>>>> --
>>>>>> --
>>>>>> Lahiru Sandaruwan
>>>>>> Software Engineer,
>>>>>> Platform Technologies,
>>>>>> WSO2 Inc., http://wso2.com
>>>>>> lean.enterprise.middleware
>>>>>>
>>>>>> email: lahirus@wso2.com cell: (+94) 773 325 954
>>>>>> blog: http://lahiruwrites.blogspot.com/
>>>>>> twitter: http://twitter.com/lahirus
>>>>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Best Regards,
>>>>> Nirmal
>>>>>
>>>>> Nirmal Fernando.
>>>>> PPMC Member & Committer of Apache Stratos,
>>>>> Senior Software Engineer, WSO2 Inc.
>>>>>
>>>>> Blog: http://nirmalfdo.blogspot.com/
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> --
>>>> Lahiru Sandaruwan
>>>> Software Engineer,
>>>> Platform Technologies,
>>>> WSO2 Inc., http://wso2.com
>>>> lean.enterprise.middleware
>>>>
>>>> email: lahirus@wso2.com cell: (+94) 773 325 954
>>>> blog: http://lahiruwrites.blogspot.com/
>>>> twitter: http://twitter.com/lahirus
>>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>>>
>>>>
>>>
>>>
>>> --
>>> Isuru Perera
>>> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
>>> Lean . Enterprise . Middleware
>>>
>>> about.me/chrishantha
>>>
>>
>>
>>
>> --
>> --
>> Lahiru Sandaruwan
>> Software Engineer,
>> Platform Technologies,
>> WSO2 Inc., http://wso2.com
>> lean.enterprise.middleware
>>
>> email: lahirus@wso2.com cell: (+94) 773 325 954
>> blog: http://lahiruwrites.blogspot.com/
>> twitter: http://twitter.com/lahirus
>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>
>>
>
>
> --
> Best Regards,
> Nirmal
>
> Nirmal Fernando.
> PPMC Member & Committer of Apache Stratos,
> Senior Software Engineer, WSO2 Inc.
>
> Blog: http://nirmalfdo.blogspot.com/
>



-- 
--
Lahiru Sandaruwan
Software Engineer,
Platform Technologies,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

email: lahirus@wso2.com cell: (+94) 773 325 954
blog: http://lahiruwrites.blogspot.com/
twitter: http://twitter.com/lahirus
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146

Re: CEP seems to be emiting stats even though there are no incoming requests...

Posted by Nirmal Fernando <ni...@gmail.com>.
Hi All,

Will someone get concerned after seen a warning or an error, in this case?
IMO if this is of no harm and not require any attention, we could just make
it a debug log. But it really depends on the scenario and we need to
examine.


On Sat, Jan 11, 2014 at 11:49 PM, Lahiru Sandaruwan <la...@wso2.com>wrote:

>
>
>
> On Sat, Jan 11, 2014 at 11:22 PM, Isuru Perera <is...@wso2.com> wrote:
>
>> Then I think you can just log a warning message instead of logging an
>> error message with stack trace.
>>
>>
> +1 for getting rid of stack trace... IMO it should be an error level log...
>
>
>>
>> On Sat, Jan 11, 2014 at 11:13 PM, Lahiru Sandaruwan <la...@wso2.com>wrote:
>>
>>>
>>>
>>>
>>> On Sat, Jan 11, 2014 at 10:46 PM, Nirmal Fernando <
>>> nirmal070125@gmail.com> wrote:
>>>
>>>> There's a possibility that CEP would emit an event in this scenario
>>>> (since CEP aggregates events came in a specific time period). This cannot
>>>> be solved at CEP end, I think the solution would be to discard events that
>>>> are not relevant at Auto-scaler end. Wdyt?
>>>>
>>>
>>> Yeah. Actually it happens already. Since the cluster monitor is not
>>> there, it just prints this error message..
>>>
>>>>
>>>>
>>>> On Sat, Jan 11, 2014 at 10:11 PM, Lahiru Sandaruwan <la...@wso2.com>wrote:
>>>>
>>>>> $subject.
>>>>>
>>>>> For e.g. there is no instances in the cluster
>>>>> "lahiru123.isuruh.lk.php.domain " since the user has unsubscribed.
>>>>> But Autoscaler has received a stat event [1]..
>>>>>
>>>>> [1]
>>>>> TID: [0] [Agent] [2014-01-11 16:34:39,696] ERROR
>>>>> {org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver}
>>>>> -  A cluster monitor is not found in autoscaler context [cluster]
>>>>> lahiru123.isuruh.lk.php.domain
>>>>> {org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver}
>>>>> TID: [0] [Agent] [2014-01-11 16:34:39,696] ERROR
>>>>> {org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator}
>>>>> -  Failed to retrieve instance notifier event message
>>>>> {org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator}
>>>>> java.lang.RuntimeException: A monitor is not found for this cluster
>>>>> at
>>>>> org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver.handleMemberFaultEvent(AutoscalerHealthStatReceiver.java:1084)
>>>>>  at
>>>>> org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver.access$300(AutoscalerHealthStatReceiver.java:49)
>>>>> at
>>>>> org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver$9.onEvent(AutoscalerHealthStatReceiver.java:753)
>>>>>  at
>>>>> org.apache.stratos.messaging.listener.EventListener.update(EventListener.java:42)
>>>>> at java.util.Observable.notifyObservers(Observable.java:142)
>>>>>  at
>>>>> org.apache.stratos.messaging.event.EventObservable.notifyEventListeners(EventObservable.java:51)
>>>>> at
>>>>> org.apache.stratos.messaging.message.processor.health.stat.MemberFaultMessageProcessor.process(MemberFaultMessageProcessor.java:50)
>>>>>  at
>>>>> org.apache.stratos.messaging.message.processor.health.stat.SecondDerivativeOfMemoryConsumptionMessageProcessor.process(SecondDerivativeOfMemoryConsumptionMessageProcessor.java:59)
>>>>>  at
>>>>> org.apache.stratos.messaging.message.processor.health.stat.GradientOfMemoryConsumptionMessageProcessor.process(GradientOfMemoryConsumptionMessageProcessor.java:58)
>>>>>  at
>>>>> org.apache.stratos.messaging.message.processor.health.stat.AverageMemoryConsumptionMessageProcessor.process(AverageMemoryConsumptionMessageProcessor.java:59)
>>>>>  at
>>>>> org.apache.stratos.messaging.message.processor.health.stat.SecondDerivativeOfLoadAverageMessageProcessor.process(SecondDerivativeOfLoadAverageMessageProcessor.java:59)
>>>>>  at
>>>>> org.apache.stratos.messaging.message.processor.health.stat.GradientOfLoadAverageMessageProcessor.process(GradientOfLoadAverageMessageProcessor.java:59)
>>>>> at
>>>>> org.apache.stratos.messaging.message.processor.health.stat.AverageLoadAverageMessageProcessor.process(AverageLoadAverageMessageProcessor.java:59)
>>>>>  at
>>>>> org.apache.stratos.messaging.message.processor.health.stat.SecondDerivativeOfRequestsInFlightMessageProcessor.process(SecondDerivativeOfRequestsInFlightMessageProcessor.java:59)
>>>>>  at
>>>>> org.apache.stratos.messaging.message.processor.health.stat.GradientOfRequestsInFlightMessageProcessor.process(GradientOfRequestsInFlightMessageProcessor.java:59)
>>>>>  at
>>>>> org.apache.stratos.messaging.message.processor.health.stat.AverageRequestsInFlightMessageProcessor.process(AverageRequestsInFlightMessageProcessor.java:59)
>>>>>  at
>>>>> org.apache.stratos.messaging.message.processor.health.stat.MemberSecondDerivativeOfMemoryConsumptionMessageProcessor.process(MemberSecondDerivativeOfMemoryConsumptionMessageProcessor.java:59)
>>>>>  at
>>>>> org.apache.stratos.messaging.message.processor.health.stat.MemberGradientOfMemoryConsumptionMessageProcessor.process(MemberGradientOfMemoryConsumptionMessageProcessor.java:60)
>>>>>  at
>>>>> org.apache.stratos.messaging.message.processor.health.stat.MemberAverageMemoryConsumptionMessageProcessor.process(MemberAverageMemoryConsumptionMessageProcessor.java:59)
>>>>>  at
>>>>> org.apache.stratos.messaging.message.processor.health.stat.MemberSecondDerivativeOfLoadAverageMessageProcessor.process(MemberSecondDerivativeOfLoadAverageMessageProcessor.java:59)
>>>>>  at
>>>>> org.apache.stratos.messaging.message.processor.health.stat.MemberGradientOfLoadAverageMessageProcessor.process(MemberGradientOfLoadAverageMessageProcessor.java:59)
>>>>>  at
>>>>> org.apache.stratos.messaging.message.processor.health.stat.MemberAverageLoadAverageMessageProcessor.process(MemberAverageLoadAverageMessageProcessor.java:59)
>>>>>  at
>>>>> org.apache.stratos.messaging.message.processor.MessageProcessorChain.process(MessageProcessorChain.java:60)
>>>>> at
>>>>> org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator.run(HealthStatEventMessageDelegator.java:79)
>>>>>  at java.lang.Thread.run(Thread.java:662)
>>>>>
>>>>>
>>>>> --
>>>>> --
>>>>> Lahiru Sandaruwan
>>>>> Software Engineer,
>>>>> Platform Technologies,
>>>>> WSO2 Inc., http://wso2.com
>>>>> lean.enterprise.middleware
>>>>>
>>>>> email: lahirus@wso2.com cell: (+94) 773 325 954
>>>>> blog: http://lahiruwrites.blogspot.com/
>>>>> twitter: http://twitter.com/lahirus
>>>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Best Regards,
>>>> Nirmal
>>>>
>>>> Nirmal Fernando.
>>>> PPMC Member & Committer of Apache Stratos,
>>>> Senior Software Engineer, WSO2 Inc.
>>>>
>>>> Blog: http://nirmalfdo.blogspot.com/
>>>>
>>>
>>>
>>>
>>> --
>>> --
>>> Lahiru Sandaruwan
>>> Software Engineer,
>>> Platform Technologies,
>>> WSO2 Inc., http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> email: lahirus@wso2.com cell: (+94) 773 325 954
>>> blog: http://lahiruwrites.blogspot.com/
>>> twitter: http://twitter.com/lahirus
>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>>
>>>
>>
>>
>> --
>> Isuru Perera
>> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> about.me/chrishantha
>>
>
>
>
> --
> --
> Lahiru Sandaruwan
> Software Engineer,
> Platform Technologies,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> email: lahirus@wso2.com cell: (+94) 773 325 954
> blog: http://lahiruwrites.blogspot.com/
> twitter: http://twitter.com/lahirus
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>


-- 
Best Regards,
Nirmal

Nirmal Fernando.
PPMC Member & Committer of Apache Stratos,
Senior Software Engineer, WSO2 Inc.

Blog: http://nirmalfdo.blogspot.com/

Re: CEP seems to be emiting stats even though there are no incoming requests...

Posted by Lahiru Sandaruwan <la...@wso2.com>.
On Sat, Jan 11, 2014 at 11:22 PM, Isuru Perera <is...@wso2.com> wrote:

> Then I think you can just log a warning message instead of logging an
> error message with stack trace.
>
>
+1 for getting rid of stack trace... IMO it should be an error level log...


>
> On Sat, Jan 11, 2014 at 11:13 PM, Lahiru Sandaruwan <la...@wso2.com>wrote:
>
>>
>>
>>
>> On Sat, Jan 11, 2014 at 10:46 PM, Nirmal Fernando <nirmal070125@gmail.com
>> > wrote:
>>
>>> There's a possibility that CEP would emit an event in this scenario
>>> (since CEP aggregates events came in a specific time period). This cannot
>>> be solved at CEP end, I think the solution would be to discard events that
>>> are not relevant at Auto-scaler end. Wdyt?
>>>
>>
>> Yeah. Actually it happens already. Since the cluster monitor is not
>> there, it just prints this error message..
>>
>>>
>>>
>>> On Sat, Jan 11, 2014 at 10:11 PM, Lahiru Sandaruwan <la...@wso2.com>wrote:
>>>
>>>> $subject.
>>>>
>>>> For e.g. there is no instances in the cluster
>>>> "lahiru123.isuruh.lk.php.domain " since the user has unsubscribed.
>>>> But Autoscaler has received a stat event [1]..
>>>>
>>>> [1]
>>>> TID: [0] [Agent] [2014-01-11 16:34:39,696] ERROR
>>>> {org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver}
>>>> -  A cluster monitor is not found in autoscaler context [cluster]
>>>> lahiru123.isuruh.lk.php.domain
>>>> {org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver}
>>>> TID: [0] [Agent] [2014-01-11 16:34:39,696] ERROR
>>>> {org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator}
>>>> -  Failed to retrieve instance notifier event message
>>>> {org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator}
>>>> java.lang.RuntimeException: A monitor is not found for this cluster
>>>> at
>>>> org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver.handleMemberFaultEvent(AutoscalerHealthStatReceiver.java:1084)
>>>>  at
>>>> org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver.access$300(AutoscalerHealthStatReceiver.java:49)
>>>> at
>>>> org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver$9.onEvent(AutoscalerHealthStatReceiver.java:753)
>>>>  at
>>>> org.apache.stratos.messaging.listener.EventListener.update(EventListener.java:42)
>>>> at java.util.Observable.notifyObservers(Observable.java:142)
>>>>  at
>>>> org.apache.stratos.messaging.event.EventObservable.notifyEventListeners(EventObservable.java:51)
>>>> at
>>>> org.apache.stratos.messaging.message.processor.health.stat.MemberFaultMessageProcessor.process(MemberFaultMessageProcessor.java:50)
>>>>  at
>>>> org.apache.stratos.messaging.message.processor.health.stat.SecondDerivativeOfMemoryConsumptionMessageProcessor.process(SecondDerivativeOfMemoryConsumptionMessageProcessor.java:59)
>>>>  at
>>>> org.apache.stratos.messaging.message.processor.health.stat.GradientOfMemoryConsumptionMessageProcessor.process(GradientOfMemoryConsumptionMessageProcessor.java:58)
>>>>  at
>>>> org.apache.stratos.messaging.message.processor.health.stat.AverageMemoryConsumptionMessageProcessor.process(AverageMemoryConsumptionMessageProcessor.java:59)
>>>>  at
>>>> org.apache.stratos.messaging.message.processor.health.stat.SecondDerivativeOfLoadAverageMessageProcessor.process(SecondDerivativeOfLoadAverageMessageProcessor.java:59)
>>>>  at
>>>> org.apache.stratos.messaging.message.processor.health.stat.GradientOfLoadAverageMessageProcessor.process(GradientOfLoadAverageMessageProcessor.java:59)
>>>> at
>>>> org.apache.stratos.messaging.message.processor.health.stat.AverageLoadAverageMessageProcessor.process(AverageLoadAverageMessageProcessor.java:59)
>>>>  at
>>>> org.apache.stratos.messaging.message.processor.health.stat.SecondDerivativeOfRequestsInFlightMessageProcessor.process(SecondDerivativeOfRequestsInFlightMessageProcessor.java:59)
>>>>  at
>>>> org.apache.stratos.messaging.message.processor.health.stat.GradientOfRequestsInFlightMessageProcessor.process(GradientOfRequestsInFlightMessageProcessor.java:59)
>>>>  at
>>>> org.apache.stratos.messaging.message.processor.health.stat.AverageRequestsInFlightMessageProcessor.process(AverageRequestsInFlightMessageProcessor.java:59)
>>>>  at
>>>> org.apache.stratos.messaging.message.processor.health.stat.MemberSecondDerivativeOfMemoryConsumptionMessageProcessor.process(MemberSecondDerivativeOfMemoryConsumptionMessageProcessor.java:59)
>>>>  at
>>>> org.apache.stratos.messaging.message.processor.health.stat.MemberGradientOfMemoryConsumptionMessageProcessor.process(MemberGradientOfMemoryConsumptionMessageProcessor.java:60)
>>>>  at
>>>> org.apache.stratos.messaging.message.processor.health.stat.MemberAverageMemoryConsumptionMessageProcessor.process(MemberAverageMemoryConsumptionMessageProcessor.java:59)
>>>>  at
>>>> org.apache.stratos.messaging.message.processor.health.stat.MemberSecondDerivativeOfLoadAverageMessageProcessor.process(MemberSecondDerivativeOfLoadAverageMessageProcessor.java:59)
>>>>  at
>>>> org.apache.stratos.messaging.message.processor.health.stat.MemberGradientOfLoadAverageMessageProcessor.process(MemberGradientOfLoadAverageMessageProcessor.java:59)
>>>>  at
>>>> org.apache.stratos.messaging.message.processor.health.stat.MemberAverageLoadAverageMessageProcessor.process(MemberAverageLoadAverageMessageProcessor.java:59)
>>>>  at
>>>> org.apache.stratos.messaging.message.processor.MessageProcessorChain.process(MessageProcessorChain.java:60)
>>>> at
>>>> org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator.run(HealthStatEventMessageDelegator.java:79)
>>>>  at java.lang.Thread.run(Thread.java:662)
>>>>
>>>>
>>>> --
>>>> --
>>>> Lahiru Sandaruwan
>>>> Software Engineer,
>>>> Platform Technologies,
>>>> WSO2 Inc., http://wso2.com
>>>> lean.enterprise.middleware
>>>>
>>>> email: lahirus@wso2.com cell: (+94) 773 325 954
>>>> blog: http://lahiruwrites.blogspot.com/
>>>> twitter: http://twitter.com/lahirus
>>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>>>
>>>>
>>>
>>>
>>> --
>>> Best Regards,
>>> Nirmal
>>>
>>> Nirmal Fernando.
>>> PPMC Member & Committer of Apache Stratos,
>>> Senior Software Engineer, WSO2 Inc.
>>>
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>
>>
>>
>> --
>> --
>> Lahiru Sandaruwan
>> Software Engineer,
>> Platform Technologies,
>> WSO2 Inc., http://wso2.com
>> lean.enterprise.middleware
>>
>> email: lahirus@wso2.com cell: (+94) 773 325 954
>> blog: http://lahiruwrites.blogspot.com/
>> twitter: http://twitter.com/lahirus
>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>
>>
>
>
> --
> Isuru Perera
> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
>



-- 
--
Lahiru Sandaruwan
Software Engineer,
Platform Technologies,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

email: lahirus@wso2.com cell: (+94) 773 325 954
blog: http://lahiruwrites.blogspot.com/
twitter: http://twitter.com/lahirus
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146

Re: CEP seems to be emiting stats even though there are no incoming requests...

Posted by Isuru Haththotuwa <is...@wso2.com>.
On Sat, Jan 11, 2014 at 11:22 PM, Isuru Perera <is...@wso2.com> wrote:

> Then I think you can just log a warning message instead of logging an
> error message with stack trace.
>
+1

>
>
> On Sat, Jan 11, 2014 at 11:13 PM, Lahiru Sandaruwan <la...@wso2.com>wrote:
>
>>
>>
>>
>> On Sat, Jan 11, 2014 at 10:46 PM, Nirmal Fernando <nirmal070125@gmail.com
>> > wrote:
>>
>>> There's a possibility that CEP would emit an event in this scenario
>>> (since CEP aggregates events came in a specific time period). This cannot
>>> be solved at CEP end, I think the solution would be to discard events that
>>> are not relevant at Auto-scaler end. Wdyt?
>>>
>>
>> Yeah. Actually it happens already. Since the cluster monitor is not
>> there, it just prints this error message..
>>
>>>
>>>
>>> On Sat, Jan 11, 2014 at 10:11 PM, Lahiru Sandaruwan <la...@wso2.com>wrote:
>>>
>>>> $subject.
>>>>
>>>> For e.g. there is no instances in the cluster
>>>> "lahiru123.isuruh.lk.php.domain " since the user has unsubscribed.
>>>> But Autoscaler has received a stat event [1]..
>>>>
>>>> [1]
>>>> TID: [0] [Agent] [2014-01-11 16:34:39,696] ERROR
>>>> {org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver}
>>>> -  A cluster monitor is not found in autoscaler context [cluster]
>>>> lahiru123.isuruh.lk.php.domain
>>>> {org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver}
>>>> TID: [0] [Agent] [2014-01-11 16:34:39,696] ERROR
>>>> {org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator}
>>>> -  Failed to retrieve instance notifier event message
>>>> {org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator}
>>>> java.lang.RuntimeException: A monitor is not found for this cluster
>>>> at
>>>> org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver.handleMemberFaultEvent(AutoscalerHealthStatReceiver.java:1084)
>>>>  at
>>>> org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver.access$300(AutoscalerHealthStatReceiver.java:49)
>>>> at
>>>> org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver$9.onEvent(AutoscalerHealthStatReceiver.java:753)
>>>>  at
>>>> org.apache.stratos.messaging.listener.EventListener.update(EventListener.java:42)
>>>> at java.util.Observable.notifyObservers(Observable.java:142)
>>>>  at
>>>> org.apache.stratos.messaging.event.EventObservable.notifyEventListeners(EventObservable.java:51)
>>>> at
>>>> org.apache.stratos.messaging.message.processor.health.stat.MemberFaultMessageProcessor.process(MemberFaultMessageProcessor.java:50)
>>>>  at
>>>> org.apache.stratos.messaging.message.processor.health.stat.SecondDerivativeOfMemoryConsumptionMessageProcessor.process(SecondDerivativeOfMemoryConsumptionMessageProcessor.java:59)
>>>>  at
>>>> org.apache.stratos.messaging.message.processor.health.stat.GradientOfMemoryConsumptionMessageProcessor.process(GradientOfMemoryConsumptionMessageProcessor.java:58)
>>>>  at
>>>> org.apache.stratos.messaging.message.processor.health.stat.AverageMemoryConsumptionMessageProcessor.process(AverageMemoryConsumptionMessageProcessor.java:59)
>>>>  at
>>>> org.apache.stratos.messaging.message.processor.health.stat.SecondDerivativeOfLoadAverageMessageProcessor.process(SecondDerivativeOfLoadAverageMessageProcessor.java:59)
>>>>  at
>>>> org.apache.stratos.messaging.message.processor.health.stat.GradientOfLoadAverageMessageProcessor.process(GradientOfLoadAverageMessageProcessor.java:59)
>>>> at
>>>> org.apache.stratos.messaging.message.processor.health.stat.AverageLoadAverageMessageProcessor.process(AverageLoadAverageMessageProcessor.java:59)
>>>>  at
>>>> org.apache.stratos.messaging.message.processor.health.stat.SecondDerivativeOfRequestsInFlightMessageProcessor.process(SecondDerivativeOfRequestsInFlightMessageProcessor.java:59)
>>>>  at
>>>> org.apache.stratos.messaging.message.processor.health.stat.GradientOfRequestsInFlightMessageProcessor.process(GradientOfRequestsInFlightMessageProcessor.java:59)
>>>>  at
>>>> org.apache.stratos.messaging.message.processor.health.stat.AverageRequestsInFlightMessageProcessor.process(AverageRequestsInFlightMessageProcessor.java:59)
>>>>  at
>>>> org.apache.stratos.messaging.message.processor.health.stat.MemberSecondDerivativeOfMemoryConsumptionMessageProcessor.process(MemberSecondDerivativeOfMemoryConsumptionMessageProcessor.java:59)
>>>>  at
>>>> org.apache.stratos.messaging.message.processor.health.stat.MemberGradientOfMemoryConsumptionMessageProcessor.process(MemberGradientOfMemoryConsumptionMessageProcessor.java:60)
>>>>  at
>>>> org.apache.stratos.messaging.message.processor.health.stat.MemberAverageMemoryConsumptionMessageProcessor.process(MemberAverageMemoryConsumptionMessageProcessor.java:59)
>>>>  at
>>>> org.apache.stratos.messaging.message.processor.health.stat.MemberSecondDerivativeOfLoadAverageMessageProcessor.process(MemberSecondDerivativeOfLoadAverageMessageProcessor.java:59)
>>>>  at
>>>> org.apache.stratos.messaging.message.processor.health.stat.MemberGradientOfLoadAverageMessageProcessor.process(MemberGradientOfLoadAverageMessageProcessor.java:59)
>>>>  at
>>>> org.apache.stratos.messaging.message.processor.health.stat.MemberAverageLoadAverageMessageProcessor.process(MemberAverageLoadAverageMessageProcessor.java:59)
>>>>  at
>>>> org.apache.stratos.messaging.message.processor.MessageProcessorChain.process(MessageProcessorChain.java:60)
>>>> at
>>>> org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator.run(HealthStatEventMessageDelegator.java:79)
>>>>  at java.lang.Thread.run(Thread.java:662)
>>>>
>>>>
>>>> --
>>>> --
>>>> Lahiru Sandaruwan
>>>> Software Engineer,
>>>> Platform Technologies,
>>>> WSO2 Inc., http://wso2.com
>>>> lean.enterprise.middleware
>>>>
>>>> email: lahirus@wso2.com cell: (+94) 773 325 954
>>>> blog: http://lahiruwrites.blogspot.com/
>>>> twitter: http://twitter.com/lahirus
>>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>>>
>>>>
>>>
>>>
>>> --
>>> Best Regards,
>>> Nirmal
>>>
>>> Nirmal Fernando.
>>> PPMC Member & Committer of Apache Stratos,
>>> Senior Software Engineer, WSO2 Inc.
>>>
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>
>>
>>
>> --
>> --
>> Lahiru Sandaruwan
>> Software Engineer,
>> Platform Technologies,
>> WSO2 Inc., http://wso2.com
>> lean.enterprise.middleware
>>
>> email: lahirus@wso2.com cell: (+94) 773 325 954
>> blog: http://lahiruwrites.blogspot.com/
>> twitter: http://twitter.com/lahirus
>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>
>>
>
>
> --
> Isuru Perera
> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
>



-- 
Thanks and Regards,

Isuru H.
+94 716 358 048* <http://wso2.com/>*

Re: CEP seems to be emiting stats even though there are no incoming requests...

Posted by Isuru Perera <is...@wso2.com>.
Then I think you can just log a warning message instead of logging an error
message with stack trace.


On Sat, Jan 11, 2014 at 11:13 PM, Lahiru Sandaruwan <la...@wso2.com>wrote:

>
>
>
> On Sat, Jan 11, 2014 at 10:46 PM, Nirmal Fernando <ni...@gmail.com>wrote:
>
>> There's a possibility that CEP would emit an event in this scenario
>> (since CEP aggregates events came in a specific time period). This cannot
>> be solved at CEP end, I think the solution would be to discard events that
>> are not relevant at Auto-scaler end. Wdyt?
>>
>
> Yeah. Actually it happens already. Since the cluster monitor is not there,
> it just prints this error message..
>
>>
>>
>> On Sat, Jan 11, 2014 at 10:11 PM, Lahiru Sandaruwan <la...@wso2.com>wrote:
>>
>>> $subject.
>>>
>>> For e.g. there is no instances in the cluster
>>> "lahiru123.isuruh.lk.php.domain " since the user has unsubscribed.
>>> But Autoscaler has received a stat event [1]..
>>>
>>> [1]
>>> TID: [0] [Agent] [2014-01-11 16:34:39,696] ERROR
>>> {org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver}
>>> -  A cluster monitor is not found in autoscaler context [cluster]
>>> lahiru123.isuruh.lk.php.domain
>>> {org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver}
>>> TID: [0] [Agent] [2014-01-11 16:34:39,696] ERROR
>>> {org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator}
>>> -  Failed to retrieve instance notifier event message
>>> {org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator}
>>> java.lang.RuntimeException: A monitor is not found for this cluster
>>> at
>>> org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver.handleMemberFaultEvent(AutoscalerHealthStatReceiver.java:1084)
>>>  at
>>> org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver.access$300(AutoscalerHealthStatReceiver.java:49)
>>> at
>>> org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver$9.onEvent(AutoscalerHealthStatReceiver.java:753)
>>>  at
>>> org.apache.stratos.messaging.listener.EventListener.update(EventListener.java:42)
>>> at java.util.Observable.notifyObservers(Observable.java:142)
>>>  at
>>> org.apache.stratos.messaging.event.EventObservable.notifyEventListeners(EventObservable.java:51)
>>> at
>>> org.apache.stratos.messaging.message.processor.health.stat.MemberFaultMessageProcessor.process(MemberFaultMessageProcessor.java:50)
>>>  at
>>> org.apache.stratos.messaging.message.processor.health.stat.SecondDerivativeOfMemoryConsumptionMessageProcessor.process(SecondDerivativeOfMemoryConsumptionMessageProcessor.java:59)
>>>  at
>>> org.apache.stratos.messaging.message.processor.health.stat.GradientOfMemoryConsumptionMessageProcessor.process(GradientOfMemoryConsumptionMessageProcessor.java:58)
>>>  at
>>> org.apache.stratos.messaging.message.processor.health.stat.AverageMemoryConsumptionMessageProcessor.process(AverageMemoryConsumptionMessageProcessor.java:59)
>>>  at
>>> org.apache.stratos.messaging.message.processor.health.stat.SecondDerivativeOfLoadAverageMessageProcessor.process(SecondDerivativeOfLoadAverageMessageProcessor.java:59)
>>>  at
>>> org.apache.stratos.messaging.message.processor.health.stat.GradientOfLoadAverageMessageProcessor.process(GradientOfLoadAverageMessageProcessor.java:59)
>>> at
>>> org.apache.stratos.messaging.message.processor.health.stat.AverageLoadAverageMessageProcessor.process(AverageLoadAverageMessageProcessor.java:59)
>>>  at
>>> org.apache.stratos.messaging.message.processor.health.stat.SecondDerivativeOfRequestsInFlightMessageProcessor.process(SecondDerivativeOfRequestsInFlightMessageProcessor.java:59)
>>>  at
>>> org.apache.stratos.messaging.message.processor.health.stat.GradientOfRequestsInFlightMessageProcessor.process(GradientOfRequestsInFlightMessageProcessor.java:59)
>>>  at
>>> org.apache.stratos.messaging.message.processor.health.stat.AverageRequestsInFlightMessageProcessor.process(AverageRequestsInFlightMessageProcessor.java:59)
>>>  at
>>> org.apache.stratos.messaging.message.processor.health.stat.MemberSecondDerivativeOfMemoryConsumptionMessageProcessor.process(MemberSecondDerivativeOfMemoryConsumptionMessageProcessor.java:59)
>>>  at
>>> org.apache.stratos.messaging.message.processor.health.stat.MemberGradientOfMemoryConsumptionMessageProcessor.process(MemberGradientOfMemoryConsumptionMessageProcessor.java:60)
>>>  at
>>> org.apache.stratos.messaging.message.processor.health.stat.MemberAverageMemoryConsumptionMessageProcessor.process(MemberAverageMemoryConsumptionMessageProcessor.java:59)
>>>  at
>>> org.apache.stratos.messaging.message.processor.health.stat.MemberSecondDerivativeOfLoadAverageMessageProcessor.process(MemberSecondDerivativeOfLoadAverageMessageProcessor.java:59)
>>>  at
>>> org.apache.stratos.messaging.message.processor.health.stat.MemberGradientOfLoadAverageMessageProcessor.process(MemberGradientOfLoadAverageMessageProcessor.java:59)
>>>  at
>>> org.apache.stratos.messaging.message.processor.health.stat.MemberAverageLoadAverageMessageProcessor.process(MemberAverageLoadAverageMessageProcessor.java:59)
>>>  at
>>> org.apache.stratos.messaging.message.processor.MessageProcessorChain.process(MessageProcessorChain.java:60)
>>> at
>>> org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator.run(HealthStatEventMessageDelegator.java:79)
>>>  at java.lang.Thread.run(Thread.java:662)
>>>
>>>
>>> --
>>> --
>>> Lahiru Sandaruwan
>>> Software Engineer,
>>> Platform Technologies,
>>> WSO2 Inc., http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> email: lahirus@wso2.com cell: (+94) 773 325 954
>>> blog: http://lahiruwrites.blogspot.com/
>>> twitter: http://twitter.com/lahirus
>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>>
>>>
>>
>>
>> --
>> Best Regards,
>> Nirmal
>>
>> Nirmal Fernando.
>> PPMC Member & Committer of Apache Stratos,
>> Senior Software Engineer, WSO2 Inc.
>>
>> Blog: http://nirmalfdo.blogspot.com/
>>
>
>
>
> --
> --
> Lahiru Sandaruwan
> Software Engineer,
> Platform Technologies,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> email: lahirus@wso2.com cell: (+94) 773 325 954
> blog: http://lahiruwrites.blogspot.com/
> twitter: http://twitter.com/lahirus
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>


-- 
Isuru Perera
Senior Software Engineer | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha

Re: CEP seems to be emiting stats even though there are no incoming requests...

Posted by Lahiru Sandaruwan <la...@wso2.com>.
On Sat, Jan 11, 2014 at 10:46 PM, Nirmal Fernando <ni...@gmail.com>wrote:

> There's a possibility that CEP would emit an event in this scenario (since
> CEP aggregates events came in a specific time period). This cannot be
> solved at CEP end, I think the solution would be to discard events that are
> not relevant at Auto-scaler end. Wdyt?
>

Yeah. Actually it happens already. Since the cluster monitor is not there,
it just prints this error message..

>
>
> On Sat, Jan 11, 2014 at 10:11 PM, Lahiru Sandaruwan <la...@wso2.com>wrote:
>
>> $subject.
>>
>> For e.g. there is no instances in the cluster
>> "lahiru123.isuruh.lk.php.domain " since the user has unsubscribed.
>> But Autoscaler has received a stat event [1]..
>>
>> [1]
>> TID: [0] [Agent] [2014-01-11 16:34:39,696] ERROR
>> {org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver}
>> -  A cluster monitor is not found in autoscaler context [cluster]
>> lahiru123.isuruh.lk.php.domain
>> {org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver}
>> TID: [0] [Agent] [2014-01-11 16:34:39,696] ERROR
>> {org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator}
>> -  Failed to retrieve instance notifier event message
>> {org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator}
>> java.lang.RuntimeException: A monitor is not found for this cluster
>> at
>> org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver.handleMemberFaultEvent(AutoscalerHealthStatReceiver.java:1084)
>>  at
>> org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver.access$300(AutoscalerHealthStatReceiver.java:49)
>> at
>> org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver$9.onEvent(AutoscalerHealthStatReceiver.java:753)
>>  at
>> org.apache.stratos.messaging.listener.EventListener.update(EventListener.java:42)
>> at java.util.Observable.notifyObservers(Observable.java:142)
>>  at
>> org.apache.stratos.messaging.event.EventObservable.notifyEventListeners(EventObservable.java:51)
>> at
>> org.apache.stratos.messaging.message.processor.health.stat.MemberFaultMessageProcessor.process(MemberFaultMessageProcessor.java:50)
>>  at
>> org.apache.stratos.messaging.message.processor.health.stat.SecondDerivativeOfMemoryConsumptionMessageProcessor.process(SecondDerivativeOfMemoryConsumptionMessageProcessor.java:59)
>>  at
>> org.apache.stratos.messaging.message.processor.health.stat.GradientOfMemoryConsumptionMessageProcessor.process(GradientOfMemoryConsumptionMessageProcessor.java:58)
>>  at
>> org.apache.stratos.messaging.message.processor.health.stat.AverageMemoryConsumptionMessageProcessor.process(AverageMemoryConsumptionMessageProcessor.java:59)
>>  at
>> org.apache.stratos.messaging.message.processor.health.stat.SecondDerivativeOfLoadAverageMessageProcessor.process(SecondDerivativeOfLoadAverageMessageProcessor.java:59)
>>  at
>> org.apache.stratos.messaging.message.processor.health.stat.GradientOfLoadAverageMessageProcessor.process(GradientOfLoadAverageMessageProcessor.java:59)
>> at
>> org.apache.stratos.messaging.message.processor.health.stat.AverageLoadAverageMessageProcessor.process(AverageLoadAverageMessageProcessor.java:59)
>>  at
>> org.apache.stratos.messaging.message.processor.health.stat.SecondDerivativeOfRequestsInFlightMessageProcessor.process(SecondDerivativeOfRequestsInFlightMessageProcessor.java:59)
>>  at
>> org.apache.stratos.messaging.message.processor.health.stat.GradientOfRequestsInFlightMessageProcessor.process(GradientOfRequestsInFlightMessageProcessor.java:59)
>>  at
>> org.apache.stratos.messaging.message.processor.health.stat.AverageRequestsInFlightMessageProcessor.process(AverageRequestsInFlightMessageProcessor.java:59)
>>  at
>> org.apache.stratos.messaging.message.processor.health.stat.MemberSecondDerivativeOfMemoryConsumptionMessageProcessor.process(MemberSecondDerivativeOfMemoryConsumptionMessageProcessor.java:59)
>>  at
>> org.apache.stratos.messaging.message.processor.health.stat.MemberGradientOfMemoryConsumptionMessageProcessor.process(MemberGradientOfMemoryConsumptionMessageProcessor.java:60)
>>  at
>> org.apache.stratos.messaging.message.processor.health.stat.MemberAverageMemoryConsumptionMessageProcessor.process(MemberAverageMemoryConsumptionMessageProcessor.java:59)
>>  at
>> org.apache.stratos.messaging.message.processor.health.stat.MemberSecondDerivativeOfLoadAverageMessageProcessor.process(MemberSecondDerivativeOfLoadAverageMessageProcessor.java:59)
>>  at
>> org.apache.stratos.messaging.message.processor.health.stat.MemberGradientOfLoadAverageMessageProcessor.process(MemberGradientOfLoadAverageMessageProcessor.java:59)
>>  at
>> org.apache.stratos.messaging.message.processor.health.stat.MemberAverageLoadAverageMessageProcessor.process(MemberAverageLoadAverageMessageProcessor.java:59)
>>  at
>> org.apache.stratos.messaging.message.processor.MessageProcessorChain.process(MessageProcessorChain.java:60)
>> at
>> org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator.run(HealthStatEventMessageDelegator.java:79)
>>  at java.lang.Thread.run(Thread.java:662)
>>
>>
>> --
>> --
>> Lahiru Sandaruwan
>> Software Engineer,
>> Platform Technologies,
>> WSO2 Inc., http://wso2.com
>> lean.enterprise.middleware
>>
>> email: lahirus@wso2.com cell: (+94) 773 325 954
>> blog: http://lahiruwrites.blogspot.com/
>> twitter: http://twitter.com/lahirus
>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>
>>
>
>
> --
> Best Regards,
> Nirmal
>
> Nirmal Fernando.
> PPMC Member & Committer of Apache Stratos,
> Senior Software Engineer, WSO2 Inc.
>
> Blog: http://nirmalfdo.blogspot.com/
>



-- 
--
Lahiru Sandaruwan
Software Engineer,
Platform Technologies,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

email: lahirus@wso2.com cell: (+94) 773 325 954
blog: http://lahiruwrites.blogspot.com/
twitter: http://twitter.com/lahirus
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146

Re: CEP seems to be emiting stats even though there are no incoming requests...

Posted by Nirmal Fernando <ni...@gmail.com>.
There's a possibility that CEP would emit an event in this scenario (since
CEP aggregates events came in a specific time period). This cannot be
solved at CEP end, I think the solution would be to discard events that are
not relevant at Auto-scaler end. Wdyt?


On Sat, Jan 11, 2014 at 10:11 PM, Lahiru Sandaruwan <la...@wso2.com>wrote:

> $subject.
>
> For e.g. there is no instances in the cluster
> "lahiru123.isuruh.lk.php.domain " since the user has unsubscribed.
> But Autoscaler has received a stat event [1]..
>
> [1]
> TID: [0] [Agent] [2014-01-11 16:34:39,696] ERROR
> {org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver}
> -  A cluster monitor is not found in autoscaler context [cluster]
> lahiru123.isuruh.lk.php.domain
> {org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver}
> TID: [0] [Agent] [2014-01-11 16:34:39,696] ERROR
> {org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator}
> -  Failed to retrieve instance notifier event message
> {org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator}
> java.lang.RuntimeException: A monitor is not found for this cluster
> at
> org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver.handleMemberFaultEvent(AutoscalerHealthStatReceiver.java:1084)
>  at
> org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver.access$300(AutoscalerHealthStatReceiver.java:49)
> at
> org.apache.stratos.autoscaler.message.receiver.health.AutoscalerHealthStatReceiver$9.onEvent(AutoscalerHealthStatReceiver.java:753)
>  at
> org.apache.stratos.messaging.listener.EventListener.update(EventListener.java:42)
> at java.util.Observable.notifyObservers(Observable.java:142)
>  at
> org.apache.stratos.messaging.event.EventObservable.notifyEventListeners(EventObservable.java:51)
> at
> org.apache.stratos.messaging.message.processor.health.stat.MemberFaultMessageProcessor.process(MemberFaultMessageProcessor.java:50)
>  at
> org.apache.stratos.messaging.message.processor.health.stat.SecondDerivativeOfMemoryConsumptionMessageProcessor.process(SecondDerivativeOfMemoryConsumptionMessageProcessor.java:59)
>  at
> org.apache.stratos.messaging.message.processor.health.stat.GradientOfMemoryConsumptionMessageProcessor.process(GradientOfMemoryConsumptionMessageProcessor.java:58)
>  at
> org.apache.stratos.messaging.message.processor.health.stat.AverageMemoryConsumptionMessageProcessor.process(AverageMemoryConsumptionMessageProcessor.java:59)
>  at
> org.apache.stratos.messaging.message.processor.health.stat.SecondDerivativeOfLoadAverageMessageProcessor.process(SecondDerivativeOfLoadAverageMessageProcessor.java:59)
>  at
> org.apache.stratos.messaging.message.processor.health.stat.GradientOfLoadAverageMessageProcessor.process(GradientOfLoadAverageMessageProcessor.java:59)
> at
> org.apache.stratos.messaging.message.processor.health.stat.AverageLoadAverageMessageProcessor.process(AverageLoadAverageMessageProcessor.java:59)
>  at
> org.apache.stratos.messaging.message.processor.health.stat.SecondDerivativeOfRequestsInFlightMessageProcessor.process(SecondDerivativeOfRequestsInFlightMessageProcessor.java:59)
>  at
> org.apache.stratos.messaging.message.processor.health.stat.GradientOfRequestsInFlightMessageProcessor.process(GradientOfRequestsInFlightMessageProcessor.java:59)
>  at
> org.apache.stratos.messaging.message.processor.health.stat.AverageRequestsInFlightMessageProcessor.process(AverageRequestsInFlightMessageProcessor.java:59)
>  at
> org.apache.stratos.messaging.message.processor.health.stat.MemberSecondDerivativeOfMemoryConsumptionMessageProcessor.process(MemberSecondDerivativeOfMemoryConsumptionMessageProcessor.java:59)
>  at
> org.apache.stratos.messaging.message.processor.health.stat.MemberGradientOfMemoryConsumptionMessageProcessor.process(MemberGradientOfMemoryConsumptionMessageProcessor.java:60)
>  at
> org.apache.stratos.messaging.message.processor.health.stat.MemberAverageMemoryConsumptionMessageProcessor.process(MemberAverageMemoryConsumptionMessageProcessor.java:59)
>  at
> org.apache.stratos.messaging.message.processor.health.stat.MemberSecondDerivativeOfLoadAverageMessageProcessor.process(MemberSecondDerivativeOfLoadAverageMessageProcessor.java:59)
>  at
> org.apache.stratos.messaging.message.processor.health.stat.MemberGradientOfLoadAverageMessageProcessor.process(MemberGradientOfLoadAverageMessageProcessor.java:59)
>  at
> org.apache.stratos.messaging.message.processor.health.stat.MemberAverageLoadAverageMessageProcessor.process(MemberAverageLoadAverageMessageProcessor.java:59)
>  at
> org.apache.stratos.messaging.message.processor.MessageProcessorChain.process(MessageProcessorChain.java:60)
> at
> org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator.run(HealthStatEventMessageDelegator.java:79)
>  at java.lang.Thread.run(Thread.java:662)
>
>
> --
> --
> Lahiru Sandaruwan
> Software Engineer,
> Platform Technologies,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> email: lahirus@wso2.com cell: (+94) 773 325 954
> blog: http://lahiruwrites.blogspot.com/
> twitter: http://twitter.com/lahirus
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>


-- 
Best Regards,
Nirmal

Nirmal Fernando.
PPMC Member & Committer of Apache Stratos,
Senior Software Engineer, WSO2 Inc.

Blog: http://nirmalfdo.blogspot.com/