spring-batch-lightmin icon indicating copy to clipboard operation
spring-batch-lightmin copied to clipboard

Distributed Lock with embedded Lightmin Job Schedulers

Open manuravi0323 opened this issue 5 years ago • 1 comments

Scenario

  1. Embedded Lightmin
  2. Component deployed in a cluster with multiple nodes
  3. Job scheduled via Lightmin UI Scheduler

Version Lightmin 2.1.1 Spring Boot 2.2.6.RELEASE

Issue How to tackle distributed locks so that the job is only run in one component? Is distributed lock mechanism not viable for the embedded lightmin version?

manuravi0323 avatar Dec 29 '20 19:12 manuravi0323

Hi @manuravi0323 ,

the lightmin client itself does not provide clustering. Each scheduler will work on its own.

For this scenario, the server scheduler and server cluster feature (released with 2.1.2) supports clustering and locks. Currently, the project itself provides an implementation for infinispan for the locks and distributed caches. In order to provide an different implementation, e.g. Hazelcast, the LightminServerLockManager interfaces must be implemented.

I hope this helps.

tuxdevelop avatar Jan 05 '21 14:01 tuxdevelop