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

Revise RebalancePlanGenerator to AllocationTweaker #1066

Merged

Conversation

garyparrot
Copy link
Collaborator

這個 PR 把 RebalancePlanGenerator 的名字改掉,改成 AllocationTweaker

這個物件原先的責任是產生出計劃,但是現在這個責任已經被 Balancer 物件的實作取代。這個物件現在專注在如何對一個 ClusterLogAllocation 進行調整(在 solution space 中走一步)。由於這個物件的名稱已經和他現在的責任不太一樣,為了避免造成誤會所以幫他改名。

幾個重大的改變:

  • AllocationTweaker#generate 現在直接回傳 ClusterLogAllocation
  • 一些跑很久的測試被關閉或減低計算量
  • Return the suitable plan early #682step 結果自 WebAPI 移除
  • 移除 RebalancePlanProposal

@garyparrot garyparrot self-assigned this Nov 1, 2022
Copy link
Contributor

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

LGTM

@garyparrot garyparrot merged commit 3483654 into opensource4you:main Nov 3, 2022
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.

2 participants