Skip to content

The router reports no_capacity for 503 errors that are not a lack of capacity #1896

Closed

Description

@JeffLuoo

Follow-up to #1895. Parent: #1664.

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.

Activity

  1. added this to the M3 milestone on Sep 25, 2026
  2. added
    kind/cleanup
    and removed on Sep 25, 2026
  3. charan-rathore commented on Sep 26, 2026

    @charan-rathore

    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?

  4. mayawang commented on Sep 30, 2026

    @mayawang
    Collaborator

    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.

  5. charan-rathore commented on Sep 30, 2026

    @charan-rathore

    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.

  6. JeffLuoo commented on Oct 2, 2026

    @JeffLuoo
    CollaboratorAuthor

    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".

    I will make it a new issue for better tracking.

  7. JeffLuoo commented on Oct 2, 2026

    @JeffLuoo
    CollaboratorAuthor

    #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:

    I close this issue as completed. Please continue the discussion in the new issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area/observabilitykind/cleanupprio/P2

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions