TECHNOLOGY

Ray actor CPU defaults: scheduling admission and running reservation differ

In this article
THE QUICK TAKE

The documented default actor needs a logical CPU to schedule but reserves none while running; explicit requirements apply at both stages.

A node admits many stateful Ray actors, although an operator expected the default CPU requirement to cap the number of live actors. Another actor cannot start on a node configured with no logical CPU. Both observations can follow the same documented default: startup admission and running reservation are different stages.

Inspect the effective actor declaration

The resource guide documents a default of 1 logical CPU for scheduling and 0 while running. Preserve decorator settings and per-call options before applying that default. A configuration copied from ordinary tasks can therefore misdescribe actor lifetime occupancy. Record whether an actor runs CPU-heavy methods, waits for I/O or mainly holds state; these behaviors affect the appropriate declaration but do not change the documented default automatically.

Separate start eligibility from lifetime demand

A node with no available scheduling CPU cannot necessarily admit another default actor, even though already running default actors do not consume that CPU reservation. After startup, the resource need not remain held. This is a logical accounting behavior, not evidence that the process uses no physical CPU. The logical resource guide covers a neighboring physical-sharing issue; the present failure is a mismatch between actor lifecycle stages in the scheduler contract.

Check placement-group feasibility

The placement-group reference explains that the default actor still needs a bundle containing a CPU for scheduling. A ready accelerator-only reservation does not remove that requirement. Preserve group, bundle and available resources when interpreting a pending actor. Conversely, admitting one default actor does not establish that subsequent actors consume the remaining bundle as the operator expected. Use explicit requirements if the intended policy is a resource allowance throughout the actor’s life.

Declare the intended lifetime requirement

The resource documentation says explicit actor requirements apply at scheduling and execution. Choose a justified requirement for the actor workload and retain its effective value. This changes admission accounting; it does not pin a physical core, limit native threads or guarantee execution parallelism. The Serve admission guide addresses a different layer of assigned requests. Core actor resource declarations must not be confused with the number of methods or model requests that can execute concurrently.

Verify before and after startup

Use a disposable pool of recognizable actors. Compare declared default behavior with explicit lifetime requirements while recording actor creation, running count and logical resource availability. Include the intended placement-group shape. Inspect physical process activity separately from reservation changes. Acceptance should explain both a startup refusal and the running population; an actor responding successfully alone cannot demonstrate the expected lifetime resource budget or a safe quantity of resident model instances.

Preserve the capacity limit separately

Actors can retain memory even when their logical running CPU contribution is zero. Include model state, native-library threads and active methods in capacity review. Keep the runtime version and effective declaration with the fixture result. The supported conclusion is a lifecycle-correct resource policy whose startup and running accounting match the design. It does not establish physical CPU isolation, a global actor-count limit or protection against arbitrary memory demand simply because the scheduling phase was accepted.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles