envato/aws-sdk-for-ruby — comment on commit 4e4dfcb426999edbbe97315fd040c70cc284f03e
File:  line 0
By trevorrowe:

Have you considered setting :max_retries on the AWS::S3 interface when you construct it?

By default it retries 3 times with an exponential back off. You can set a more aggressive retry count (e.g. 9) and it will retry with the following sleep durations: [0.3, 0.6, 1.2, 2.4, 4.8, 9.6, 19.2, 38.4, 76.8] (total of 153.3 seconds of wait). You can construct multiple s3 objects as well:

```ruby
s3 = AWS::S3.new # default 3 retries
s3_stubborn = AWS::S3.new(:max_retries => 9) # for multi-part uploads
```