Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config for S3_RETRY_LIMIT #1464

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content/en/admin/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -579,18 +579,18 @@ The bucket must support access control lists (ACLs). For AWS S3, this means sett

#### `S3_OVERRIDE_PATH_STYLE`


#### `S3_PROTOCOL`

#### `S3_HOSTNAME`

#### `S3_ALIAS_HOST`


#### `S3_OPEN_TIMEOUT`

#### `S3_READ_TIMEOUT`

#### `S3_RETRY_LIMIT`

#### `S3_FORCE_SINGLE_REQUEST`

#### `S3_ENABLE_CHECKSUM_MODE`
Expand Down
9 changes: 9 additions & 0 deletions content/en/admin/optional/object-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,15 @@ Default: 5 (seconds)

The number of seconds before the HTTP handler should timeout while waiting for an HTTP response.

#### `S3_RETRY_LIMIT`

Adjusting this may be needed for some S3 providers, particularly when there are connectivity issues between the Mastodon server and the S3 storage. This may be observed when posts from other instances have missing media.

Defaults to `0`, not suggested to increase beyond `3` due to database performance concerns.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a nitpick, but it's not really about database performance but jobs holding up workers for longer than necessary (so work queues growing bigger).


**Version history:**\
4.3.0 - added

#### `S3_FORCE_SINGLE_REQUEST`

Default: false
Expand Down