Authentication appears to be slow #2438
-
Version of AWS SDK for PHP? Version of PHP ( Describe the question The code is running on EKS, and we are using assumeRoleWithWebIdentityCredentialProvider with the token file provided by the Kubernetes ServiceAccount, as described here (including CredentialProvider::memoize()). We'd be grateful for any tips on how to avoid these slow requests. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
The first step to check this will be to add If the resulting log is short enough, feel free to post the whole thing on here, double checking that all private info like passwords is properly redacted; it should be automatically, but better safe than sorry. If the log is too long, please take a look at the most time consuming steps and post those portions of the log. Generally it's the actual service authentication call that takes the most time, but if it is happening in the PHP SDK itself, I can take a look at how to improve the latency. |
Beta Was this translation helpful? Give feedback.
-
Hi Sam, thanks for replying. I've uploaded a sample log output here: https://gist.github.com/ulrichsg/cd0b17e903bd2b525c7f6fb1797c8d8a Hope it helps. |
Beta Was this translation helpful? Give feedback.
-
Any news? I had to abandon SQS for this reason, the first call is very slow in production.. |
Beta Was this translation helpful? Give feedback.
-
Hi @ulrichsg, you could check the following issue since it seems to be related to your issue. There you can find more details about what the problem is and how you can fix it. Specifically this comment state what the solution is. Please do let me know if you have any questions. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Hi @ulrichsg, you could check the following issue since it seems to be related to your issue. There you can find more details about what the problem is and how you can fix it. Specifically this comment state what the solution is.
Please do let me know if you have any questions.
Thanks!