-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
ECS services_stable waiter does not await load balance registration. #1021
Comments
@jamesls any thoughts on this? |
Seems like it could work. One thing that I am a little hesitant about is if we can always rely on that message being there (and it is part of the first event) and that the message value will never change. Seems like a lot of assumptions, but if these assumptions can be confirmed then I think we can look to updating it. I think we need to do research though into what is the for-sure qualifier for when a ECS service is considered stable. |
@kyleknap thanks for the response. I share your reservations about relying on the event message text... I filed a support case for which I think an inquiry as been submitted to the ECS team to provide advice on this issue. Would it help if I shared that case number with you (so as not to duplicate inquiries)? |
No worries about the case number. We will probably be looped in at some point with the case you opened. Thanks for driving this! |
Checking in as this issue hasn't received any comments in a few years. Waiter models are now owned by service teams as those model definitions are used across AWS SDKs. To request waiter updates going forward we recommend reaching out through AWS Support or creating an issue here in our cross-SDK repository: https://github.com/aws/aws-sdk/issues. |
The services_stable waiter succeeds when the number of deployments is 1 and the runningCount matches the desiredCount. Those conditions are satisfied before a container instance is registered with a load balancer (for services having a load balancer).
I do not see any formal attribute that indicates when an ECS Service with a load balancer stabilized, but the first event message will end with
has reached a steady state.
following successful registration.Can we check the event message with the jmespath expression to determine when the service has stabilized?
I found this expression produces the expected result:
I suppose checking the event message actually obviates the need for the first two checks, so it could be simplified as:
If checking the event message in the waiter is unacceptable, do you have any suggestions on how to use the ECS / ELB APIs to make this check?
The text was updated successfully, but these errors were encountered: