Skip to content

Commit 7b0fd25

Browse files
committed
cut down router worker threads, receive and send queue concurrent limit
for #1138
1 parent c086eea commit 7b0fd25

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

queue.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ queue:
1919

2020
- name: receive
2121
rate: 500/s
22-
max_concurrent_requests: 160
22+
max_concurrent_requests: 100
2323
retry_parameters:
2424
task_retry_limit: 2
2525
min_backoff_seconds: 300
2626
max_doublings: 2
2727

2828
- name: send
2929
rate: 500/s
30-
max_concurrent_requests: 40
30+
max_concurrent_requests: 20
3131
retry_parameters:
3232
task_retry_limit: 2
3333
min_backoff_seconds: 300

router.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ liveness_check:
3737
# https://cloud.google.com/appengine/docs/flexible/python/runtime#application_startup
3838
# https://docs.gunicorn.org/en/latest/settings.html
3939
# TODO: try asyncio w/eventlet workers
40-
entrypoint: gunicorn --workers 4 --threads 50 -b :$PORT router:app
40+
entrypoint: gunicorn --workers 4 --threads 30 -b :$PORT router:app

0 commit comments

Comments
 (0)