Configuring Quartz scheduler with Galera Cluster database.

How is Quartz scheduler configured in an apache tomcat groovy file to connect to a 3-node Galera Cluster database?

The configuration below is currently been used but Quartz is displaying error messages; Using job-store 'org.springframework.scheduling.quartz.LocalDataSourceJobStore' - which supports persistence. and is not clustered.

Groovy file config;

quartz{ jdbcStore = true autoStartup = false

props { waitForJobsToCompleteOnShutdown = true jobStore.class = 'org.quartz.impl.jdbcjobstore.JobStoreTX' threadPool.threadCount = 5

scheduler.instanceId=AUTO

jobStore.isClustered = true jobStore.clusterCheckinInterval = 20000

} }

Answer Answered by Dermot Brereton in this comment.

This issue has now been resolved. It was related to the presence of MyISAM tables in the Galera Cluster database not been synched.

The MyISAM tables were replaced with InnoDB tables.

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.