Skip to content

Correct the metric values whose meaning changes with a multi-actor worker #1801

Closed

Description

@JeffLuoo

Context

Parent: #1664. Land after the worker state and eligible capacity children. A rename needs a change of the dashboards at the same time, and it is safer when the corrected signals already report.

Problem

Three enum values describe a condition that changed meaning when a worker gained an actor capacity.

The work

1. Rename the scheduler outcome no_free_worker to no_capacity.

What: ateapi reports this value on ate.scheduler.assignment.duration when a resume finds no worker to use. Change the value to no_capacity.

Why: ateapi reports this value on ate.scheduler.assignment.duration when a resume finds no worker with room. The router already reports no_capacity for the same condition, and the scheduler error is ErrNoCapacity.

2. Correct the brief of the router outcome no_capacity.

What: the brief says "the fleet had no free worker". Replace it with the same words used for no_room in item 1.

Why: a responder follows one request from the router to the scheduler. If the two components describe one condition in two different ways, the responder reads two failures and looks for two causes. The router and the scheduler reject for the same reason, and the words must say so.

3. Update every query that names a value you changed.

What: Keep dashboards / queries updated

Discussion

A change like this is a breaking change to dashboard, but I think it should be fine.. We need to make sure the changes of metrics (and attributes) land in the same branch cut of changes to sample queries and dashboard.

Activity

  1. added this to the M3 milestone on Sep 22, 2026
  2. added
    kind/cleanup
    on Sep 23, 2026
  3. krisztianfekete commented on Sep 24, 2026

    @krisztianfekete
    Collaborator

    Rename the scheduler outcome no_free_worker to no_room.

    +1 on the rename, but can we use no_capacity instead? The router already reports no_capacity for the same condition, and the error is also ErrNoCapacity.

    The true cause is capacity that ran out during a write, which points at a different fix: more capacity, or a retry instead of a crash.

    If a normal race on a shared worker ends in a crash, that's a scheduler bug. Should we track the retry in its own issue?

  4. JeffLuoo commented on Sep 25, 2026

    @JeffLuoo
    CollaboratorAuthor

    Updated to no_capacity

    I updated the body and removed the old item 2 because a recent PR #1817 deleted the failure-reason taxonomy. WORKER_REASSIGNED is not on main, so there is no brief to correct.

  5. added a commit that references this issue on Oct 5, 2026
    c1ef2c3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area/observabilitykind/cleanup

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions