Quartz.NET - Lesson 11: Advanced (Enterprise) Features

Lesson 11: Advanced (Enterprise) Features

Clustering

Clustering currently only works with the AdoJobstore (JobStoreTX). Features include load-balancing and job fail-over (if the JobDetail’s “request recovery” flag is set to true).

Enable clustering by setting the “quartz.jobStore.clustered” property to “true”. Each instance in the cluster should use the same copy of the quartz properties. Exceptions of this would be to use properties that are identical, with the following allowable exceptions: Different thread pool size, and different value for the “quartz.scheduler.instanceId” property. Each node in the cluster MUST have a unique instanceId, which is easily done (without needing different properties files) by placing “AUTO” as the value of this property.

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.

Never fire-up a non-clustered instance against the same set of tables that any other instance is running against. You may get serious data corruption, and will definitely experience eratic behavior.

« Lesson 10 Lesson 12 »

Search

 

Quartz.NET

Related

Project Supporters

SourceForge.net Logo