about summary refs log tree commit diff
path: root/guix
diff options
context:
space:
mode:
authorArun Isaac2026-07-03 16:39:36 +0100
committerArun Isaac2026-07-03 16:39:36 +0100
commit86eed2c2bb31e91f4ef082b46223bb3ef741b2a6 (patch)
treebc99c28d0353a7dca594e047ffc002fcc6187fe3 /guix
parent6f7c067ce10d36caa11fda720e74f8979ba76b7e (diff)
downloadguix-forge-86eed2c2bb31e91f4ef082b46223bb3ef741b2a6.tar.gz
guix-forge-86eed2c2bb31e91f4ef082b46223bb3ef741b2a6.tar.lz
guix-forge-86eed2c2bb31e91f4ef082b46223bb3ef741b2a6.zip
gunicorn: Set default workers to twice the number of CPUs.
Production deployments must never have only one worker process.
Diffstat (limited to 'guix')
-rw-r--r--guix/forge/gunicorn.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/forge/gunicorn.scm b/guix/forge/gunicorn.scm
index de164e1..1650a4d 100644
--- a/guix/forge/gunicorn.scm
+++ b/guix/forge/gunicorn.scm
@@ -78,7 +78,7 @@
                                                 "/socket")))))
            (thunked))
   (workers gunicorn-app-workers
-           (default 1))
+           (default #~(* 2 (total-processor-count))))
   (extra-cli-arguments gunicorn-app-extra-cli-arguments
                        (default '()))
   (environment-variables gunicorn-app-environment-variables