AnsweredAssumed Answered

Cluster of Embedded Activti engines

Question asked by bcampeau1 on Feb 19, 2016
Latest reply on Feb 22, 2016 by martin.grofcik

I am working on a POC to show our client that Activiti can run in a cluster environnement.

I have a simple BPMN process that is started with a timer.  This process basically :

Task 1) poll a list of object (Country names)

Task 2) a multi instance sub process loop on the collection from task 1 and "visit" each country

Task 3) outside the multi instance sub-process, only display the list of visited Countries

Now FYI, this is an embedded Spring boot project.

So i start 2 different java process with the jar built.

Say : Server 1 and Server 2  (both access the same Activiti DB)

The behavior i see is :

First execution :
Server 1 will execute the process
Server 2 run but do nothing

Second execution:
Server 1 execute the process
Server 2 run but do nothing


Now if i kill Server 1… i see that Server 2 will eventually wake up and execute the process.

So my understanding is of this internal activiti behavior is kinf of : hot / warm

So is it normal that Server 1 will always execute the process and Server 2 will just sit back and wait.

My Client is asking if its possible to be more like : hot /hot.  Meaning that randomly i should see Server 1 and Server 2 executing the process (not at the same obviously)

It this scenario possible?