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: undeprecate min_elb_capacity; restore min capacity waiting #4864

Merged
merged 1 commit into from
Jan 27, 2016

Conversation

phinze
Copy link
Contributor

@phinze phinze commented Jan 27, 2016

It was a mistake to switched fully to == when activating waiting for
capacity on updates in #3947. Users that didn't set min_elb_capacity == desired_capacity and instead treated it as an actual "minimum" would
see timeouts for every create, since their target numbers would never be
reached exactly.

Here, we fix that regression by restoring the minimum waiting behavior
during creates.

In order to preserve all the stated behavior, I had to split out
different criteria for create and update, criteria which are now
exhaustively unit tested.

The set of fields that affect capacity waiting behavior has become a bit
of a mess. Next major release I'd like to rework all of these into a
more consistently named block of config. For now, just getting the
behavior correct and documented.

Fixes #4792

//
// If "wait_for_elb_capacity" is specified, will also wait for that number of
// instances to show up InService in all attached ELBs. See "Waiting for
// Capacity" in docs for more discussion of the feature.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This comment needs to be updated, will follow up w/ that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in 4d572a4

@phinze phinze force-pushed the phinze/aws-min-elb-cap-regression branch 2 times, most recently from 4d572a4 to 5348932 Compare January 27, 2016 19:20
It was a mistake to switched fully to `==` when activating waiting for
capacity on updates in #3947. Users that didn't set `min_elb_capacity ==
desired_capacity` and instead treated it as an actual "minimum" would
see timeouts for every create, since their target numbers would never be
reached exactly.

Here, we fix that regression by restoring the minimum waiting behavior
during creates.

In order to preserve all the stated behavior, I had to split out
different criteria for create and update, criteria which are now
exhaustively unit tested.

The set of fields that affect capacity waiting behavior has become a bit
of a mess. Next major release I'd like to rework all of these into a
more consistently named block of config. For now, just getting the
behavior correct and documented.

(Also removes all the fixed names from the ASG tests as I was hitting
collision issues running them over here.)

Fixes #4792
@phinze phinze force-pushed the phinze/aws-min-elb-cap-regression branch from 5348932 to c70eab6 Compare January 27, 2016 19:31
@phinze
Copy link
Contributor Author

phinze commented Jan 27, 2016

Alright all doc'd and comment'd and such. Good for review.

@catsby
Copy link
Contributor

catsby commented Jan 27, 2016

I approve 👍

phinze added a commit that referenced this pull request Jan 27, 2016
…sion

aws: undeprecate min_elb_capacity; restore min capacity waiting
@phinze phinze merged commit da872ee into master Jan 27, 2016
@phinze phinze deleted the phinze/aws-min-elb-cap-regression branch January 27, 2016 20:17
@ghost
Copy link

ghost commented Apr 28, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wait_for_elb_capacity vs. min_elb_capacity
3 participants