Skip to content

SQS first send message command 20x/30x slower than following ones #2427

Answered by yenfryherrerafeliz
emdotem asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @emdotem, since I already answered this issue here I will close this one. Basically, increasing the hop limit for ec2 instance from 1 to >1 should fix the issue. Basically, due that there hop limit defined for the ec2 instance metadata service is one, it will work fine from the ec2 instance, but if using docker, when resolving the credentials using the instance profile provider, the request to get the token from there will just time out ,with not responses. Then the secureMode variable is set to false here, which makes the credentials to be retrieved without the token option and the explains why we get valid credentials. So, the latency that you are experiencing is due that the request…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by yenfryherrerafeliz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
guidance Question that needs advice or information.
2 participants
Converted from issue

This discussion was converted from issue #2291 on April 18, 2022 21:55.