开发者

Quartz in high availability architecture

开发者 https://www.devze.com 2023-04-12 00:17 出处:网络
I have the next application architecture: Main DB Server -> (replicated) BackUp DB Server JBoss Cluster 1 (DS is main DB server), JBoss Cluster 2 (DS is bachup DB server)

I have the next application architecture:

Main DB Server -> (replicated) BackUp DB Server

JBoss Cluster 1 (DS is main DB server), JBoss Cluster 2 (DS is bachup DB server)

Both clusters are olways started up. When cluster 1 stop working, all requests will be redirected to cluster 2.

Issue: my application uses Quartz scheduler and triggers are stored in DB. I wan开发者_Python百科t to disable quartz jobs on the cluster 2 (or Quartz at all) and enable it when cluster 1 stopped. Does anyone know simple solution?

Thanks.


You'll need to start the quartz nodes in standy mode. Then you'll need something that calls start() on the proper set of nodes at the proper time. What this is (that calls start()) will need to be home-brewed.

0

精彩评论

暂无评论...
验证码 换一张
取 消