fix: throttle tap parallelism to prevent DB starvation Reduced from 10 firehose + 3 resync workers per tap (26 total concurrent DB writers across both taps) to 2 firehose + 1 resync per tap (6 total). Also use service-level cpus: 0.25 instead of deploy.resources.limits.cpus which only works in Swarm mode. The previous config was driving server load average to 100+ and making SSH/HTTPS completely unresponsive.

Author: Aaron Steven White
Commit d41db6b08a54c03de1a2fffbd3f18c60904c091a
Parent: 20302e21a7
Structural diff unavailable

These commits were pushed via plain git push, so no pre-parsed schemas are available. Install git-remote-cospan and re-push via panproto:// to see scope-level changes, breaking change detection, and semantic diffs.

brew install panproto/tap/git-remote-cospan
1 file changed +6 -12
@@ -99,10 +99,7 @@ services:
9999     image: ghcr.io/bluesky-social/indigo/tap:latest
100100     container_name: cospan-tap
101101     restart: unless-stopped
102-    deploy:
103-      resources:
104-        limits:
105-          cpus: '0.25'
102+    cpus: 0.25
106103     environment:
107104       TAP_DATABASE_URL: postgres://cospan:${POSTGRES_PASSWORD}@db:5432/tap
108105       TAP_BIND: ":2480"
@@ -111,8 +108,8 @@ services:
111108       TAP_RELAY_URL: https://relay1.us-east.bsky.network
112109       TAP_DISABLE_ACKS: "true"
113110       TAP_LOG_LEVEL: info
114-      TAP_RESYNC_PARALLELISM: "3"
115-      TAP_FIREHOSE_PARALLELISM: "10"
111+      TAP_RESYNC_PARALLELISM: "1"
112+      TAP_FIREHOSE_PARALLELISM: "2"
116113     depends_on:
117114       db:
118115         condition: service_healthy
@@ -131,10 +128,7 @@ services:
131128     image: ghcr.io/bluesky-social/indigo/tap:latest
132129     container_name: cospan-tap-knots
133130     restart: unless-stopped
134-    deploy:
135-      resources:
136-        limits:
137-          cpus: '0.25'
131+    cpus: 0.25
138132     environment:
139133       TAP_DATABASE_URL: postgres://cospan:${POSTGRES_PASSWORD}@db:5432/tap_knots
140134       TAP_BIND: ":2480"
@@ -143,8 +137,8 @@ services:
143137       TAP_RELAY_URL: https://relay1.us-east.bsky.network
144138       TAP_DISABLE_ACKS: "true"
145139       TAP_LOG_LEVEL: info
146-      TAP_RESYNC_PARALLELISM: "3"
147-      TAP_FIREHOSE_PARALLELISM: "10"
140+      TAP_RESYNC_PARALLELISM: "1"
141+      TAP_FIREHOSE_PARALLELISM: "2"
148142     depends_on:
149143       db:
150144         condition: service_healthy
cospan · schematic version control on atproto built on AT Protocol