-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Severe Performance Degradation for S3 using SDK 1.8.32 #1440
Comments
Hi @lintonv , |
Hi @KaibaLopez This is the gist of the code -
S3 Client setup
This is the same code we use for SDK Version 1.7.336 (and the latest version 1.8.32) |
@KaibaLopez - I have root caused this. When I add Can you explain why? And is there a better solution other than what I have determined? |
ahh, ok so I'm almost certain I know what the issue is then: What's going on there is that since version 1.8 we've changed the Aws::Client::ClientConfiguration default constructor to search for the region (where as before 1.8 we had a hard coded default of "us-east-1"). Part of that change is looking through the ec2 metadata, which can take a long time. By having AWS_EC2_METADATA_DISABLED it avoids doing this search.
Not currently, that is actually the workaround we recommend. |
Thank you @KaibaLopez. Was this documented somewhere? Did I just miss that? If it is not documented, could you please make sure it is? |
@KaibaLopez - we saw segfaults and other issues with that flag on EC2 environments. We have a system that has a mixture of code running on EC2 and running outside AWS but depending on S3 clients. Is there an alternative way to not use that flag? Maybe configure the client in a different way? |
@lintonv ,
either that or changing the source code directly- on clientConfiguration.cpp remove lines 127-134. |
Thanks @KaibaLopez |
Not really, it just means that it won't do it for you. |
mark |
Confirm by changing [ ] to [x] below:
Platform/OS/Hardware/Device
What are you running the sdk on?
Ubuntu 18.04 (x86_64)
Describe the question
We have been using SDK version 1.7.336 for a while. But we need some of the new HttpClient features in 1.8. So we upgraded to 1.8.32.
We saw our S3 transactions - puts, gets, lists all decrease in performance significantly
For example - for uploading data to S3 -
This is a significant performance regression
Here's the build info (we use bazel)
How do I track where the problem is?
Logs/output
Nothing from a logs point of view
The text was updated successfully, but these errors were encountered: