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

fix: cn in the Bound phase should not be scaled in first #544

Closed
wants to merge 3 commits into from

Conversation

cyberchen98
Copy link
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

Fixes #
https://github.com/matrixorigin/MO-Cloud/issues/3920

What this PR does / why we need it:

Not Available

Special notes for your reviewer:

Not Available

Additional documentation (e.g. design docs, usage docs, etc.):

Not Available

@cyberchen98 cyberchen98 requested a review from aylei August 23, 2024 02:47
}

func (s *StoreScore) GenDeletionCost() int {
return s.SessionCount
deletionCost := s.SessionCount*sessionWeight + s.PipelineCount*pipelineWeight
Copy link
Contributor

Choose a reason for hiding this comment

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

sessionCount and pipelineCount can go easily over phaseWeight, e.g. serving 1000 sessions in one host is a common case

Comment on lines +173 to +174
for deletionCost > maxCost {
deletionCost >>= 1
Copy link
Contributor

Choose a reason for hiding this comment

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

buggy: maxCost would be larger than maxCost+1 after normalization

Copy link
Contributor

@aylei aylei left a comment

Choose a reason for hiding this comment

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

We have to figure out why scale-in does not specify certain pods, CloneSet controller should not make scale-in decision by design.

@cyberchen98
Copy link
Contributor Author

fixed in #547

@cyberchen98 cyberchen98 closed this Sep 6, 2024
@cyberchen98 cyberchen98 deleted the wangchen/fix-cnpool-scale-in branch September 9, 2024 08:45
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