diff options
author | 2024-08-03 16:40:26 +0200 | |
---|---|---|
committer | 2024-08-03 16:40:26 +0200 | |
commit | fa59c3713c14bd1463b923d57a57a914622626d7 (patch) | |
tree | 255f4e4995fb308da9f2e0f0377ede02089ebff3 /docs/configuration | |
parent | [chore/frontend] Update namerole rendering on skinny devices (#3166) (diff) | |
download | gotosocial-fa59c3713c14bd1463b923d57a57a914622626d7.tar.xz |
[chore] Add `media-ffmpeg-pool-size` config var (#3164)
Diffstat (limited to 'docs/configuration')
-rw-r--r-- | docs/configuration/media.md | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/configuration/media.md b/docs/configuration/media.md index e07463320..4e222c6c7 100644 --- a/docs/configuration/media.md +++ b/docs/configuration/media.md @@ -56,6 +56,24 @@ media-emoji-local-max-size: 50KiB # Default: 100KiB (102400 bytes) media-emoji-remote-max-size: 100KiB +# Int. Number of instances of ffmpeg+ffprobe to add to the media processing pool. +# +# Increasing this number will lead to faster concurrent media processing, +# but at the cost of up to about 250MB of (spiking) memory usage per increment. +# +# You'll want to increase this number if you have RAM to spare, and/or if you're +# hosting an instance for more than 50 or so people who post/view lots of media, +# but you should leave it at 1 for single-user instances or when running GoToSocial +# in a constrained (low-memory) environment. +# +# If you set this number to 0 or less, then instead of a fixed number of instances, +# it will scale with GOMAXPROCS x 1, yielding (usually) one ffmpeg instance and one +# ffprobe instance per CPU core on the host machine. +# +# Examples: [1, 2, -1, 8] +# Default: 1 +media-ffmpeg-pool-size: 1 + # The below media cleanup settings allow admins to customize when and # how often media cleanup + prune jobs run, while being set to a fairly # sensible default (every night @ midnight). For more information on exactly |