Re: [rules-users] drools grid or other high availability solution?
Hi Mark, Can you explain a bit more about how to write the facade interface ? Right now our main goal is to run drools fusion in a distributed manner. Also - can you explain how you would run drools fusion in a distributed fashion using Infinispans Distributed Execution Framework ? https://docs.jboss.org/author/display/ISPN/Infinispan+Distributed+Execution+Framework Regards, Alan Ho -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-drools-grid-or-other-high-availability-solution-tp4020734p4021054.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] drools grid or other high availability solution?
you can do this yourself. -setup 1..n JVMs. -Each JVM creates a drools instance with the same rules -Create an facade interface where external application insert/update/retract are actually operations on an infinispan replication group. -Each JVM attaches an insert/update/delete listener to the infinispan client, the listener translates the infinispan event into a working memory action. This allows all JVM's in the group to operate in redundancy. -Make sure that any rules that have external side effects - like calling services - have an if master check, as you don't want the slave JVM's doing any external side effects. However you will need to make sure any return information from that side effect is replicate to all JVMS in the group. Either ISPN already has heart group management for master/slave, or you can use the underlying jgroups to do it. If someone gets this working, they should probably publish it on github as an example project. Mark On 12 Nov 2012, at 15:29, groovenarula gnaru...@la-z-boy.com wrote: Follow up on high availability - I'm planning to use Drools for Capacity Management. In my use-case I need to track # of hours of planned capacity that has been consumed based on hours allocated. I'm planning on having a StatefulKnowledgeSession that will have facts that store the # of hours of capacity that are available for a given week. Then as work comes in (in the form of orders), it will be allocated against this capacity. Even though at a high level this seems to be a simple requirement, the process of allocating resources is very complicated and using rules and FOL would greatly help manage the complexity of the allocation process. Based on the discussion above it looks like I won't be able to architect a solution that's highly available. I'm not concerned about performance (the drools engine is very efficient even on a single server). But it looks like it's not possible to share / replicate session state contained in a StatefulKnowledgeSession across separate JVMs (either on the same server or across 2 servers). Am I correct or am I missing something ? -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-drools-grid-or-other-high-availability-solution-tp4020734p4020803.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] drools grid or other high availability solution?
Follow up on high availability - I'm planning to use Drools for Capacity Management. In my use-case I need to track # of hours of planned capacity that has been consumed based on hours allocated. I'm planning on having a StatefulKnowledgeSession that will have facts that store the # of hours of capacity that are available for a given week. Then as work comes in (in the form of orders), it will be allocated against this capacity. Even though at a high level this seems to be a simple requirement, the process of allocating resources is very complicated and using rules and FOL would greatly help manage the complexity of the allocation process. Based on the discussion above it looks like I won't be able to architect a solution that's highly available. I'm not concerned about performance (the drools engine is very efficient even on a single server). But it looks like it's not possible to share / replicate session state contained in a StatefulKnowledgeSession across separate JVMs (either on the same server or across 2 servers). Am I correct or am I missing something ? -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-drools-grid-or-other-high-availability-solution-tp4020734p4020803.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] drools grid or other high availability solution?
In my plan, there are a few DRools servers running stateless, integrated with Apache Camel for HA/load balancing. I didn't get yet (by reading the docs) how to get it running, might be because I don't know Camel either... JC How does the Drools server support High Availability? Can you run multiple instances and have load sharing (I guess no?) How about failover (like if facts are persisted to a shared database?) ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] drools grid or other high availability solution?
Hi, On Sat, Nov 10, 2012 at 1:35 AM, Mauricio Salatino sala...@gmail.com wrote: Hi Justin, We are working on it, drools-grid was an experimental project to start the design. We also have the Drools Server using camel, and we will continue the development of the remoting APIs, probably after the next release. How does the Drools server support High Availability? Can you run multiple instances and have load sharing (I guess no?) How about failover (like if facts are persisted to a shared database?) Thanks! Miguel ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] drools grid or other high availability solution?
There is nothing we provide for this. What you can do is setup 1..n nodes in a group - each with the same rules. Make sure all inserts are replicated to each node in the group, let each group run with redundancy. Mark On 10 Nov 2012, at 12:34, Miguel Paraz mpa...@gmail.com wrote: Hi, On Sat, Nov 10, 2012 at 1:35 AM, Mauricio Salatino sala...@gmail.com wrote: Hi Justin, We are working on it, drools-grid was an experimental project to start the design. We also have the Drools Server using camel, and we will continue the development of the remoting APIs, probably after the next release. How does the Drools server support High Availability? Can you run multiple instances and have load sharing (I guess no?) How about failover (like if facts are persisted to a shared database?) Thanks! Miguel ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] drools grid or other high availability solution?
Not even a single idea? :( JC - Original Message - From: Justin Case send_lotsa_spam_h...@yahoo.com To: rules-users@lists.jboss.org rules-users@lists.jboss.org Cc: Sent: Wednesday, November 7, 2012 3:33 PM Subject: [rules-users] drools grid or other high availability solution? Hello all, I noticed there's not much fuss about drools-grid (anymore?). Is there something still going on there? Is it recommendable for something reliable? Or if not, do you have any hints/links/experience on how to achieve a certain high availability level with DRools servers? Many thanks, JC ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] drools grid or other high availability solution?
Hi Justin, We are working on it, drools-grid was an experimental project to start the design. We also have the Drools Server using camel, and we will continue the development of the remoting APIs, probably after the next release. Cheers On Fri, Nov 9, 2012 at 5:21 PM, Justin Case send_lotsa_spam_h...@yahoo.comwrote: Not even a single idea? :( JC - Original Message - From: Justin Case send_lotsa_spam_h...@yahoo.com To: rules-users@lists.jboss.org rules-users@lists.jboss.org Cc: Sent: Wednesday, November 7, 2012 3:33 PM Subject: [rules-users] drools grid or other high availability solution? Hello all, I noticed there's not much fuss about drools-grid (anymore?). Is there something still going on there? Is it recommendable for something reliable? Or if not, do you have any hints/links/experience on how to achieve a certain high availability level with DRools servers? Many thanks, JC ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- - MyJourney @ http://salaboy.wordpress.com - Co-Founder @ http://www.jugargentina.org - Co-Founder @ http://www.jbug.com.ar - Salatino Salaboy Mauricio - ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] drools grid or other high availability solution?
D'uh how could I have missed that. You're so right, I will check with Camel. Thank you Mauricio! JC From: Mauricio Salatino sala...@gmail.com To: Justin Case send_lotsa_spam_h...@yahoo.com; Rules Users List rules-users@lists.jboss.org Sent: Friday, November 9, 2012 6:35 PM Subject: Re: [rules-users] drools grid or other high availability solution? Hi Justin, We are working on it, drools-grid was an experimental project to start the design. We also have the Drools Server using camel, and we will continue the development of the remoting APIs, probably after the next release. Cheers ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] drools grid or other high availability solution?
No Problem Justin, Let us know if you have any trouble! On Fri, Nov 9, 2012 at 10:54 PM, Justin Case send_lotsa_spam_h...@yahoo.com wrote: D'uh how could I have missed that. You're so right, I will check with Camel. Thank you Mauricio! JC -- *From:* Mauricio Salatino sala...@gmail.com *To:* Justin Case send_lotsa_spam_h...@yahoo.com; Rules Users List rules-users@lists.jboss.org *Sent:* Friday, November 9, 2012 6:35 PM *Subject:* Re: [rules-users] drools grid or other high availability solution? Hi Justin, We are working on it, drools-grid was an experimental project to start the design. We also have the Drools Server using camel, and we will continue the development of the remoting APIs, probably after the next release. Cheers ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- - MyJourney @ http://salaboy.wordpress.com - Co-Founder @ http://www.jugargentina.org - Co-Founder @ http://www.jbug.com.ar - Salatino Salaboy Mauricio - ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] drools grid or other high availability solution?
Hello all, I noticed there's not much fuss about drools-grid (anymore?). Is there something still going on there? Is it recommendable for something reliable? Or if not, do you have any hints/links/experience on how to achieve a certain high availability level with DRools servers? Many thanks, JC ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users