-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Slow S3 Bucket to Bucket copy #787
Comments
@muhammad-ammar I have a feeling what is happening is that the threads may be starving themselves in the sense that you have 20 threads making Let me know if that helps. |
@kyleknap Thanks for tip. I will check it today and update you. |
@kyleknap There are |
Interesting. That should not be the problem then. We will do some researching, try to reproduce this, and get back to you on what we find. The one thing that does not make sense to me yet is if only |
Thanks @kyleknap. I will also further look into it to get some hint about what 's happening. |
If you are doing research as well, one thing that I would probably try (assuming I could reproduce it) is try to use the |
@kyleknap I think i have already tried |
@kyleknap Looks like |
@kyleknap |
@muhammad-ammar so are you seeing |
self.s3.meta.client.copy_object(
CopySource={
'Bucket': self._src_bucket_name,
'Key': key.key
},
Bucket=self._dst_bucket_name,
Key=key.key
) @kyleknap This is what i have changed in |
Thanks for looking into this. We will try this out as well to see if we get a difference as well. One way to look at what may be going on is to use |
Thanks Kyle, I will definitely try this. On Thu, Sep 8, 2016, 10:24 PM Kyle Knapp notifications@github.com wrote:
|
Hi @muhammad-ammar |
It's like I've keys that are stored in a list, so as here in this script we're making query for key, but in my case I already have the list of key, so the only thing I want to know how i can pass my list of keys to the class. |
Greetings! It looks like this issue hasn’t been active in longer than one year. We encourage you to check if this is still an issue in the latest release. Because it has been longer than one year since the last update on this, and in the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment to prevent automatic closure, or if the issue is already closed, please feel free to reopen it. |
I have written a Python3 script which is using
boto
to copy data from one S3 bucket to another bucket. Now i have updated that script to useboto3
. The issue is that S3 bucket to bucket copy is very slow as compared to the code written usingboto
.I have tested the code on my local system as well as on an
EC2
instance but results are same.Below are both the scripts. Script written with
boto
is taking around26 minutes
to copy 2GB of data from one S3 bucket to another. Script written withboto3
is taking around1 hour and 20 minutes
to copy 2GB of data from one S3 bucket to another. Both the buckets are in same region.Can anyone please help me to understand the reason of slowness with
boto3
.Code using boto3
Code using boto
The text was updated successfully, but these errors were encountered: