简体   繁体   中英

Does trigger API in quartz clustered scheduler triggers job in the same local machine or any machine in the cluster?

当我在集群设置中的Quartz中触发作业时,是否仅在同一台计算机上或集群设置中的任何计算机上触发该作业?

Quartz documentation on Clustering says (emphasis mine):

Only one node will fire the job for each firing. For example, if the job has a repeating trigger that tells it to fire every 10 seconds, then at 12:00:00 exactly one node will run the job, and at 12:00:10 exactly one node will run the job, etc. It won't necessarily be the same node each time - it will more or less be random which node runs it . The load balancing mechanism is near-random for busy schedulers (lots of triggers) but favors the same node that just was just active for non-busy (eg one or two triggers) schedulers.

Basically, once a job is scheduled to run, this information is written to the database. Any node from the cluster can read from this database and run the job.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM