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

AWS: Decrease current size only once #2296

Merged
merged 1 commit into from
Sep 15, 2019

Conversation

johanneswuerbach
Copy link
Contributor

@johanneswuerbach johanneswuerbach commented Sep 4, 2019

Deleting a placeholder instance introduced in #2235 seems to decrease the in-memory ASG size twice, once in the deletion loop itself and once in decreaseAsgSizeByOneNoLock, which calls setAsgSizeNoLock and also updates the curSize

This is actually not causing issues yet, as the ASG cache is force refreshed after a deletion now

klog.V(2).Infof("Some ASG instances might have been deleted, forcing ASG list refresh")
return m.forceRefresh()
.

I still added a test to confirm that deleting placeholders actually works as expected.

//cc @piontec

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Sep 4, 2019
@bskiba bskiba added area/cluster-autoscaler area/provider/aws Issues or PRs related to aws provider labels Sep 4, 2019
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Sep 7, 2019
@johanneswuerbach
Copy link
Contributor Author

/assign @Jeffwan
/assign @piontec

@k8s-ci-robot
Copy link
Contributor

@johanneswuerbach: GitHub didn't allow me to assign the following users: piontec.

Note that only kubernetes members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

In response to this:

/assign @Jeffwan
/assign @piontec

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@Jeffwan
Copy link
Contributor

Jeffwan commented Sep 12, 2019

It looks good to me. hold for a while and see if @piontec has other options.

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 12, 2019
@Jeffwan
Copy link
Contributor

Jeffwan commented Sep 12, 2019

/lgtm

@losipiuk
Copy link
Contributor

/approve

@losipiuk
Copy link
Contributor

/lgtm
/approve
Thanks!

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: losipiuk

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

The pull request process is described 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 k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 15, 2019
@k8s-ci-robot k8s-ci-robot merged commit bcbf504 into kubernetes:master Sep 15, 2019
@johanneswuerbach johanneswuerbach deleted the aws-decrease-once branch September 15, 2019 18:15
@losipiuk
Copy link
Contributor

@Jeffwan sorry for merging this. I did not notice you asked @piontec to take a look at that too. Let me know if you feel we should revert the change for now.

@Jeffwan
Copy link
Contributor

Jeffwan commented Sep 17, 2019

@losipiuk Didn't hear back from @piontec yet. It's fine to merge it and I don't see problems .

@piontec
Copy link
Contributor

piontec commented Sep 17, 2019

Sorry for the delay, yes, it was definitely OK to merge.

k8s-ci-robot added a commit that referenced this pull request Sep 20, 2019
k8s-ci-robot added a commit that referenced this pull request Sep 20, 2019
k8s-ci-robot added a commit that referenced this pull request Sep 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/cluster-autoscaler area/provider/aws Issues or PRs related to aws provider cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants