如何扩展 Quartz 调度程序?

发布于 2024-07-22 05:10:46 字数 340 浏览 10 评论 0原文

我计划使用 Quartz 调度程序,因为我读到了很多关于它的好意见。

我的问题如下:在任何给定时间,系统中都会有数千个触发器。 大多数触发器只会触发一个事件并消失。 此外,我很可能不得不在分配后取消许多工作(基于新的输入)。

Quartz 可以扩展到这个程度吗? 推荐哪个JobStore? 我计划使用 JDBC 而不是 mysql。

添加信息:我的作业将发送电子邮件或通过 HTTP 发布将数据发布到其他服务(通过 WAN)。

I plan to use the Quartz scheduler as I read many good opinions about it.

My problem is as follows: I will have thousands of triggers living in the system at any given time. Most of the triggers will fire just one event and die. In addition, it is very likely I will have to cancel many jobs after their allocation (based on new input).

Can Quartz scale to this? Which JobStore is recommended? I planned to use the JDBC one over mysql.

Added Information: My jobs will either send an e-mail or post data via HTTP post to other services (over WAN).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

-残月青衣踏尘吟 2024-07-29 05:10:46

常见问题解答中有一些提示和建议:

Quartz 能够运行多少个作业?

答案摘录:

所以我只想说,有一些 Quartz 正在管理数十万个作业和触发器,并且在任何给定时刻执行数十个作业 - 甚至没有利用 Quartz 的负载-平衡能力。

Quartz Users 论坛中也有一些讨论,其中有在类似条件下使用过 Quartz 的开发人员的经验报告。

更新 2015-01-12: 不幸的是,上面列表中的链接论坛移动后崩溃了,我无法找到新的工作链接。 无论如何,我都会留下链接,以防它们帮助从 archive.org 或其他地方挖掘信息。 Quartz 官方论坛现为 Google 网上论坛上的 quartz-scheduler

There are some tips and recommendations in the FAQ:

How many jobs is Quartz capable of running?

An excerpt from the answer:

So let me just say, there are installments of Quartz out there that are managing hundreds-of-thousands of Jobs and Triggers, and that are, at any given moment in time executing several dozens of jobs – without even utilizing Quartz’s load-balancing capabilities.

There is also some discussion in the Quartz Users forum, with experience reports from developers who have used Quartz under similar conditions.

Update 2015-01-12: Unfortunately, the links in the list above broke when the forum was moved, and I'm unable to find new working links. I'll leave the links anyway, in case they help digging out the info from archive.org or elsewhere. The official Quartz forum is now quartz-scheduler on Google Groups.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文