Skip to content

ateapi: scheduler and workercache placement optimizations #3783

Open
1 of 6 issues completed
Open

Description

Problem

Every placement in cmd/ateapi/internal/scheduling and cmd/ateapi/internal/workercache is O(N) in the size of the worker fleet, whatever the constraints:

  1. Runtime fallback scans the fleet twice, and would scan it three times with a VOLUMES tier ([bug-bash] ResumeActor attempts ROOTFS restore across CPU architectures instead of dropping to VOLUMES #3230).
  2. A pinned resume sets RequiredNodes to one node, yet workercache.Workers() copies every worker pointer in the cluster and Schedule discards all but the ones on that node. Pinned local-snapshot resumes are the common path.
  3. detachFromFullNode runs a full Schedule and discards the worker, only to learn whether any other node has room.

None of this is measured. ate.scheduler.assignment.duration wraps the cache scan together with the BindActorToWorker transaction, so it cannot separate the in-memory cost from the store round trip, and there is no benchmark in either package.

Sub-issues

Sub-issues

1 of 6 Issues completed
Loading 6 sub-issues

Metadata

Metadata

Labels

area/lifecyclearea/schedulingkind/cleanup

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions