fog/fog — Issue #754: Slow uploading for S3
Author: dskim
Created: 2012-02-20 07:35:32+00:00
State: open

I seem to have a very interesting issue with fog.
I was searching for an answer, but failed to find one.

Our application uses Amazon EC2 and that application needs to upload/download files from S3.
We're using fog to handle that process which generally works great.
We do really appreciate everyone's effort on this gem.

However, the uploading seems to be a lot slower than when I'm using aws-s3 gem.
It took about 15 minutes to upload using fog, but it took only 5 seconds with aws-s3 when uploading 100MB file.
While I'm surprised that it took only 5 seconds to upload it from EC2 to S3, I don't understand why using fog makes a lot slower.
I've tried curl based bash script that does the same thing and it took pretty much the same time as aws-s3.

It looks to me that the request via fog is considered to be the request outside of Amazon's private network or something.

Anyone has any idea on this?
Any kind of input would very much be appreciated.

Thanks,