bump up router threads from 40 to 50, task queue rate limits

router is hitting 100% CPU sustained during bursts right now, probably need to either rethink its architecture or just add another core soon :/
pull/1133/head
Ryan Barrett 2024-06-12 15:48:11 -07:00
rodzic 387d3169a6
commit 590021926c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6BE31FDF4776E9D4
2 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

@ -12,7 +12,7 @@ queue:
- name: webmention
target: default
rate: 100/s
rate: 500/s
max_concurrent_requests: 10
retry_parameters:
task_retry_limit: 2
@ -21,8 +21,8 @@ queue:
- name: receive
target: default
rate: 100/s
max_concurrent_requests: 20
rate: 500/s
max_concurrent_requests: 40
retry_parameters:
task_retry_limit: 2
min_backoff_seconds: 300
@ -30,8 +30,8 @@ queue:
- name: send
target: default
rate: 100/s
max_concurrent_requests: 20
rate: 500/s
max_concurrent_requests: 10
retry_parameters:
task_retry_limit: 2
min_backoff_seconds: 300

Wyświetl plik

@ -38,4 +38,4 @@ manual_scaling:
# https://cloud.google.com/appengine/docs/flexible/python/runtime#application_startup
# https://docs.gunicorn.org/en/latest/settings.html
# TODO: try asyncio w/eventlet workers
entrypoint: gunicorn --workers 1 --threads 40 -b :$PORT router:app
entrypoint: gunicorn --workers 1 --threads 50 -b :$PORT router:app