You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@fineract.apache.org by Ashutosh Prasad Panigrahi <as...@gmail.com> on 2019/11/03 17:49:41 UTC

How to achieve batch job isolation in Fineract

Hello Friends,

I am new to Fineract and doing a small POC using Fineract (Monolith) and
not Fineract CN.

I want to run multiple Fineract servers pointing to the same Database
server to scale the API

However my fear is that with this approach the scheduler & Batch jobs will
get started in all the API servers.

Is there any way to stop schedulers coming up automatically with the
server.

I would ideally like to isolate the batch jobs to a separate hardware .

Any suggestions ?

Regards
Ashutosh

Re: How to achieve batch job isolation in Fineract

Posted by Victor Romero <vi...@fintecheando.mx>.
Hi,

  

A quick workaround is to override the TenantJobSchedulerFactoryBean and set a
property to enable/disable the fineract instance for running the Quartz
scheduler.

  

Another solution is to change from RAMStore to JDBCStore, you need to add some
wrappers to avoid the issue of Quartz about the JobDetail when using Method
Invoker, because of the non-serializable objetcs.

  

And of course a more complex solution is to use something like XXL-Job or
Elastic-Job.

  

Regards.

  

Victor

> El 3 de noviembre de 2019 a las 11:49 AM Ashutosh Prasad Panigrahi
<as...@gmail.com> escribió:  
>  
>

>

> Hello Friends,

>

>  
>

>

> I am new to Fineract and doing a small POC using Fineract (Monolith) and not
Fineract CN.

>

>  
>

>

> I want to run multiple Fineract servers pointing to the same Database server
to scale the API

>

>  
>

>

> However my fear is that with this approach the scheduler & Batch jobs will
get started in all the API servers.

>

>  
>

>

> Is there any way to stop schedulers coming up automatically with the server.

>

>  
>

>

> I would ideally like to isolate the batch jobs to a separate hardware .

>

>  
>

>

> Any suggestions ?

>

>  
>

>

> Regards

>

> Ashutosh