Repository navigation
[driver/s3] Use aws/aws-sdk-go instead of goamz for s3 driver and cloudfront - #1385
Conversation
|
@BrianBland Great looking numbers. Would it be a good idea to adopt this as a separate, experimental driver (say, |
|
Definitely +1 on not forcing the new code on people. Either a new, differently named driver, or a flag/config value in the existing driver ( |
d649d68 to
769b313
Compare
Not initially. We just don't know how stable this is. Long term, I don't want us to maintain two copies. 😸 |
Surely not :) - as soon as the "new" one would be stable enough, the other one would instantly become "unmaintained, use as-is" (though still available for some time so people have time to migrate away). |
|
After fixing the connection pooling in docker/goamz, the performance wins in this client change are no longer statistically significant in my testing. Whereas this does seem to have a much better v4 auth implementation, I'd rather stick with the known functional s3 client (goamz) over the auto-generated aws-sdk-go for now. |
769b313 to
eba06fb
Compare
|
Updated to keep both s3 drivers, registers new one as "s3" and "s3aws", registers old driver as "s3goamz" |
eba06fb to
b678b3f
Compare
Current coverage is
|
b678b3f to
db97e27
Compare
|
Looks like hundreds of the files being added in this PR are from the corpus of the fuzz test for |
|
|
@aaronlehmann vendoring fix upstreamed through go-jmespath -> aws-sdk-go via aws/aws-sdk-go#538 |
|
Nice, that was fast. |
db97e27 to
3f8baa1
Compare
|
Yeah, this really helps boost confidence in using this library instead of goamz |
|
rebase please 💳 |
3f8baa1 to
d69affe
Compare
|
Rebased |
|
This will need another rebase to pick up the build fix. 😿 |
da9c0e5 to
3c36dd3
Compare
|
Added support for custom UA strings, storage classes (reduced redundancy) |
3c36dd3 to
3b0721d
Compare
3b0721d to
420a7e4
Compare
|
LGTM This PR also uses |
|
Good call, still working on testing the cloudfront signer now |
420a7e4 to
275d4ac
Compare
|
@RichardScothern confirmed cloudfront middleware is working, also added a bit of extra code for handling incomplete "baseurl" fields (adding the scheme and trailing slash) |
|
registry/storage/driver/s3-aws/s3.go:4
|
Keeps old s3 driver, renames to s3goamz, registers new s3 driver as both "s3" and "s3aws" Changes cloudfront middleware to use aws-sdk-go Signed-off-by: Brian Bland <[email protected]>
275d4ac to
1319be2
Compare
|
@dmcgowan updated package comments for both S3 drivers |
|
LGTM |
[driver/s3] Use aws/aws-sdk-go instead of goamz for s3 driver and cloudfront
[driver/s3] Use aws/aws-sdk-go instead of goamz for s3 driver and cloudfront
[driver/s3] Use aws/aws-sdk-go instead of goamz for s3 driver and cloudfront
I didn't change any of the s3 driver logic, only the s3 client calls to use this other library.
Caveats: V2 auth not supported, EC2 file credentials untested, cloudfront untested.
Some very unscientific tests show a 45% time reduction for running the s3 driver tests on my local computer as compared to master, and a 40% time reduction as compared to #1381 (connection pooling enabled).