From 5d24701120fc13271271983aaecbe1720ca03adf Mon Sep 17 00:00:00 2001 From: Stephen Chen Date: Sat, 6 Jun 2020 18:35:38 -0700 Subject: [PATCH] Include warning about S3 timeout behavior --- guides/source/active_storage_overview.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/guides/source/active_storage_overview.md b/guides/source/active_storage_overview.md index 6c0af950e702a..db1686fdded40 100644 --- a/guides/source/active_storage_overview.md +++ b/guides/source/active_storage_overview.md @@ -120,7 +120,7 @@ amazon: bucket: "" ``` -Optionally provide a Hash of upload options: +Optionally provide client and upload options: ```yaml amazon: @@ -129,9 +129,13 @@ amazon: secret_access_key: "" region: "" bucket: "" + http_open_timeout: 0 + http_read_timeout: 0 + retry_limit: 0 upload: server_side_encryption: "" # 'aws:kms' or 'AES256' ``` +TIP: Set sensible client HTTP timeouts and retry limits for your application. In certain failure scenarios, the default AWS client configuration may cause connections to be held for up to several minutes and lead to request queuing. Add the [`aws-sdk-s3`](https://github.com/aws/aws-sdk-ruby) gem to your `Gemfile`: