开发者

Can Terracotta let peers negotiate who is master?

开发者 https://www.devze.com 2023-01-29 20:04 出处:网络
I have a need for multiple peer processes (for redundancy), where only one should ever be actively processing. I know that Terracotta can help with master -> slave relationships, but can it help in th

I have a need for multiple peer processes (for redundancy), where only one should ever be actively processing. I know that Terracotta can help with master -> slave relationships, but can it help in this situation too? Can it be used to let the peers negotiate who is actively processing (and th开发者_高级运维en renegotiate when the active peer dies)?


You can use Cluster Events to achieve this.

The currently active node could be a simple clustered root pointing to one of the nodes. If this node leaves, the others could renegotiate.

0

精彩评论

暂无评论...
验证码 换一张
取 消