You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Sanjiva Weerawarana <sa...@wso2.com> on 2014/03/14 05:13:22 UTC
can I write different CEP and Drools rules per service cluster?
$subject .. is there a way to do these:
- have one config file but test for the cluster the messages are coming
from/for and react different
- have different rulesets (for both CEP and Drools) that run for different
clusters
Srinath, for CEP this maybe a partition scenario - some state may need to
be global but some per cluster. Still the question is whether we can
program the rules independently and make them manageble separately.
I'm sure this is not clear :-) .. ask and I'll clarify. This came from a
discussion with Luca.
Sanjiva.
--
Sanjiva Weerawarana, Ph.D.
Founder, Chairman & CEO; WSO2, Inc.; http://wso2.com/
email: sanjiva@wso2.com; office: (+1 650 745 4499 | +94 11 214 5345)
x5700; cell: +94 77 787 6880 | +1 408 466 5099; voip: +1 650 265 8311
blog: http://sanjiva.weerawarana.org/; twitter: @sanjiva
Lean . Enterprise . Middleware
Re: can I write different CEP and Drools rules per service cluster?
Posted by Lakmal Warusawithana <la...@wso2.com>.
Hi Sanjiva,
I had a question in my mind and I am not sure is this same. What I was
thinking is how we can add auto scaling factors without any code change to
the Startos. For a example if some one want to add some application
(cartridge) specific (same as service specific) auto scaling how Stratos
support it. In current model, auto scaling factors are hard coded to the
auto scaler code.
What I was thinking is any one can define these factors (parameters) in the
auto scaling policy at any time.(adding new auto scaling policy with them).
Then, from CEP we can write CEP rules for the new parameters. In the auto
scaler side we can refactor the code to get these new summarized parameter
vales by looking at assign auto scaling policy. That means we can do
service wise auto scaling. I am not sure why we need to change drools for
that, since we have use only one load predicting algorithm (s=ut+1/2at2)
and its unique for all service. And deciding where to spin/destroy also
taking dynamically from deployment policy definition.
AFAIU if we can give auto scaling parameters dynamically we can use service
wise auto scaling.
On Fri, Mar 14, 2014 at 9:43 AM, Sanjiva Weerawarana <sa...@wso2.com>wrote:
> $subject .. is there a way to do these:
>
> - have one config file but test for the cluster the messages are coming
> from/for and react different
> - have different rulesets (for both CEP and Drools) that run for different
> clusters
>
> Srinath, for CEP this maybe a partition scenario - some state may need to
> be global but some per cluster. Still the question is whether we can
> program the rules independently and make them manageble separately.
>
> I'm sure this is not clear :-) .. ask and I'll clarify. This came from a
> discussion with Luca.
>
> Sanjiva.
> --
> Sanjiva Weerawarana, Ph.D.
> Founder, Chairman & CEO; WSO2, Inc.; http://wso2.com/
> email: sanjiva@wso2.com; office: (+1 650 745 4499 | +94 11 214 5345)
> x5700; cell: +94 77 787 6880 | +1 408 466 5099; voip: +1 650 265 8311
> blog: http://sanjiva.weerawarana.org/; twitter: @sanjiva
> Lean . Enterprise . Middleware
>
--
Lakmal Warusawithana
Software Architect; WSO2 Inc.
Mobile : +94714289692
Blog : http://lakmalsview.blogspot.com/
Re: can I write different CEP and Drools rules per service cluster?
Posted by Srinath Perera <sr...@wso2.com>.
Hi Sanjiva,
As per our offline chat, I think potential solution is
1. define each rule set using different stream
2. Use a global rule to send events to correct stream and get the global
rule to use data from a database so we can update the database when we add
a new ruleset so the global role will pick it up.
Basically need to build this ontop, but should be pretty simple.
--Srinath
On Fri, Mar 14, 2014 at 9:43 AM, Sanjiva Weerawarana <sa...@wso2.com>wrote:
> $subject .. is there a way to do these:
>
> - have one config file but test for the cluster the messages are coming
> from/for and react different
> - have different rulesets (for both CEP and Drools) that run for different
> clusters
>
> Srinath, for CEP this maybe a partition scenario - some state may need to
> be global but some per cluster. Still the question is whether we can
> program the rules independently and make them manageble separately.
>
> I'm sure this is not clear :-) .. ask and I'll clarify. This came from a
> discussion with Luca.
>
> Sanjiva.
> --
> Sanjiva Weerawarana, Ph.D.
> Founder, Chairman & CEO; WSO2, Inc.; http://wso2.com/
> email: sanjiva@wso2.com; office: (+1 650 745 4499 | +94 11 214 5345)
> x5700; cell: +94 77 787 6880 | +1 408 466 5099; voip: +1 650 265 8311
> blog: http://sanjiva.weerawarana.org/; twitter: @sanjiva
> Lean . Enterprise . Middleware
>
--
============================
Srinath Perera, Ph.D.
Director, Research, WSO2 Inc.
Visiting Faculty, University of Moratuwa
Member, Apache Software Foundation
Research Scientist, Lanka Software Foundation
Blog: http://srinathsview.blogspot.com/
Photos: http://www.flickr.com/photos/hemapani/
Phone: 0772360902