chore: update env example for worker-runner sidecar pattern

remove N8N_RUNNER_COUNT (now 1:1 with workers), add
OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS setting, clarify that
generate_n8n_workers.sh should be run after changing count.
This commit is contained in:
Yury Kossakovsky
2025-12-09 17:34:20 -07:00
parent 98f2dd807e
commit 11622a5d2d

View File

@@ -177,11 +177,15 @@ RUN_N8N_IMPORT=
# n8n configuration
############
# Number of n8n worker replicas (for the n8n-worker service). Defaults to 1 if unset.
N8N_WORKER_COUNT=
# Number of n8n worker-runner pairs to generate.
# Each worker gets its own dedicated task runner sidecar.
# After changing, run: bash scripts/generate_n8n_workers.sh
# Defaults to 1 if unset.
N8N_WORKER_COUNT=1
# Number of n8n task runner replicas (for Code/Python node execution). Defaults to 1 if unset.
N8N_RUNNER_COUNT=
# Enable offloading manual executions to workers (recommended for production).
# When true, the main n8n instance does not execute workflows, only coordinates.
OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS=true
# Maximum number of concurrent Code node executions per task runner. Defaults to 5.
N8N_RUNNERS_MAX_CONCURRENCY=5