-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Ensure distinct replication Signed-off-by: Filip Petkovski <[email protected]> * Precalculate hashring replicas The ketama hashring algorithm can cause requests to be replicated to the same node since one node can claim two subsequent sections in the ring. In addition to this, the replication algorithm in the receive handler assumes that a single batch will always be replicated to one node. While this is a good optimization for the hashmod algorithm, it cannot be generalized for every other type of hashring. This commit fixes both issues. Signed-off-by: Filip Petkovski <[email protected]> Signed-off-by: Filip Petkovski <[email protected]>
- Loading branch information
1 parent
72e9156
commit ee512ae
Showing
5 changed files
with
149 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.