You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The router reports no_capacity for 503 errors that are not a lack of capacity #1896
classifyOutcome in cmd/atenet/internal/router/extproc/metrics.go sends every 503 without a gRPC cause to no_capacity on atenet.router.route.duration. These include a full parking lot in the router ("router at capacity"), and egress denials and egress policy lookup failures. The ingress handler and the egress handler both record this metric.
Also, the router uses string literals for its outcome values, and the comments in cmd/ateapi/internal/scheduling/scheduling.go and the text of ErrNoCapacity still say "free worker".
The router should report no_capacity only when the scheduler found no worker with room. Other 503 errors report a different outcome. The router outcome values are constants in internal/ateattr. The scheduler comments describe the same condition as the no_capacity briefs.
I'd like to take the router outcome follow-up to #1895. My proposed scope is to classify scheduler ResourceExhausted as no_capacity, distinguish unrelated HTTP 503s as unavailable, add regression tests, and align the shared outcome constants and scheduler wording. Is that the direction maintainers want, and is someone already working on it?
Thanks for offering Charan Rathore (@charan-rathore)! #1929 (only report no_capacity when the fleet is actually full) already covers this, and it's with Jeff Luo (@JeffLuoo) for review. If you're looking for something nearby, #1877 (OTEL_METRICS_EXPORTER=none not stopping the metric export) is unclaimed in the same area. Let me know if you'd like it.
Thanks for the pointer. I'll leave #1896 with #1929. I checked #1877 and it already has #1878 plus QuentinBisson and JeffLuoo assigned, so I'll avoid duplicating that work too.
Also, the router uses string literals for its outcome values, and the comments in cmd/ateapi/internal/scheduling/scheduling.go and the text of ErrNoCapacity still say "free worker".
#1929 fixes this issue. Only a ResourceExhausted cause now reports no_capacity, and other 503 errors report unavailable. The router outcome values are now constants in internal/ateattr.
Two items remain. Each item now has a separate issue:
Activity
charan-rathore commentedon Sep 26, 2026
I'd like to take the router outcome follow-up to #1895. My proposed scope is to classify scheduler ResourceExhausted as no_capacity, distinguish unrelated HTTP 503s as unavailable, add regression tests, and align the shared outcome constants and scheduler wording. Is that the direction maintainers want, and is someone already working on it?
mayawang commentedon Sep 30, 2026
Thanks for offering Charan Rathore (@charan-rathore)! #1929 (only report no_capacity when the fleet is actually full) already covers this, and it's with Jeff Luo (@JeffLuoo) for review. If you're looking for something nearby, #1877 (OTEL_METRICS_EXPORTER=none not stopping the metric export) is unclaimed in the same area. Let me know if you'd like it.
charan-rathore commentedon Sep 30, 2026
Thanks for the pointer. I'll leave #1896 with #1929. I checked #1877 and it already has #1878 plus QuentinBisson and JeffLuoo assigned, so I'll avoid duplicating that work too.
JeffLuoo commentedon Oct 2, 2026
I will make it a new issue for better tracking.
router: report no_capacity only for a ResourceExhausted cause (agent-…
JeffLuoo commentedon Oct 2, 2026
#1929 fixes this issue. Only a
ResourceExhaustedcause now reportsno_capacity, and other 503 errors reportunavailable. The router outcome values are now constants ininternal/ateattr.Two items remain. Each item now has a separate issue:
unavailableafter a full fleet.ErrNoCapacitystill say "free worker".I close this issue as completed. Please continue the discussion in the new issues.