Hazelcast群集成员崩溃导致失去所有计划的任务
我们正在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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试使用持久的执行者
也可能是一个好主意为什么该过程首先崩溃了。
Try using the Durable Executor
Probably a good idea also to find why the process crashed in the first place.