diff --git a/infra/docker/deploy-production-registry.sh b/infra/docker/deploy-production-registry.sh index 58bf933a0..f06faec2a 100755 --- a/infra/docker/deploy-production-registry.sh +++ b/infra/docker/deploy-production-registry.sh @@ -145,7 +145,7 @@ docker run -d \ --network xiaoxia-net-production \ -e APP_ENV=production \ -e APP_VERSION="$IMAGE_TAG" \ - -e WORKER_CONCURRENCY=1 \ + -e WORKER_CONCURRENCY="${WORKER_CONCURRENCY:-4}" \ -e WORKER_MAX_TASKS_PER_CHILD=100 \ -e GENERATED_FILES_DIR=/app/generated \ -e GENERATED_FILES_URL_PREFIX=/generated-files \ diff --git a/infra/docker/deploy-production.sh b/infra/docker/deploy-production.sh index 8d7812495..c1bf7b39f 100755 --- a/infra/docker/deploy-production.sh +++ b/infra/docker/deploy-production.sh @@ -81,7 +81,7 @@ export WEB_DOCKERFILE=infra/docker/web-artifact.Dockerfile export WEB_NGINX_CONF=infra/docker/nginx-production.conf docker network create xiaoxia-net-production 2>/dev/null || true -export WORKER_CONCURRENCY="${WORKER_CONCURRENCY:-1}" +export WORKER_CONCURRENCY="${WORKER_CONCURRENCY:-4}" export WORKER_MAX_TASKS_PER_CHILD="${WORKER_MAX_TASKS_PER_CHILD:-100}" if [ "${ALLOW_PRODUCTION_BUILDS:-false}" = "true" ]; then diff --git a/infra/docker/deploy-staging-registry.sh b/infra/docker/deploy-staging-registry.sh index d9f744a8a..9d3f5c729 100755 --- a/infra/docker/deploy-staging-registry.sh +++ b/infra/docker/deploy-staging-registry.sh @@ -108,7 +108,7 @@ docker run -d \ --network xiaoxia-net-staging \ -e APP_ENV=staging \ -e APP_VERSION="$IMAGE_TAG" \ - -e WORKER_CONCURRENCY=1 \ + -e WORKER_CONCURRENCY="${WORKER_CONCURRENCY:-4}" \ -e WORKER_MAX_TASKS_PER_CHILD=100 \ -e GENERATED_FILES_DIR=/app/generated \ -e GENERATED_FILES_URL_PREFIX=/generated-files \