Java – Strange behavior of quartz in cluster configuration

cluster-computingjavajob-schedulingquartz-scheduler

I'm developing scheduled services.

The application is developed using JDK 1.6, Spring Framework 2.5.6 and Quartz 1.8.4 to schedule jobs.

I've two clustered servers with WebLogic Server 10.3.5.

Sometimes it seems that the scheduling of quartz goes crazy. Analyzing the conditions in which it occurs, there seems to be a clock "desynchronization" greater than a second between the clustered servers. However this desynchronization is not always due to the system time of the servers, sometimes it seems that even if the clocks of the machines are synchronized, there is a little "delay" introduced by the JVM.

Has anyone encountered the same problem? Is there a way to solve it?

Thanks in advance

Best Answer

When using a JDBC-JobStore on Oracle with version 2.2.1, I experienced the same problem.

In my case, I was running Quartz on a single node. However, I noticed the database machine was not time synchronized with the node running Quartz.

I activated ntpd on both the database machine and the machine running Quartz, and the problem went away after a few minutes.

Related Topic