Skip to content

优化均分槽位 #21

Description

@doyoubi

现在均分槽位的算法(cluster.py中的slot_balance)在多次执行后会把槽位分得很散, 导致cluster nodescluster slots返回的数据非常大, 因此需要优化均分槽位的算法.
要求:
1 整个集群均分时尽可能少迁移槽位
2 不能迁移包含大量数据的槽位
3 整个集群均分后, 槽位尽可能连续 (集群中被切碎的槽位区间尽可能少)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions