Hey, recently I was researching a lot on utilities which were fast in speed and high in resource consumption(cpu,memory,n/w) and thats when I came accross this one s3copier. Believe me there were none other utilities which were able to outperform this one, as a benchmark- it was able to download 2 GB of dataset which was divided in 560 objects(~2-6 MB each) in just 1.4 seconds on c5n.2xlarge!! I tried s4cmd, it was able to provide the same in 10 seconds with lots of exception
Now, what I’m interested to know is, has anyone used it before and came accross any caveat I should already know of? cause I’m trying to use it for one of the migration plan…
Thanks
Related discussions:
s3 sync from the cli has always been my goto. It seems to be fast enough at big stuff and has the added bonus of that it doesn’t copy existing files if they are already copied. I don’t think it’s quite as fast as what you linked, but it pretty much exists everywhere and has always worked well for me.
Unless this is going to save you a massive amount of time I would stick with the s3 cli tools.
https://docs.aws.amazon.com/cli/latest/reference/s3/
It has been tested a ton, officially supported by aws etc. When dealing with data reliability is more important than saving a few seconds. Note that you can tune the CLI for chunk size etc. See this page for what can be configured: https://docs.aws.amazon.com/cli/latest/topic/s3-config.html I would be a bit surprised if after tweaking that you still see a large performance difference.
The CLI is still built upon Boto3 and Python which has a GIL (Global Interpreter Lock).
Go does handle multithreading better making this most likely better for many threads.
So the objects are around 2-6 MB and hence less the throughput
I did made the changes in max_concurrent_request and queue_size however still I’m getting a speed of ~200 MB/s in which it would take me around 13 yrs( vs 257 days with s3copier )to move the data
I’m very much aware about the trade off between speed vs reliability however I’m seeing the difference in GB/s thats why wanted to know if someone has used it before…
Its just some cost saving plan we are planning of, still in very early phase…
Well that is a fairly massive amount of time. It sounds like it is worth it to do the additional due diligence etc. in your case to use a non-standard tool.
My back of the envelope says you have assuming 5 MB average size over 16 billion files and 82 TB of data. Is it actually that big or am I off somewhere?
Envelope Math:
200MB/s for 5MB files = 40 files per second * 60 = 2400 files per minute *60 = 144000 files per hour *24 = 3,456,000 files per day * 365 = 1.2 Billion * 13 = 16.4 Billion files *5MB = ~82 TB of files.
Edit: I originally used the cost for put… the get is much cheaper so that isn’t so bad. That said the gets will cost $6560. My original calculation used the cost for put which the cost would be about $80k for all the puts, but presumably spread out over all the time you have been using it.
Overall if you are truly at these numbers I would probably utilize AWS support techs and ask them for their best practices for such large numbers. You are at the scale where their advice would be useful and the higher level ones really know their stuff. It might not be that big compared to some stuff they have done, but probably big enough that they would have some good advice that may not be available elsewhere.