apache / kvrocks-controller

Apache Kvrocks Controller is a cluster management tool for Apache Kvrocks.
https://kvrocks.apache.org/
Apache License 2.0
78 stars 42 forks source link

Improve the operation of slot in SlotRanges #169

Closed git-hulk closed 2 months ago

git-hulk commented 2 months ago

Currently, the continuous slot ranges won't be merged while the new slot is added which is expected in Redis behavior.

For example, we now have below slot ranges in one shard: [1,100], [102, 200], [202, 300] and the slot 101 was added to this shard, we would like to become: [1, 200], [202, 300] instead of [1, 101], [102, 200], [202, 300].