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

operator v1: allow upscale while decom in progress #333

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

birdayz
Copy link
Contributor

@birdayz birdayz commented Dec 2, 2024

Currently, the operator first checks if a decommission is in progress, and then skips the scaling handler.

This leads to upscaling being blocked, if a decommission is in progress. In some cases it still works, if the nodepool that wants to upscale gets called first, before the other nodepool that should start scaling down. I wouldn't call it a race condition, but definitely flawed logic.

This PR updates scale handler control flow, so it first considers scaling up, before rejecting scale-down because of in-progress decommission on a different node pool.

@birdayz birdayz marked this pull request as draft December 2, 2024 19:24
@birdayz birdayz marked this pull request as ready for review December 18, 2024 12:56
@birdayz
Copy link
Contributor Author

birdayz commented Jan 2, 2025

@RafalKorepta can you please have a look ? this is ready for review. thanks!

@RafalKorepta RafalKorepta merged commit fdfe86e into main Jan 2, 2025
5 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