-
Notifications
You must be signed in to change notification settings - Fork 980
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
JuiceFS connection to s3 delay due to missing IMDSv2 in EKS cluster #5222
Comments
We may need to upgrade the aws sdk |
ref: aws/aws-sdk-go#3066 aws/aws-sdk-go#2972 |
@cuichenli |
@cuichenli Can you test if this pull request #5231 solves your problem ? |
What happened:If the EKS cluster does not have IMDSv2 enabled, JuiceFS may experience a delay of approximately 4 minutes before successfully connecting to S3. To clarify, if a node in the cluster is not compatible with IMDSv2, the AWS client will attempt to connect to the V2 metadata store using commands similar to
curl -X PUT "http://169.254.169.254/latest/api/token"
However, this connection will time out only after 4 minutes. During this time, the JuiceFS client will hang without providing any error message, which can be confusing, even though the connection will eventually succeed.
What you expected to happen: maybe detect if the cluster is IMDSv2 compatiable before trying to get the credentials, or let it fail quicker so user would not wait for 4 minutes.
How to reproduce it (as minimally and precisely as possible): create one eks cluster with IMDSv2 disabled
The text was updated successfully, but these errors were encountered: