Skip to content

How to find out which node is an owner #11966

Answered by tristantarrant
hypsrizzari asked this question in Q&A
Discussion options

You must be logged in to vote

Ownership is per-entry.
Infinispan uses murmurhash3 as a consistent hashing algorithm. It divides the "hash space" into segments and maps each segment to a node. With the defaults (256 segments, 2 owners) and a 2-node cluster, each node will be primary owner of half of the segments and backup owner of the other half. In case of nodes joining and leaving, rebalancing happens and ownership changes.
Please read https://infinispan.org/docs/stable/titles/configuring/configuring.html#key-ownership_clustered-caches which provides an explanation about how Infinispan maps entries to nodes.
There are APIs that allow you to determine the primary owner of an entry.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hypsrizzari
Comment options

Answer selected by tristantarrant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants