]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Documentation: correct info re PAPERLESS_THREADS_PER_WORKER (#11031)
authorElias Holzmann <9659253+EliasHolzmann@users.noreply.github.com>
Sat, 18 Oct 2025 23:01:28 +0000 (01:01 +0200)
committerGitHub <noreply@github.com>
Sat, 18 Oct 2025 23:01:28 +0000 (23:01 +0000)
docs/configuration.md

index 61e82363e9889fe1c3caef1cf5157ab6ab95e746..51c00d1a5e231ef5f6eb6afa01441f24472b5314 100644 (file)
@@ -980,21 +980,10 @@ paperless will process in parallel on a single document.
         process very large documents faster, use a higher thread per worker
         count.
 
-    The default is a balance between the two, according to your CPU core
-    count, with a slight favor towards threads per worker:
-
-    | CPU core count | Workers | Threads |
-    | -------------- | ------- | ------- |
-    | > 1            | > 1     | > 1     |
-    | > 2            | > 2     | > 1     |
-    | > 4            | > 2     | > 2     |
-    | > 6            | > 2     | > 3     |
-    | > 8            | > 2     | > 4     |
-    | > 12           | > 3     | > 4     |
-    | > 16           | > 4     | > 4     |
-
-    If you only specify PAPERLESS_TASK_WORKERS, paperless will adjust
-    PAPERLESS_THREADS_PER_WORKER automatically.
+    If unset, paperless uses `max(floor(cpu_count / PAPERLESS_TASK_WORKERS), 1)`
+    threads per worker. The idea behind this is that as long as there are enough cores,
+    the total number of threads should less than or equal to the total number of (logical)
+    CPU cores.
 
 #### [`PAPERLESS_WORKER_TIMEOUT=<num>`](#PAPERLESS_WORKER_TIMEOUT) {#PAPERLESS_WORKER_TIMEOUT}