Closed ShiKaiWi closed 1 year ago
Currently, the shard distribution over the registered nodes is not uniform, that is to say, some nodes may be idle while some ones may be very busy.
Refactor the consistent-uniform hash implementation to make it real uniform, and surely it may be a little bit less consistent compared with before.
Add the unit tests for the uniform and consistency.
Rationale
Currently, the shard distribution over the registered nodes is not uniform, that is to say, some nodes may be idle while some ones may be very busy.
Detailed Changes
Refactor the consistent-uniform hash implementation to make it real uniform, and surely it may be a little bit less consistent compared with before.
Test Plan
Add the unit tests for the uniform and consistency.