Hazelcast群集成员崩溃导致失去所有计划的任务

发布于 2025-01-26 15:35:41 字数 181 浏览 3 评论 0原文

我们正在Hazelcast群集中运行4个Java应用程序实例。我们使用计划执行器服务时间表方法安排了2000年的任务。 Hazelcast分区所有这些2000个任务在4个实例中。由于某种原因,群集成员崩溃了,因此丢失了由崩溃节点拥有的所有任务丢失,剩下的所有3个群集成员都完成了分配任务。

因此,我们如何克服这个问题以避免丢失的任务。

We are running 4 instances of our java application in hazelcast cluster. We scheduled around 2000 task using schedule executor service schedule method. Hazelcast partition all these 2000 tasks across the 4 instances. Due to some reason one of the cluster member crashes then all the task that are assign to the partition that are owned by the crashed node are lost, rest all 3 cluster member completed their assign task.

So how can we overcome this problem to avoid the lost tasks.

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

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

发布评论

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

评论(1

回眸一遍 2025-02-02 15:35:41

尝试使用持久的执行者

也可能是一个好主意为什么该过程首先崩溃了。

Try using the Durable Executor

Probably a good idea also to find why the process crashed in the first place.

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