Skip to content

Commit a58201f

Browse files
🎨 Add env var for setting number of threads in api-server celery worker (#8298)
1 parent 278df26 commit a58201f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.env-devel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ AGENT_VOLUMES_CLEANUP_S3_REGION=us-east-1
1919
AGENT_VOLUMES_CLEANUP_S3_SECRET_KEY=12345678
2020
AGENT_TRACING={}
2121

22+
API_SERVER_CELERY_CONCURRENCY=50
2223
API_SERVER_DEV_FEATURES_ENABLED=0
2324
API_SERVER_LOGLEVEL=INFO
2425
API_SERVER_PROFILING=1

services/docker-compose.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,10 @@ services:
9292
hostname: "api-worker-{{.Node.Hostname}}-{{.Task.Slot}}"
9393
environment:
9494
<<: *api_server_environment
95+
API_SERVER_TRACING: "null"
9596
API_SERVER_WORKER_NAME: "api-worker-{{.Node.Hostname}}-{{.Task.Slot}}-{{.Task.ID}}"
9697
API_SERVER_WORKER_MODE: "true"
97-
CELERY_CONCURRENCY: 100
98+
CELERY_CONCURRENCY: ${API_SERVER_CELERY_CONCURRENCY}
9899
CELERY_QUEUES: "api_worker_queue"
99100
networks: *api_server_networks
100101

@@ -1397,6 +1398,7 @@ services:
13971398
hostname: "sto-worker-{{.Node.Hostname}}-{{.Task.Slot}}"
13981399
environment:
13991400
<<: *storage_environment
1401+
STORAGE_TRACING: "null"
14001402
STORAGE_WORKER_NAME: "sto-worker-{{.Node.Hostname}}-{{.Task.Slot}}-{{.Task.ID}}"
14011403
STORAGE_WORKER_MODE: "true"
14021404
CELERY_CONCURRENCY: 100
@@ -1408,6 +1410,7 @@ services:
14081410
hostname: "sto-worker-cpu-bound-{{.Node.Hostname}}-{{.Task.Slot}}"
14091411
environment:
14101412
<<: *storage_environment
1413+
STORAGE_TRACING: "null"
14111414
STORAGE_WORKER_NAME: "sto-worker-cpu-bound-{{.Node.Hostname}}-{{.Task.Slot}}-{{.Task.ID}}"
14121415
STORAGE_WORKER_MODE: "true"
14131416
CELERY_CONCURRENCY: 1

0 commit comments

Comments
 (0)