Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

优化均分槽位 #21

Open
doyoubi opened this issue Aug 9, 2016 · 0 comments
Open

优化均分槽位 #21

doyoubi opened this issue Aug 9, 2016 · 0 comments

Comments

@doyoubi
Copy link
Contributor

doyoubi commented Aug 9, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant