Clustering - Job running always on 1 instance #2326
Unanswered
s3YwCf2ZbfJG4SHAfjQMAjtsf
asked this question in
General
Replies: 1 comment 1 reply
-
As written in the Quartz documentation, the node that will fire the trigger is quite random. Load-balancing occurs automatically, with each node of the cluster firing jobs as quickly as it can. When a trigger’s firing time occurs, the first node to acquire it (by placing a lock on it) is the node that will fire it. https://www.quartz-scheduler.net/documentation/quartz-3.x/configuration/reference.html#clustering |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
V3.5.0
Same machine, 2 sites.
Instance Name the same
Instance Id shown from sql statement below.
Cluster with 2 instances
1 job shows in the Crystal Dashboard properly. (Once per minute execution)
Clustering enabled
Disallow concurrency
Issue: I was hoping it would switch between instances but it seems like the job is always running on 1 instance.
(Separate problem) According to my logs, after restarting the sites over a few minutes, it seems like the job was running on both sites.
Thanks for any suggestions. Please let me know if additional information is needed.
SCHEDULER_STATE table:
Scheduler start code:
Single Job:
Beta Was this translation helpful? Give feedback.
All reactions