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

Add ECS Service scale up/down controls #2197

Merged
merged 3 commits into from
Feb 21, 2017
Merged

Conversation

ekimekim
Copy link
Contributor

@ekimekim ekimekim commented Feb 6, 2017

Adds Scale Up / Scale Down controls for ECS services in the same manner as Kubernetes Replica Sets/Deployments.

Note this requires an additional permission "ecs:UpdateService". Documentation will need to be changed to include this.
However I don't know where that particular documentation is kept (perhaps an argument for keeping the documentation in-repo,
so it can be modified in conjunction with code changes instead of as an afterthought).

Partially addresses #2051

@ekimekim ekimekim requested a review from 2opremio February 6, 2017 22:21
These controls do nothing for now, this was just to get the control buttons working
@ekimekim ekimekim force-pushed the mike/ecs/scale-controls branch from 63288ed to 5a47717 Compare February 7, 2017 22:57
@ekimekim
Copy link
Contributor Author

ekimekim commented Feb 7, 2017

rebased onto master now that #2186 is merged.

@ekimekim
Copy link
Contributor Author

ekimekim commented Feb 9, 2017

Tests failed due to #2220, retrying for now since this obviously isn't happening in most test runs.

ServiceDesiredCount: fmt.Sprintf("%d", service.DesiredCount),
ServiceRunningCount: fmt.Sprintf("%d", service.RunningCount),
report.ControlProbeID: r.probeID,
}).WithLatestActiveControls(ScaleUp, ScaleDown))

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

@2opremio
Copy link
Contributor

2opremio commented Feb 9, 2017 via email

@2opremio
Copy link
Contributor

@ekimekim ping

ekimekim added a commit that referenced this pull request Feb 16, 2017
as currently this would make it disappear (#2085).
See also #2197 (comment)
@ekimekim
Copy link
Contributor Author

PTAL

ScaleUp: {Dead: false},
// We've decided for now to disable ScaleDown when only 1 task is desired,
// since scaling down to 0 would cause the service to disappear (#2085)
ScaleDown: {Dead: service.DesiredCount <= 1},

This comment was marked as abuse.

This comment was marked as abuse.

as currently this would make it disappear (#2085).
See also #2197 (comment)
@ekimekim ekimekim force-pushed the mike/ecs/scale-controls branch from 9278b73 to a49f1c9 Compare February 17, 2017 21:32
@ekimekim
Copy link
Contributor Author

ptal

@ekimekim ekimekim merged commit ed19e7a into master Feb 21, 2017
@ekimekim ekimekim deleted the mike/ecs/scale-controls branch February 21, 2017 19:03
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