I run the https://sunny.garden Mastodon server. Move slowly and build things. Expect photos of flowers, clouds, cats and other creatures I spot out walking, and sometimes Mastodon admin or -- very rarely -- game development. Canadian living near Tokyo 🇨🇦🚀🇯🇵 • he/him
Dear #MastoAdmin for anyone using #S3 storage I would highly recommend disabling S3 multipart uploads for a day (or forever) to see if you notice any improvements.
Pre-existing issues with Mastodon and S3, plus some recent regressions in the #AWS S3 library can cause a variety of issues, notably in the ingress #sidekiq worker, such as:
- infinite disk usage in /tmp
- higher outbound bandwidth use (2-4x)
- higher cpu and memory use by sidekiq
- higher costs on providers like Wasabi that have minimum duration charges for incomplete multipart uploads
You can do this by setting S3_MULTIPART_THRESHOLD=1073741824 (any sufficiently high value that all processed media will fit below).
Note that setting S3_FORCE_SINGLE_REQUEST=true is not sufficient, as this only impacts reading files from S3 to disk, and not uploading to S3. Increasing S3 timeouts and retries may help, but doesn't solve the issues entirely.
The results will depend on your environment and specific S3 provider, but are significant and worth testing to see if they affect you.
https://github.com/mastodon/mastodon/issues/39863
You've seen all posts