سؤال

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 then 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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top