-
Notifications
You must be signed in to change notification settings - Fork 712
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
Conversation
These controls do nothing for now, this was just to get the control buttons working
63288ed
to
5a47717
Compare
rebased onto master now that #2186 is merged. |
Tests failed due to #2220, retrying for now since this obviously isn't happening in most test runs. |
probe/awsecs/reporter.go
Outdated
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.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
Not AFAIK. But to be consistent with the rest (e.g. stop button for
containers) I think making it disappear is the right thing
…On Feb 9, 2017 11:10 PM, "Mike Lang" ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In probe/awsecs/reporter.go
<#2197>:
> @@ -126,10 +149,11 @@ func (r Reporter) Tag(rpt report.Report) (report.Report, error) {
for serviceName, service := range ecsInfo.Services {
serviceID := report.MakeECSServiceNodeID(cluster, serviceName)
rpt.ECSService = rpt.ECSService.AddNode(report.MakeNodeWith(serviceID, map[string]string{
- Cluster: cluster,
- ServiceDesiredCount: fmt.Sprintf("%d", service.DesiredCount),
- ServiceRunningCount: fmt.Sprintf("%d", service.RunningCount),
- }))
+ Cluster: cluster,
+ ServiceDesiredCount: fmt.Sprintf("%d", service.DesiredCount),
+ ServiceRunningCount: fmt.Sprintf("%d", service.RunningCount),
+ report.ControlProbeID: r.probeID,
+ }).WithLatestActiveControls(ScaleUp, ScaleDown))
Ack. Is there a way to have the minus button there but greyed out? I know
I can set it "dead" but that makes it disappear, not "disabled", iiuc?
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#2197>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACQOJLZBkvjvB2NrkynGGChOq_ozO3cNks5ra47igaJpZM4L4y4E>
.
|
@ekimekim ping |
as currently this would make it disappear (#2085). See also #2197 (comment)
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.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
as currently this would make it disappear (#2085). See also #2197 (comment)
9278b73
to
a49f1c9
Compare
ptal |
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