Repository navigation
Description
Summary
backend-sync-backfill Cloud Run service is returning HTTP 429 ("no available instance") on /v2/sync-jobs/run dispatches. This is a recurring daily pattern — 69,907 total dispatch aborts in 8 days (Sep 21–28), not a one-off spike.
Alert
- Metric:
sync_backfill_dispatch_abort(log-based, matches "The request was aborted because there was no available instance") - Fired: Sep 28 01:39 UTC, value=5 (aggregation window)
- Policy: "Sync backfill dispatch abort" (threshold >0)
Observed Behavior
Daily 429 counts (Sep 21–28, from BigQuery — exact)
| Date | Total Reqs | 429 Aborts | 200 OK | Abort % |
|---|---|---|---|---|
| Sep 21 | 46,020 | 7,366 | 38,607 | 16.0% |
| Sep 22 | 74,832 | 13,363 | 61,102 | 17.9% |
| Sep 23 | 91,198 | 19,829 | 71,135 | 21.7% |
| Sep 24 | 100,858 | 21,503 | 79,183 | 21.3% |
| Sep 25 | 50,574 | 5,044 | 45,391 | 10.0% |
| Sep 26 | 19,070 | 0 | 18,088 | 0.0% |
| Sep 27 | 29,229 | 2,433 | 26,662 | 8.3% |
| Sep 28 | 4,081 | 369 | 3,712 | 9.0% |
| TOTAL | 415,862 | 69,907 | 16.8% |
69,907 total dispatch aborts in 8 days. Peak: Sep 24 with 21,503 aborts (21.3% of all requests). Abort rate correlates with total request volume — when dispatch volume exceeds ~45K/day, aborts start at 10%+ and climb to 21%+ at 100K/day. Sep 26 had 0 aborts on only 19K requests (3.8x less volume than Sep 24).
Sep 24 hourly breakdown (peak day)
Peak hours (UTC):
- 14:00 — 1,503 aborts (28.6%)
- 15:00 — 1,266 aborts (30.5%)
- 17:00 — 1,564 aborts (33.1%) ← worst hour
- 18:00 — 1,498 aborts (29.8%)
429s occur across all 24 hours, but worst during 12:00–21:00 UTC. The pattern is sustained overload, not a brief spike.
Sep 28 detail (alert day)
- 369 total 429s (corrected from initial 363 estimate), all latency=0s to
/v2/sync-jobs/run - Peak burst: 29 aborts/minute at 00:39 UTC
- Heaviest hour: 00:00–01:00 (223 aborts)
Instance utilization during alert window (Sep 28)
Active instances peaked at 18–20 (of max 30) — NOT hitting the instance cap. Cloud Run autoscaler could not spin up instances fast enough for burst dispatch rate.
01:30 5 active, 13 idle
01:36 13 active, 7 idle
01:38 18 active, 2 idle ← saturation begins
01:39 17 active, 3 idle ← ALERT FIRES
01:40 3 active, 17 idle ← batch completes
Job latency profile (cause of instance saturation)
<10s: 248 (49.6%)
10-30s: 136 (27.2%)
30-60s: 80 (16.0%)
60-120s: 35 ( 7.0%) ← hold instances for 1-2 minutes
120s+: 1 ( 0.2%)
- Median: 10.4s, P90: 50.8s, P99: 95.7s, Max: 120.4s
With concurrency=1, each long-running job (7% >60s) holds an entire instance. When 20+ concurrent long-running jobs overlap, all instances are busy and new dispatches get 429.
Coincident app errors
vector_db.py:987 find_similar_action_items— vector DB error during window- gRPC auth/connection timeouts (
grpc/_plugin_wrapping.py,google/auth/transport/requests.py) — possibly from overloaded instances
Service Configuration (from code, verified live — no drift)
- Cloud Run:
min-instances=1,max-instances=30,concurrency=1(action.yml L133-135) - Cloud Tasks queue:
maxConcurrentDispatches=30,maxDispatchesPerSecond=30,min-backoff=5s,max-backoff=60s(action.yml L178-179) - Alert metric log filter:
"The request was aborted because there was no available instance"onbackend-sync-backfill(action.yml L318) - Live config verified by taro (Sep 28): active revision
backend-sync-backfill-0a3aa8a-36348220783-1(deployed Sep 27 20:39 UTC), 7 redeploys on Sep 27 - Code comment at L171-177 documents this exact failure mode: queue dispatch rate exceeds worker capacity → 429 → exponential backoff → recording delays
Impact
- 69,907 dispatch aborts in 8 days — 16.8% of all backfill requests fail on first attempt
- On peak days (Sep 23-24), over 20% of dispatches abort
- Cloud Tasks retries with backoff (5s–60s), delaying offline recording processing
- Code comment notes previous under-sizing "compounded until queued recordings were scheduled almost a day out"
Data Sources
- BigQuery:
based-hardware.cloud_run_logs.run_googleapis_com_requests_*(exact counts, no caps) - GCP Cloud Logging:
backend-sync-backfillinstance metrics per-minute - Cloud Run live config: verified by taro, no drift from code
- Code:
.github/actions/sync-backfill-lifecycle/action.ymlat commit02bc07cf5f
Activity
beastoin commentedon Oct 10, 2026
Update: Post-fix abort rate (Sep 29 – Oct 10)
Three PRs merged around Sep 22–28 that addressed the dispatch saturation:
Before vs after
Daily post-fix
Request volume increased from ~100K/day peak to 276K/day with zero aborts. The 429 saturation pattern reported in this issue is no longer occurring.
cc @Git-on-my-level
by AI(chen) for @beastoin