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

ignore high replica number for the first 30 min #382

Merged
merged 2 commits into from
Mar 7, 2024
Merged

Conversation

sanposhiho
Copy link
Collaborator

@sanposhiho sanposhiho commented Mar 7, 2024

What this PR does / why we need it:

To prevent the deployment from creating too many but too small replicas, Tortoise has the feature that when the replica number goes higher than 30 (this threshold is configurable via PreferredMaxReplicas), it tries to make Pods vertically bigger.
In the current implementation, it happens every 30 min.
So, it's like:
[replica goes high] → make Pods bigger -30m-> make Pods bigger if still high → ...

This PR changes it ignores a replica number higher than PreferredMaxReplicas for the first 30 min so that we can ignore high replica number during a short period of time.
So, it'll be like:
[replica goes high] -30m-> make Pods bigger -30m-> make Pods bigger if still high → ...

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

@sanposhiho sanposhiho changed the title ignore VerticalScalingBasedOnPreferredMaxReplicas when a replica number is smaller than minreplicas ignore high replica number for the first 30 min Mar 7, 2024
@sanposhiho sanposhiho merged commit 7e5934d into main Mar 7, 2024
3 checks passed
@sanposhiho sanposhiho deleted the recommender branch March 7, 2024 06:42
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