From aa6412af2079c0215365f66af163841da3d70efe Mon Sep 17 00:00:00 2001 From: Shlee Date: Sat, 8 Jun 2024 16:35:24 +0930 Subject: [PATCH 1/5] Increase paperclip S3 timeouts --- config/initializers/paperclip.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/initializers/paperclip.rb b/config/initializers/paperclip.rb index 070d250bf30..5a2b34d623a 100644 --- a/config/initializers/paperclip.rb +++ b/config/initializers/paperclip.rb @@ -65,10 +65,10 @@ if ENV['S3_ENABLED'] == 'true' s3_options: { signature_version: ENV.fetch('S3_SIGNATURE_VERSION') { 'v4' }, - http_open_timeout: ENV.fetch('S3_OPEN_TIMEOUT') { '5' }.to_i, - http_read_timeout: ENV.fetch('S3_READ_TIMEOUT') { '5' }.to_i, - http_idle_timeout: 5, - retry_limit: ENV.fetch('S3_RETRY_LIMIT') { '0' }.to_i, + http_open_timeout: ENV.fetch('S3_OPEN_TIMEOUT') { '20' }.to_i, + http_read_timeout: ENV.fetch('S3_READ_TIMEOUT') { '20' }.to_i, + http_idle_timeout: 20, + retry_limit: ENV.fetch('S3_RETRY_LIMIT') { '1' }.to_i, } ) From dbc728d94c2f8cbdd4f4ce87b11b2b47e8f2b7a0 Mon Sep 17 00:00:00 2001 From: Shlee Date: Sat, 8 Jun 2024 16:37:33 +0930 Subject: [PATCH 2/5] Update paperclip.rb --- config/initializers/paperclip.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/paperclip.rb b/config/initializers/paperclip.rb index 5a2b34d623a..2ad68019ba8 100644 --- a/config/initializers/paperclip.rb +++ b/config/initializers/paperclip.rb @@ -67,7 +67,7 @@ if ENV['S3_ENABLED'] == 'true' signature_version: ENV.fetch('S3_SIGNATURE_VERSION') { 'v4' }, http_open_timeout: ENV.fetch('S3_OPEN_TIMEOUT') { '20' }.to_i, http_read_timeout: ENV.fetch('S3_READ_TIMEOUT') { '20' }.to_i, - http_idle_timeout: 20, + http_idle_timeout: 5, retry_limit: ENV.fetch('S3_RETRY_LIMIT') { '1' }.to_i, } ) From ea1bbb5b229e449c7be0c55abbd5c3d98cbd97ef Mon Sep 17 00:00:00 2001 From: Shlee Date: Sun, 9 Jun 2024 18:45:46 +0930 Subject: [PATCH 3/5] Update paperclip.rb --- config/initializers/paperclip.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/initializers/paperclip.rb b/config/initializers/paperclip.rb index 2ad68019ba8..1d81e9e3cdc 100644 --- a/config/initializers/paperclip.rb +++ b/config/initializers/paperclip.rb @@ -65,8 +65,8 @@ if ENV['S3_ENABLED'] == 'true' s3_options: { signature_version: ENV.fetch('S3_SIGNATURE_VERSION') { 'v4' }, - http_open_timeout: ENV.fetch('S3_OPEN_TIMEOUT') { '20' }.to_i, - http_read_timeout: ENV.fetch('S3_READ_TIMEOUT') { '20' }.to_i, + http_open_timeout: ENV.fetch('S3_OPEN_TIMEOUT') { '15' }.to_i, + http_read_timeout: ENV.fetch('S3_READ_TIMEOUT') { '60' }.to_i, http_idle_timeout: 5, retry_limit: ENV.fetch('S3_RETRY_LIMIT') { '1' }.to_i, } From 73e983ff66b66f735ccc6ffa826643ae4e34563c Mon Sep 17 00:00:00 2001 From: Shlee Date: Tue, 11 Jun 2024 13:45:58 +0930 Subject: [PATCH 4/5] Update paperclip.rb --- config/initializers/paperclip.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/paperclip.rb b/config/initializers/paperclip.rb index 1d81e9e3cdc..45f67bdc48c 100644 --- a/config/initializers/paperclip.rb +++ b/config/initializers/paperclip.rb @@ -66,7 +66,7 @@ if ENV['S3_ENABLED'] == 'true' s3_options: { signature_version: ENV.fetch('S3_SIGNATURE_VERSION') { 'v4' }, http_open_timeout: ENV.fetch('S3_OPEN_TIMEOUT') { '15' }.to_i, - http_read_timeout: ENV.fetch('S3_READ_TIMEOUT') { '60' }.to_i, + http_read_timeout: ENV.fetch('S3_READ_TIMEOUT') { '30' }.to_i, http_idle_timeout: 5, retry_limit: ENV.fetch('S3_RETRY_LIMIT') { '1' }.to_i, } From 70e54bbac48faf3e9252b5fa94160e284e18fa29 Mon Sep 17 00:00:00 2001 From: Shlee Date: Wed, 19 Jun 2024 01:53:13 +0930 Subject: [PATCH 5/5] Update paperclip.rb --- config/initializers/paperclip.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/paperclip.rb b/config/initializers/paperclip.rb index 45f67bdc48c..877a1ffc911 100644 --- a/config/initializers/paperclip.rb +++ b/config/initializers/paperclip.rb @@ -66,7 +66,7 @@ if ENV['S3_ENABLED'] == 'true' s3_options: { signature_version: ENV.fetch('S3_SIGNATURE_VERSION') { 'v4' }, http_open_timeout: ENV.fetch('S3_OPEN_TIMEOUT') { '15' }.to_i, - http_read_timeout: ENV.fetch('S3_READ_TIMEOUT') { '30' }.to_i, + http_read_timeout: ENV.fetch('S3_READ_TIMEOUT') { '15' }.to_i, http_idle_timeout: 5, retry_limit: ENV.fetch('S3_RETRY_LIMIT') { '1' }.to_i, }