[英]Quartz - Allow concurrent execution
Is it possible to trigger a Job instance on two (or more) nodes in an environment using Clustering with JDBC-JobStore? 使用JDBC-JobStore群集可以在环境中的两个(或多个)节点上触发Job实例吗?
For most usecases we trigger one Job instance on one node. 对于大多数用例,我们在一个节点上触发一个Job实例。 In this particular case I want to have a Job triggered on all nodes at the same time .
在这种情况下,我想在所有节点上同时触发一个Job。 Each instance of the Job handles a chunk of a large dataset, and I want the Jobs to run in parallel.
Job的每个实例都处理大型数据集的一部分,我希望Jobs可以并行运行。
Environment: Java/Jetty/Docker/Rancher. 环境:Java / Jetty / Docker / Rancher。 Using quartz-config.xml
使用quartz-config.xml
When I want to trigger a Job on only one node I use Quartz
, and when I want to trigger a job on all nodes I use EJBTimer
. 当我只想在一个节点上触发作业时,我使用
Quartz
,而当我想在所有节点上触发作业时,则使用EJBTimer
。 (but I don't know if you are using EJB in your project). (但是我不知道您是否在项目中使用EJB)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.