michaelklishin / quartz-mongodb

A MongoDB-based store for the Quartz scheduler. This fork strives to be as feature complete as possible. Originally by MuleSoft.
Other
247 stars 199 forks source link

Difference between isClustered #149

Closed korest closed 7 years ago

korest commented 7 years ago

Small questions regarding clustered mode. I have few jobs that are running and I'm using your library and I want to know if there any difference between running in clustered mode or not in case of parallel jobs execution.

As I can see if two server start the same job one will insert lock to the database and execute job and other one will fail to insert lock so will not execute the same job is is correct?

What problems can solve clustered mode? Thanks for info.

Also small improvement. In documentation you have section "Different time settings for cluster operations:" and all values have prefix "org.quartz.scheduler" but probably it should be "org.quartz.jobStore".

michaelklishin commented 7 years ago

This is a general Quartz clustering question, there is nothing specific to MongoDB.

Clustered mode means you don't depend on a single node. It can improve parallelism as a side effect but the idea first and foremost to run more than one node to improve availability.

korest commented 7 years ago

@michaelklishin Ok thank you! Will you update the section with time settings properties as I wrote or should I create a PR for that?

michaelklishin commented 7 years ago

@korest feel free to submit a PR. Thank you!