瀏覽代碼

Fix S3 adapter retrying failing uploads with exponential backoff (#12085)

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
master^2
Eugen Rochko 4 年之前
committed by GitHub
父節點
當前提交
086fc7ed77
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. +1
    -0
      config/initializers/paperclip.rb

+ 1
- 0
config/initializers/paperclip.rb 查看文件

@@ -40,6 +40,7 @@ if ENV['S3_ENABLED'] == 'true'
http_open_timeout: 5,
http_read_timeout: 5,
http_idle_timeout: 5,
retry_limit: 0,
}
)



Loading…
取消
儲存