mirror of
https://github.com/pretix/pretix.git
synced 2026-08-22 12:42:00 +00:00
Docker: Change default number of workers to 2 * $(nproc) (#3634)
This commit is contained in:
@@ -5,7 +5,7 @@ export DATA_DIR=/data/
|
||||
export HOME=/pretix
|
||||
|
||||
AUTOMIGRATE=${AUTOMIGRATE:-yes}
|
||||
NUM_WORKERS_DEFAULT=$((2 * $(nproc --all)))
|
||||
NUM_WORKERS_DEFAULT=$((2 * $(nproc)))
|
||||
export NUM_WORKERS=${NUM_WORKERS:-$NUM_WORKERS_DEFAULT}
|
||||
|
||||
if [ ! -d /data/logs ]; then
|
||||
|
||||
Reference in New Issue
Block a user