Using Quartz to Schedule Single Job Across Multiple Stateless App Servers

后端 未结 1 1560
一向
一向 2021-02-04 01:42

I have a layer of identical app servers behind a load balancer. For operational reasons I have the constraint that the application configuration on both app servers must be iden

相关标签:
1条回答
  • 2021-02-04 01:54

    Do you think this will work for you? http://www.quartz-scheduler.org/documentation/quartz-2.3.0/configuration/ConfigJDBCJobStoreClustering.html Excerpt from the link

    Clustering currently only works with the JDBC-Jobstore (JobStoreTX or JobStoreCMT), and essentially works by having each node of the cluster share the same database.

    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.`

    0 讨论(0)
提交回复
热议问题