﻿# Ray actor CPU defaults: scheduling admission and running reservation differ

Verify Ray Core actor CPU requirements across startup and lifetime instead of assuming that the default scheduling CPU remains reserved for every live actor.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/ray-actor-scheduling-running-cpu-default/
Language: en

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](https://docs.ray.io/en/latest/ray-core/scheduling/resources.html) 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](/journal/fg2-ray-tune-fractional-gpu-vram-isolation/) 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](https://docs.ray.io/en/latest/ray-core/scheduling/placement-group.html) 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](/journal/fg2-ray-serve-max-ongoing-per-replica-execution-slots/) 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.
