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

New cluster cost based on replica number #811

Merged
merged 1 commit into from
Oct 2, 2022

Conversation

chia7712
Copy link
Contributor

@chia7712 chia7712 commented Oct 2, 2022

as title. 基本有三種狀況:

  1. 只有一個節點時,成本總是為0
  2. 有多個節點,但 partitions 集中在一個節點上面,那成本是 long.max
  3. 其他狀況則是回傳(max - min)的值作為成本

@chia7712 chia7712 requested a review from qoo332001 October 2, 2022 14:49
@chia7712 chia7712 merged commit 142740a into opensource4you:main Oct 2, 2022
@chia7712 chia7712 deleted the add_replicas_cost branch November 6, 2022 09:08
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