-
Notifications
You must be signed in to change notification settings - Fork 909
Slow requests to get credentials from InstanceProfileCredentialsProvider #1667
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
Comments
Hi @ZeevG what version of the SDK are you using? |
Hi @debora-ito we're using version 2.10.41. It does look like there have been some changes to InstanceProfileCredentialsProvider recently. I'll try upgrading to 2.10.73. |
Actually we are experiencing this too, it seems to be an issue on the service side. We'll reach out to the service team and will update when we hear back. |
That's because we have reduced connectionTimeout and readtimeout to 1 sec in #1568 :) |
We're getting exactly the same issue with the SES client. What's the recommended fix? Will try turning on asyncCredentialUpdateEnabled, but presumably it will still error and generate ERROR logs when it times out? Using SDK version 2.15.45. Thanks! |
Hi! I'm also interested in this one. I'm having intermittent latency issues, reaching the non-configurable 1 sec read timeout multiple times per day, while the SDK is fetching credentials from IMDS. Not being able to configure a timeout shorter than 1 sec is problematic: my application is latency sensitive. |
We are also facing the same latency issue. Any estimation of when it will be resolved? |
We are facing the same latency issue at Cardless |
@zoewangg or @debora-ito we are also facing the same issue, does enabling async token refresh ( |
Hi! I talked about this issue and described our custom solution in this article. |
This issue was created a long time ago, and we haven't had any recent reports of high latency on the IMDS side, so I'll mark this to close soon. If anyone is still experiencing this, please raise a fresh new github issue and provide the client side metrics you generated showing the credentials fetch duration. |
It looks like this issue has not been active for more than five days. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please add a comment to prevent automatic closure, or if the issue is already closed please feel free to reopen it. |
I've noticed that the first request using
SqsAsyncClient
takes around 5000ms. This seems to be caused byInstanceProfileCredentialsProvider
. The slow request seems to re-occur roughly every hour as the credential cache expires.Stack trace of where 99% of time was spent in a slow request.
I noticed that there is a similar issue for v1 of the java sdk. I am running this code from within a docker container, could my issue be related? aws/aws-sdk-java#2171
Any thoughts would be awesome, thanks!
The text was updated successfully, but these errors were encountered: