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

feat(scalingengine): Support app label to disable autoscaling #2824

Merged
merged 3 commits into from
May 22, 2024

Conversation

silvestre
Copy link
Member

@silvestre silvestre commented Apr 4, 2024

Background

During DevOps tasks such as deployments or periods where manual
scaling is required (e.g., in an outage situation) a simple and
quick way to disable autoscaling might be helpful that does not
involve editing or deleting the autoscaling policy.

Details

This PR introduces a label
app-autoscaler.cloudfoundry.org/disable-autoscaling.
If it is set on an app the app-autoscaler will not
scale it, even if a scaling policy is active.

@silvestre silvestre changed the title read annotations feat(deps): Add devbox config feat(scalingengine): Support app annotation to disable autoscaling Apr 4, 2024
@silvestre silvestre changed the title feat(deps): Add devbox config feat(scalingengine): Support app annotation to disable autoscaling feat(scalingengine): Support app annotation to disable autoscaling Apr 4, 2024
Copy link

sonarcloud bot commented Apr 4, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
37.3% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@silvestre silvestre added the allow-acceptance-tests This label needs to be added to enable the acceptance tests to run. label Apr 4, 2024
@silvestre silvestre force-pushed the read-annotations branch 2 times, most recently from 56b6d12 to cf62391 Compare May 16, 2024 15:11
local-flake/Gemfile Outdated Show resolved Hide resolved
local-flake/Gemfile Outdated Show resolved Hide resolved
@silvestre silvestre changed the title feat(scalingengine): Support app annotation to disable autoscaling feat(scalingengine): Support app label to disable autoscaling May 16, 2024
@silvestre silvestre force-pushed the read-annotations branch 2 times, most recently from 145fff4 to eeb9ec5 Compare May 17, 2024 16:30
@silvestre
Copy link
Member Author

The main commit is 84b078f - the other changes are unrelated and could be split out to their own PRs if necessary.

@silvestre silvestre marked this pull request as ready for review May 21, 2024 11:16
Copy link
Contributor

@bonzofenix bonzofenix left a comment

Choose a reason for hiding this comment

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

lgtm

@silvestre silvestre force-pushed the read-annotations branch 2 times, most recently from 9a36249 to d52ddc8 Compare May 22, 2024 08:10
# Issue

`uaac` was missing in the devbox. The version installed in the
`Makefile` could get out of date with the Ruby version and break.

# Fix

Add `uaac` in `local-flake`.

# Note

Having the gemset nix in the flake directory seem ugly, but moving it to
a subdirectory did not work on first try.
# Background
During DevOps tasks such as deployments or periods where manual
scaling is required (e.g., in an outage situation) a simple and
quick way to disable autoscaling might be helpful that does not
involve editing or deleting the autoscaling policy.

# Details
This PR introduces a label
`app-autoscaler.cloudfoundry.org/disable-autoscaling`.
If it is set on an app the app-autoscaler will not
scale it, even if a scaling policy is active.
Copy link

sonarcloud bot commented May 22, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
31.1% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@silvestre silvestre merged commit b44b05f into main May 22, 2024
28 of 29 checks passed
@silvestre silvestre deleted the read-annotations branch May 22, 2024 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
allow-acceptance-tests This label needs to be added to enable the acceptance tests to run. enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants