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

Change balancer to Use NodeTopicSizeCost to evaluate cost #640

Merged
merged 1 commit into from
Aug 27, 2022

Conversation

chia7712
Copy link
Contributor

  1. NodeTopicSizeCost 提供 ClusterCost
  2. 撰寫新的ClusterInfo產生方式,盡量保持Replica資訊的完整性
  3. Balancer APIs現在改用topic size作為評估手段

* @param allocation offers new host and data folder
* @return new cluster info
*/
public static ClusterInfo update(ClusterInfo clusterInfo, ClusterLogAllocation allocation) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@qoo332001 麻煩看一下,既有的merge產生太多"假資訊",這會讓cost function很難使用。但我不確定為何你當時填寫這麼多假資訊的目的為何,所以我保留了merge並同時寫了一隻新的方法來產生ClusterInfo

@chia7712 chia7712 merged commit 6f0f7c6 into opensource4you:main Aug 27, 2022
@chia7712 chia7712 deleted the change_topic_size branch November 6, 2022 09:09
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

Successfully merging this pull request may close these issues.

1 participant