From 23c0b67d7b91fb44ca24b68d959b0ce62ae237c5 Mon Sep 17 00:00:00 2001 From: q_h Date: Thu, 8 Sep 2022 09:54:12 +0300 Subject: fix: validate s3 response (#5231) * refactor: remove `objectStoragePut` this is already implemented in `lib-storage` * fix: validate s3 response * fix: enable built-in retries * chore: add `leavePartsOnError` comment * refactor: decrease partSize to speed up retries * refactor: rethrow s3 errors * refactor: reduce max_upload_part default to 100MB * refactor: validate response * chore: add link to explanation --- config/default.yaml | 2 +- config/production.yaml.example | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'config') diff --git a/config/default.yaml b/config/default.yaml index 9bf1ca284..0b0a54eef 100644 --- a/config/default.yaml +++ b/config/default.yaml @@ -152,7 +152,7 @@ object_storage: secret_access_key: '' # Maximum amount to upload in one request to object storage - max_upload_part: 2GB + max_upload_part: 100MB streaming_playlists: bucket_name: 'streaming-playlists' diff --git a/config/production.yaml.example b/config/production.yaml.example index f6dc6ccdb..209aaa56a 100644 --- a/config/production.yaml.example +++ b/config/production.yaml.example @@ -150,7 +150,7 @@ object_storage: secret_access_key: '' # Maximum amount to upload in one request to object storage - max_upload_part: 2GB + max_upload_part: 100MB streaming_playlists: bucket_name: 'streaming-playlists' -- cgit v1.2.3