Skip to content

Commit

Permalink
bump router back up to 4 cores
Browse files Browse the repository at this point in the history
sigh
  • Loading branch information
snarfed committed Oct 17, 2024
1 parent 5bf5a7f commit 6560c49
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions queue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ queue:

- name: receive
rate: 500/s
max_concurrent_requests: 20
max_concurrent_requests: 40
retry_parameters:
task_retry_limit: 2
min_backoff_seconds: 300
max_doublings: 2

- name: send
rate: 500/s
max_concurrent_requests: 20
max_concurrent_requests: 40
retry_parameters:
task_retry_limit: 2
min_backoff_seconds: 300
Expand Down
6 changes: 3 additions & 3 deletions router.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ runtime_config:
runtime_version: "3.12"

resources:
cpu: 2
memory_gb: 5.6
cpu: 4
memory_gb: 9.6

env_variables:
PDS_HOST: atproto.brid.gy
Expand All @@ -37,4 +37,4 @@ liveness_check:
# 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 2 --threads 20 -b :$PORT router:app
entrypoint: gunicorn --workers 4 --threads 20 -b :$PORT router:app

0 comments on commit 6560c49

Please sign in to comment.