]> git.openstreetmap.org Git - chef.git/commitdiff
community: increase web workers to recommendation
authorGrant Slater <github@firefishy.com>
Wed, 5 Oct 2022 10:18:42 +0000 (11:18 +0100)
committerGrant Slater <github@firefishy.com>
Wed, 5 Oct 2022 10:18:42 +0000 (11:18 +0100)
cookbooks/community/templates/default/web_only.yml.erb

index 975e13c967550a1fb0b9364c06ea95163761586a..14c3113c8c6dfdbf1e3da99a31564b80e9d26636 100644 (file)
@@ -32,7 +32,7 @@ env:
 
   ## How many concurrent web requests are supported? Depends on memory and CPU cores.
   ## will be set automatically by bootstrap based on detected CPUs, or you can override
-  UNICORN_WORKERS: 8
+  UNICORN_WORKERS: <%= node[:cpu][:total] %>
 
   ## TODO: The domain name this Discourse instance will respond to
   DISCOURSE_HOSTNAME: community.openstreetmap.org