stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nirmal Fernando <nirmal070...@gmail.com>
Subject Re: Load Balancer and CEP integration
Date Mon, 21 Oct 2013 08:20:45 GMT
On Mon, Oct 21, 2013 at 1:25 PM, Lahiru Sandaruwan <lahirus@wso2.com> wrote:

> Hi Nirmal,
>
> Nice work!
>
> On Sun, Oct 20, 2013 at 11:46 PM, Nirmal Fernando <nirmal070125@gmail.com>wrote:
>
>> Hi All,
>>
>> I've successfully integrated Stratos LB and WSO2 CEP (selected CEP
>> engine).
>>
>> Load balancer and CEP is communicating via Observer pattern, where a
>> statistics collector in LB acting as the subject and CEPs act as Observers.
>> Stats collector periodically notifies all the registered observers, so that
>> they can act upon changes. I'm committing the changes soon.
>>
>> Now, when I load Stratos LB, CEP emits periodical aggregated statistics
>> on requests in flight at LB level, to a topic.
>>
>> Following are few aggregated stats emitted by CEP:
>>
>>
>> {"average_requests_in_flight":{"cluster_id":"c1","value":"78.66666666666667"}}
>>
>> {"second_derivative_of_requests_in_flight":{"cluster_id":"c1","value":"0.17776829680194836"}}
>>
>> {"gradient_of_requests_in_flight":{"cluster_id":"c1","value":"0.0666637038353851"}}
>>
>
> Hope above three are separate events sent to the topic
> "summarized_stat_topic". Autoscaler will get these and keep latest values
> against cluster "c1".
>

Lahiru, yes correct. (summarized-health-stats topic)

>
> Thanks.
>
>>
>>
>> {"second_derivative_of_requests_in_flight":{"cluster_id":"c1","value":"-0.004444888953094816"}}
>>
>> {"gradient_of_requests_in_flight":{"cluster_id":"c1","value":"0.04444246922359006"}}
>> {"average_requests_in_flight":{"cluster_id":"c1","value":"9.5"}}
>>
>>
>>
>> --
>> 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
>
>


-- 
Best Regards,
Nirmal

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

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

Mime
View raw message