thumbnail: Add support for multiple queue workers.

There's no need for sharding, but this allows one to spend a bit of
extra memory to reduce image-processing latency when bursts of images
are uploaded at once.
This commit is contained in:
Tim Abbott
2024-07-21 18:26:12 -07:00
parent 14880b2b59
commit 54c2c02011
5 changed files with 28 additions and 1 deletions

View File

@@ -167,6 +167,14 @@ immutable, this serves only as a potential additional limit on the
size of the contents on disk; `s3_disk_cache_size` is expected to be
the primary control for cache sizing.
#### `thumbnail_workers`
How many image-thumbnailing workers to run. Defaults to 1; adding more
workers can prevent the image-thumbnailing queue backlogging when
large numbers of very large image files are uploaded at once. (When
backlogged, image previews for images that have not yet been
thumbnailed will appear as loading spinners).
#### `nameserver`
When the [S3 storage backend][s3-backend] is in use, downloads from S3 are