Skip to content

heidiks/spring-boot-quartz-cluster-environment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

spring-boot-quartz-cluster-environment

"Never run clustering on separate machines, unless their clocks are synchronized using some form of time-sync service (daemon) that runs very regularly (the clocks must be within a second of each other). See http://www.boulder.nist.gov/timefreq/service/its.htm if you are unfamiliar with how to do this." (from documentation)

Stack:

Run

  • Apply resources/db/changelog/sql/quartz_tables_mysql.sql to your database
  • Run two or more instances:
$ mvn spring-boot:run

Configuration (Optional)

  • Quartz: quartz.properties
  • Cron strategy: samplejob.frequency=0 * * * * ? (on application.properties)

Quartz documentation

About

Spring Boot integration with Quartz Scheduler in a cluster environment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages