app config autoscaling changes to try to keep instance count down

snarfed/bridgy#1051
flask
Ryan Barrett 2021-07-01 13:27:26 -07:00
rodzic a4c5a8e4c5
commit 02498b34d7
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6BE31FDF4776E9D4
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -10,6 +10,13 @@ runtime: python39
# https://docs.gunicorn.org/en/latest/settings.html#timeout
entrypoint: gunicorn --workers 1 --threads 10 --timeout 60 -b :$PORT app:application
# background: https://github.com/snarfed/bridgy/issues/578
automatic_scaling:
max_idle_instances: 1
target_cpu_utilization: .9
min_pending_latency: 3000ms
max_concurrent_requests: 30
handlers:
# static