[ECS] [request]: Add an ability to change the timeout time of ECS ServiceConnect
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Tell us about your request Could you add an abililty to change the timeout value of ECS ServiceConnect like the App Mesh? To my understanding, ECS ServiceConnect does not have that feature. In addintion, I confirmed that the upstream request was stopped after 15 seconds which are default limit of Envoy timeout.[1][2]
[1]
"request": {
"protocol": "http",
"method": "GET",
"path": "/",
"querystring": "size=1000-2000&sleep=9000-10000&status=200",
"header": {
"Accept": "*/*",
"Host": "gelbo-80-tcp",
"User-Agent": "curl/7.74.0",
"X-Envoy-Expected-Rq-Timeout-Ms": "15000",
"X-Forwarded-Proto": "http",
"X-Request-Id": "62ebccc2-7dd5-4de1-9234-1dff3a45f160"
},
[2] HTTP route components (proto) — envoy 1.26.0-dev-a9eb13 documentation https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/route/v3/route_components.proto#envoy-v3-api-field-config-route-v3-routeaction-timeout
timeout
(Duration) Specifies the upstream timeout for the route. If not specified, the default is 15s.
Which service(s) is this request for? ECS Service Connect
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard? Needing an ability to control the timeout on Envoy
Are you currently working around this issue? N/A Additional context N/A Attachments N/A
2 months and still no progress :(
Received a use-cases to allow increasing "x-envoy-expected-rq-timeout-ms" via support. Cx need the timeout to be longer than 15 Secs to prevent the connection from being pulled prematurely.
I asked AWS support and got this response:
Unfortunately, with the existing ServiceConnectConfiguration parameter we do not have have an option to override the default envoy timeout value, please refer [a]. However I could see that there is an open feature request [b] in our AWS container roadmap to provide ability to update this default timeout value and I have added my vote on behalf of you.
Unfortunately, I will not be able to provide an ETA on when this feature will be released. In the meantime it is best to keep an eye on the feature request [b] and add your voice in this feature request. You can also follow What’s New Page [c] and AWS Blogs [d] to know more about the future releases.
Reference: [a] : https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ServiceConnectConfiguration.html [b] : https://github.com/aws/containers-roadmap/issues/1958 [c] : https://aws.amazon.com/new/?whats-new-content-all.sort-by=item.additionalFields.postDateTime&whats-new-content-all.sort-order=desc&awsf.whats-new-categories=*all [d] : https://aws.amazon.com/blogs/aws/
Looks like no ETA on the issue for now
We are working on the design right now and will provide ETA soon.
I want the latest information.
ETA or serviceconnect timeout (default) to increase to 15 seconds or more.
thanks
Need an ETA as soon as possible. Please update
We can not provide an ETA on when this feature will be released. Please add your vote and keep an eye on this feature request and we will post updates as soon as we have them.
@herrhound Was disappointed seeing this issue after spending significant time on a huge monolith implementation effort. Appreciate the teams ongoing effort addressing this. In the interim, is there any workaround that you would suggest looking into?
@varunchillara27 - it really depends on your use case. I'd like to learn about the requests that take longer than 15 seconds in your case, and what level of timeout customization you'd expect.
@herrhound Multiple services invoked per API call, including OpenSearch, Redshift, and PostgreSQL connections, contribute to request durations exceeding 15 seconds. Service-to-service data retrieval from Redshift and transfer to S3 introduces additional delays. Optimizations, such as connection pooling, caching, and streamlining data transfer, will be taken care of, but the limit needs to be increased in first place for all of the above to be implemented.
In the meanwhile the work to enable customization of this timeout is in progress, would be very helpful a flat increasing of this value for everybody (e.g 30 or 60 seconds). Also considering that this disruptive limitation is not clearly mentioned in any ECS documentation I was able to find.
@francesco-avola-enginius We apologize that this limitation was not clearly mentioned in the ECS documents. I have shared this feedback with my team.
Just completed migration to ECS and now finding out about this issue in production with real workloads. This is a major problem/showstopper for real applications while they are under load and I don't see any good workaround. Other than implementing asynchronous flows or an ALB, does anyone know a solution here? REST requests and timeouts seem fundamental to ServiceConnect :)
Just completed migration to ECS and now finding out about this issue in production with real workloads. This is a major problem/showstopper for real applications while they are under load and I don't see any good workaround. Other than implementing asynchronous flows or an ALB, does anyone know a solution here? REST requests and timeouts seem fundamental to ServiceConnect :)
@patricksculley Had to make a hard and quick pivot to Service Discovery. Only after doing so I realized how easy and straightforward setting up ServiceConnect was. Kudos to the team for this amazing feature, hopefully this is resolved soon
Just completed migration to ECS and now finding out about this issue in production with real workloads. This is a major problem/showstopper for real applications while they are under load and I don't see any good workaround. Other than implementing asynchronous flows or an ALB, does anyone know a solution here? REST requests and timeouts seem fundamental to ServiceConnect :)
@patricksculley Had to make a hard and quick pivot to Service Discovery. Only after doing so I realized how easy and straightforward setting up ServiceConnect was. Kudos to the team for this amazing feature, hopefully this is resolved soon
Thank you for the suggestion, @varunchillara27. Yes, ServiceConnect was absurdly easy to setup and provides super-power capabilities. It's even working for my UDP and non-HTTP connections.
For my use case, I think I will go with a long-polling strategy that kicks off whenever the Gateway Timeout Exception is thrown (luckily I can amend both the client and the service with an additional endpoint). That should be fairly easy to unwind once there is a supported solution in place.
We have a production cutover planned in July, would be great to understand if there's any ETA, or we should move out of Service Connect - the timeout of 15 secs needs an increase for us well
i need this too. Because of this, the timeout is forced to 15 seconds for all requests executed on ECS, which I think is a big obstacle in migrating traditional (non-async) web services. Anything updated with information?
@Seiya6329 https://github.com/aws/containers-roadmap/issues/1958#issuecomment-1584831215 Has the statement been corrected? What document is it in? If you don't mind, could you give me the URL?
@Taikono-Himazin Our team is actively reviewing our AWS doc and working on this improvements. We apologize for the inconvenience and we really appreciate your understanding.
I will update this thread with the status on AWS doc review closer to end of this Month.
@Seiya6329 I have two services in ECS, that are communicating through ServiceConnect (a backend and a frontend).
My frontend is behind an LB and for long-running requests, I'm seeing that after 15s the connection is dropped and a 504 is returned.
Is what I'm experiencing related to this issue?