Hi Murilo,
Drools Fusion will automatically retract the event if it's not needed
anymore, for example if you are calculating the average using sliding
windows, as soon as the event falls out of the sliding windows and don't
match any other rule it will be automatically retracted if Drools is
operating in Stream Mode.
About persisting the internal state, you can configure the persistence
mechanisms, but in my opinion it will be better if you store using your own
mechanisms the average and re initialize the state when you want to start
monitoring again.
Cheers
On Tue, Sep 20, 2011 at 6:05 PM, Murilo Lima <mslima(a)nic.br> wrote:
Hi,
I am planning to use Drools Fusion in a monitoring application, but I have
some performance and fault-tolerance issues.
The idea is to monitor if some measurements are within a parameter defined
on a baseline. The baselines themselves are calculated based on previous
measurements. For example, I want to monitor if a measurement is close to
the average of previous measurements at the same weekday.
My worry is that the volume of measurements is very high, and I need the
average of the measurements over a long period of time. Clearly, I see that
it would be better to use the average of the whole set of measurements
(instead of the average of a sliding window, or setting an expiration for
the events) and calculate the averages in an online fashion, so as not to
keep the measurements in memory. I want to know if Drools Fusion accumulate
functions work that way, or if I need to retract the events myself.
Another question is: if, for some reason, I have to stop the monitoring
application, will Drools Fusion automatically keep track of its internal
state? In the previous example, would I have to provide myself a way to
save
the averages on disk, or Drools Fusion would take care of it? I didn't see
anything like that on the documentation.
Thanks for any help,
Murilo
--
View this message in context:
http://drools.46999.n3.nabble.com/questions-about-Drools-Fusion-perfomanc...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
- CTO @
http://www.plugtree.com
- MyJourney @
http://salaboy.wordpress.com
- Co-Founder @
http://www.jugargentina.org
- Co-Founder @
http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -