kopia lustrzana https://github.com/snarfed/bridgy-fed
bump up router to 2 cores and 100 threads, double receive/send task queue rates
rodzic
3c06739889
commit
13df5e9fe7
|
@ -2,7 +2,6 @@
|
|||
# https://cloud.google.com/tasks/docs/queue-yaml
|
||||
queue:
|
||||
- name: atproto-commit
|
||||
target: hub
|
||||
rate: 300/s
|
||||
max_concurrent_requests: 1
|
||||
retry_parameters:
|
||||
|
@ -11,7 +10,6 @@ queue:
|
|||
max_doublings: 5
|
||||
|
||||
- name: webmention
|
||||
target: default
|
||||
rate: 500/s
|
||||
max_concurrent_requests: 10
|
||||
retry_parameters:
|
||||
|
@ -20,25 +18,22 @@ queue:
|
|||
max_doublings: 2
|
||||
|
||||
- name: receive
|
||||
target: default
|
||||
rate: 500/s
|
||||
max_concurrent_requests: 40
|
||||
max_concurrent_requests: 80
|
||||
retry_parameters:
|
||||
task_retry_limit: 2
|
||||
min_backoff_seconds: 300
|
||||
max_doublings: 2
|
||||
|
||||
- name: send
|
||||
target: default
|
||||
rate: 500/s
|
||||
max_concurrent_requests: 10
|
||||
max_concurrent_requests: 20
|
||||
retry_parameters:
|
||||
task_retry_limit: 2
|
||||
min_backoff_seconds: 300
|
||||
max_doublings: 2
|
||||
|
||||
- name: poll-feed
|
||||
target: default
|
||||
rate: 5/s
|
||||
max_concurrent_requests: 1
|
||||
retry_parameters:
|
||||
|
|
|
@ -12,7 +12,7 @@ runtime_config:
|
|||
runtime_version: "3.11"
|
||||
|
||||
resources:
|
||||
cpu: 1
|
||||
cpu: 2
|
||||
memory_gb: 2
|
||||
|
||||
env_variables:
|
||||
|
@ -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 50 -b :$PORT router:app
|
||||
entrypoint: gunicorn --workers 1 --threads 100 -b :$PORT router:app
|
||||
|
|
Ładowanie…
Reference in New Issue