我是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:通知群集节点何时死亡
发布评论