Hazelcast:通知群集节点何时死亡

编程入门 行业动态 更新时间:2024-10-26 02:29:32
本文介绍了Hazelcast:通知群集节点何时死亡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我是Hazelcast的新手. 我正在建立一个群集,其中不同的节点负责不同的活动. 当一个节点死亡时,我希望其他节点能够注意到它们,因此它们可以在它们之间重新分配死节点的活动.这可能吗? 我已经为此进行了一些研究,但是找不到任何有用的东西.任何帮助,将不胜感激:)

I am quite a newbie to Hazelcast. I'm building a cluster where different nodes take in charge different activities. When a node dies, I'd like other nodes to notice, so they can reassign the dead node's activities among themselves. Is this possible? I have already made some research for this, but I couldn't find anything useful. Any help would be appreciated :)

推荐答案

此处有多种方法,可能最简单的描述方法是 docs.hazelcast/docs/3.8.5/javadoc/com/hazelcast/core/MembershipListener.html

There are a number of ways here, probably the simplest for what you describe is docs.hazelcast/docs/3.8.5/javadoc/com/hazelcast/core/MembershipListener.html

但是,您实际上并不希望节点首先死亡,这可能值得解决.

However, you don't really want nodes dying in the first place, that's probably worth resolving.

此外,听起来您正在尝试自己管理工作负载的放置,让Hazelcast更轻松地为您完成工作-例如带有信号灯.

Plus, it sounds like you're trying to manage workload placement yourself, simpler to let Hazelcast do it for you -- with for example with semaphores.

更多推荐

Hazelcast:通知群集节点何时死亡

本文发布于:2023-11-25 15:52:08,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1630374.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:节点   通知   Hazelcast

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!