Is there something similar to this that exists that also caches s3 objects locally?
How to Save 90% on your S3 Bill
91–100 of 103 posts
Re: How to Save 90% on your S3 Bill
#92Re: How to Save 90% on your S3 Bill
#93Earlier quoted context omitted.
Great point! I have never heard that, but it makes perfect sense. Hopefully I will remember in the future.
I don't agree, you should just know what they are. Defaults are helpful.
Re: How to Save 90% on your S3 Bill
#94Re: How to Save 90% on your S3 Bill
#95Because of the lack of fast and reliable s3 clients out there, I built https://github.com/rlmcpherson/s3gof3r , that can do over 1 Gbps with ease, both multipart uploads and parallelized downloads. The killer feature, though, is streaming that enables things like gof3r get -b -k | tar -x to extract directories tarred directories or any other streaming application. It also provides end-to-end md5 integrity checking. F…
Re: How to Save 90% on your S3 Bill
#96Earlier quoted context omitted.
> It should be prefetch_all_keys=False. It does not prefetch any key (maxkeys is set to 0), it performs a query on the bucket to validate that the bucket exists and blow up if the bucket does not exist. With validate=False, you can call get_bucket and get a bucket object where no remote bucket exists.
It sounds like an annoying limitation of the API that (apparently?) you can't cheaply validate whether a bucket exists. Two manual work-arounds that come to mind: - store a list of created buckets as keys in another bucket. - store a dummy file in each bucket you create. Either method allows you to check the existence of the bucket with a GET request rather than a more expensive LIST request, but both are hackish. It…
It looks like there now is: http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketHEA...
I'm guessing (hoping?) that didn't exist back when the feature was added to Boto, 7 years ago: https://github.com/boto/boto/commit/8410c365ee0120e073bf00bd...
Re: How to Save 90% on your S3 Bill
#97Because of the lack of fast and reliable s3 clients out there, I built https://github.com/rlmcpherson/s3gof3r , that can do over 1 Gbps with ease, both multipart uploads and parallelized downloads. The killer feature, though, is streaming that enables things like gof3r get -b -k | tar -x to extract directories tarred directories or any other streaming application. It also provides end-to-end md5 integrity checking. F…
From when I was looking into doing something similar, I recall s3 needing to know the content-length of upload parts up front. How do you handle that for streaming? Do you buffer in memory up to the max part size so that you can give the correct content-length header for the last part? I ask because my uses would include low-memory VMs so I'm curious about the memory overhead.
Re: How to Save 90% on your S3 Bill
#98Earlier quoted context omitted.
Don't you have too much to do?
I took the nickname because I always take on more than I have time for, yet find the time to complete everything that I take on.
Re: How to Save 90% on your S3 Bill
#99I wonder how much savings we're talking about. I always worry when engineers start talking about saving money.
I don't worry about cultivating a connection between engineering and business needs.
Re: How to Save 90% on your S3 Bill
#100Earlier quoted context omitted.
From when I was looking into doing something similar, I recall s3 needing to know the content-length of upload parts up front. How do you handle that for streaming? Do you buffer in memory up to the max part size so that you can give the correct content-length header for the last part? I ask because my uses would include low-memory VMs so I'm curious about the memory overhead.
You don't need the content length of what you are uploading for multipart uploads, see ( http://docs.aws.amazon.com/AmazonS3/latest/API/mpUploadIniti... ). For each part of a multipart upload that is sent, however, you do need to include the content-length header, so that may be what you are referring to. These have a minimum size set by amazon of 5 MB. With the https://github.com/rlmcpherson/s3gof3r the memory overh…