Skip to content

Commit

Permalink
Fix S3 adapter retrying failing uploads with exponential backoff (#12085
Browse files Browse the repository at this point in the history
)

The default limit of 10 retries with exponential backoff meant
that if the S3 server was timing out, you would be stuck with it
for much, much longer than the 5 second read timeout we expect.

The uploading happens within a database transaction, which means
a failing S3 server could negatively affect database performance
  • Loading branch information
Gargron committed Oct 6, 2019
1 parent c4fbfaf commit 086fc7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/initializers/paperclip.rb
Expand Up @@ -40,6 +40,7 @@
http_open_timeout: 5,
http_read_timeout: 5,
http_idle_timeout: 5,
retry_limit: 0,
}
)

Expand Down

0 comments on commit 086fc7e

Please sign in to comment.