English 中文(简体)
在多台机器上跳板时的组装
原标题:Quartz clustering setup when running in tomcat on multiple machines

I have a webapp which will run on 2 different machines. From the webapp it is possible to "order" jobs to be executed at specific times by quartz. quartz is running inside the webapp. Thus quartz is running on each of the two machines. I am using JDBC datastore to persist the jobs, triggers etc.

然而,这一想法是,只有一台机器能够经营工作,而另一台机器只能使用季茨来安排工作。 因此,只有一台机器才会开标(Seduler.start())。

In the documentation it says

除非用某种时间组合服务(daemon)同步进行,这种服务非常经常地运行(制鞋必须相互之间)。 见rel=“nofollow” http://www.boulder.nist.gov/timefreq/service/its.htm。 如果你不熟悉如何做到这一点。

从来没有开始(程序启动人)针对同一套数据库表进行非集中化审查,而任何其他案件正在运行(启动)。 你们可能会遇到严重的数据腐败,并且肯定会经历不规则的行为。

And i m not sure that the two machines in which my webapp is running have their clocks synchronized.

我的问题是: 如果在这种安置模式中仍然有采石机,只有一次采石机开始并经营工作,而另一例只能用于安排由一审完成的工作。

最佳回答

如果你将永远不会把起始()方法放在第二点上,那么你就不必担心会lock锁的同步。

However you will want to set the isClustered config prop to true to make sure that table-based locking is used when data is inserted/updated/deleted by both nodes.

问题回答

仅凭一线机开始并用另一台机器远程访问该机,究竟是什么? 您可以利用RMI/JMX安排工作。 或您可使用RemoteSlateulerreleaseer。

基本上不是拥有两个分组时间表,一个是工作,另一个是只能使用共享数据库,而只有一张一览表(server),而且你可以通过另一个机器、时间安排和监测工作。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签