autoscaler icon indicating copy to clipboard operation
autoscaler copied to clipboard

Don't scale down ASGs when placeholder nodes are discovered

Open theintz opened this issue 1 year ago • 12 comments

What type of PR is this?

/kind bug

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #5829

Special notes for your reviewer:

Does this PR introduce a user-facing change?

[AWS] ASGs are no longer scaled down when there are capacity issues within the ASG

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


theintz avatar Jun 09 '23 13:06 theintz

CLA Missing ID CLA Not Signed

  • :x: The email address for the commit (03f138dc5d850bea15136db9aae0ec9bfd368bff) is not linked to the GitHub account, preventing the EasyCLA check. Consult this Help Article and GitHub Help to resolve. (To view the commit's email address, add .patch at the end of this PR page's URL.) For further assistance with EasyCLA, please submit a support request ticket.

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: theintz Once this PR has been reviewed and has the lgtm label, please assign jaypipes for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

k8s-ci-robot avatar Jun 09 '23 13:06 k8s-ci-robot

Welcome @theintz!

It looks like this is your first PR to kubernetes/autoscaler 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes/autoscaler has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. :smiley:

k8s-ci-robot avatar Jun 09 '23 13:06 k8s-ci-robot

CLA Signed

The committers listed above are authorized under a signed CLA.

  • :white_check_mark: login: theintz / name: Tobias Heintz (dfd4f233baf8f3802d6cc3d7a6c8e9f4ad496f5e)

/assign @gjtempleton

gjtempleton avatar Jun 15 '23 16:06 gjtempleton

We've deployed this patch on our clusters a week ago (patched into v1.26.3) and it appears to have stopped the problems outlined in #5829. Looking forward to your feedback.

theintz avatar Jun 20 '23 11:06 theintz

I'm not familiar with AWS's ASG, but I think one use case should be consider(correct me if I'm wrong):

If EC2 is out of stock and ASG can not create new instances, CA will delete these nodes after MaxNodeProvisionTime(default 15m). If the desired instance number of ASG is not modified, new instances will still be created and registry to cluster when stock is restored, which is not the expected behavior.

qianlei90 avatar Jun 20 '23 12:06 qianlei90

@jaypipes @gjtempleton any feedback?

theintz avatar Aug 09 '23 08:08 theintz

The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle stale
  • Close this PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Jan 20 '24 23:01 k8s-triage-robot

The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle rotten
  • Close this PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

k8s-triage-robot avatar Mar 07 '24 13:03 k8s-triage-robot

/remove-lifecycle rotten

apy-liu avatar Apr 02 '24 16:04 apy-liu