<div>Currently we work off a database to share events for load balancing and issues related to restarts</div>
<div>But that takes a hit on performance.</div>
<div>It will also be good to have "event type/event content" based expiry times so that we can reduce the size of heap.</div>
<div>-Amit<br><br></div>
<div class="gmail_quote">2010/2/19 Chetan Mahadev <span dir="ltr"><<a href="mailto:mahadev.chetan@gmail.com">mahadev.chetan@gmail.com</a>></span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="gmail_quote"><br>Hi <br><br>Can anyone tell me how to Implement temporal based event correlation using drools fusion in a load balancing environment.<br>What is the best practice in a situation like this??<br>
<br>Use case : To correlate events which comes into the system with in a time window.<br><br>Scenario1:<br>Single System Scenario: that is One working memory<br><br>1.All the events come into the system, <br>2.Temporal based rules are written using Drools-Fusion.<br>
3.Correlations takes place if all the events come with in the time window, else the rule expires.<br>Note: All these takes place with in a single working memory ( Single System)<br><br><br>Scenario2:<br>Two System Scenario in active/active: that is two working memories<br>
<br>1.All the events come into the system, <br>2.Temporal based rules are written using Drools-Fusion.<br>3. Same rules are deployed in both the systems (active/active)<br>4.Both systems are load-balanced, <br>5. Event1 goes to System1, Event2 goes to System2 and again Event3 goes system1. ( load -balanced)<br>
<br>As a result, System1 recieves 2 events out of 3 events, and System2 the other 1 event. <br><br><span style="BACKGROUND-COLOR: rgb(255,255,0)">Correlation never happens since I dont recieve all the events in a single working memory.</span><br>
<br>How do we handle this kinda scenario??<br><br>Do we have any best practise that is followed in a clustered or load-balanced environment??<br><br>Pls help me.. I am stuck.<br><br>Regds<br>Chetan<br><br><br><br><br><br>
<br><br>In a single system, Fusion/temporal based correlation works completely fine. <br><br>Use case: <br>I have a situation, where events flow into two active components (both running simultaneosly)<br></div><br><br>_______________________________________________<br>
rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>