apache / incubator-horaedb-meta

Meta service of HoraeDB cluster.
https://horaedb.apache.org
Apache License 2.0
27 stars 15 forks source link

improve: generate a more uniform distribution #236

Closed ShiKaiWi closed 1 year ago

ShiKaiWi commented 1 year ago

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.