Skip to content

feat(pool): add scaleStrategy to control scaling behavior#604

Merged
Spground merged 6 commits intoalibaba:mainfrom
fengcone:feature/public-scaleLimiter
Mar 30, 2026
Merged

feat(pool): add scaleStrategy to control scaling behavior#604
Spground merged 6 commits intoalibaba:mainfrom
fengcone:feature/public-scaleLimiter

Conversation

@fengcone
Copy link
Copy Markdown
Collaborator

Summary

  • add scaleStrategy to control the scaling pods rate and enhance protection of various system components.

Testing

  • Not run (explain why)
  • Unit tests
  • Integration tests
  • e2e / manual verification

Breaking Changes

  • None
  • Yes (describe impact and migration path)

Checklist

  • Linked Issue or clearly described motivation
  • Added/updated docs (if needed)
  • Added/updated tests (if needed)
  • Security impact considered
  • Backward compatibility considered

- Introduced ScaleStrategy with MaxUnavailable option in PoolSpec to limit unavailable pods during scaling
- Enforced maxUnavailable constraint in pool controller to control concurrent pod creation
- Default maxUnavailable set to 25% if not specified, with a minimum of 1 pod
- Added utility functions to calculate maxUnavailable and count not ready pods
- Updated CRD schema to include scaleStrategy field with proper validation
- Generated deepcopy methods for ScaleStrategy type
- Added comprehensive e2e tests to verify scaling behavior with various maxUnavailable settings including default, percentage, and absolute number
# Conflicts:
#	kubernetes/internal/controller/pool_controller.go
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dc3b6f13a4

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Copy link
Copy Markdown
Collaborator

@Spground Spground left a comment

Choose a reason for hiding this comment

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

LGTM

@Spground Spground merged commit 84a4ed8 into alibaba:main Mar 30, 2026
11 checks passed
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