mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 17:59:37 +02:00
feat: config option object_storage.max_request_attempts (#6418)
* feat: config option object_storage.max_attempts Backblaze recommends to have a high amount of attempts since they've designed their architecture so that it will return 5xx errors to indicate that the client should do a new attempt. https://www.backblaze.com/blog/b2-503-500-server-error/ closes #6415 * Rephrase comment --------- Co-authored-by: Chocobozzz <me@florianbigard.com>
This commit is contained in:
parent
46a2c15eaf
commit
ca26687e1f
5 changed files with 14 additions and 2 deletions
|
@ -45,7 +45,8 @@ function getClient () {
|
|||
secretAccessKey: OBJECT_STORAGE.CREDENTIALS.SECRET_ACCESS_KEY
|
||||
}
|
||||
: undefined,
|
||||
requestHandler: await getProxyRequestHandler()
|
||||
requestHandler: await getProxyRequestHandler(),
|
||||
maxAttempts: CONFIG.OBJECT_STORAGE.MAX_REQUEST_ATTEMPTS
|
||||
})
|
||||
|
||||
logger.info('Initialized S3 client %s with region %s.', getEndpoint(), OBJECT_STORAGE.REGION, lTags())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue