﻿# Ray placement groups: a reservation is not a running gang

Verify bundle feasibility, reservation readiness and task attachment before interpreting an idle Ray placement group as unused available capacity.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/ray-placement-group-reservation/
Language: en

A cluster has enough total resources for a distributed trial, yet its placement group remains pending. Another group is ready but its tasks also wait. These can be different failures: an indivisible bundle cannot fit, or tasks never attached to the reservation they were meant to consume.

## Review the shape of each bundle

The [placement-group guide](https://docs.ray.io/en/latest/ray-core/scheduling/placement-group.html) defines a bundle as a reservation that must fit on a single node. Summing free resources across the cluster cannot satisfy an oversized bundle. Record node-level capacities, already reserved resources and the chosen placement strategy. Distinguish a temporarily occupied feasible shape from a shape no permitted node can provide. The autoscaler also needs a supported node type; pending demand alone is not proof that capacity will eventually appear.

## Wait for the reservation outcome

Placement-group creation is asynchronous. Returning a group handle does not establish readiness. Inspect the documented readiness result and group state with the intended deadline. Ray describes atomic reservation: it does not retain a partial reservation for a group whose required bundles cannot be placed. Keep that group-level decision separate from application processes starting later. A successful reservation therefore does not establish that constructors, model loading or distributed rendezvous have completed.

## Attach work to reserved resources

Tasks and actors must use the placement-group scheduling strategy to consume reserved resources. Record their group and bundle assignment, including child-task capture settings. Otherwise a task can wait outside a group while the resources it needs sit reserved inside it. Explicit actor resource requirements avoid relying on surprising scheduling-versus-running defaults. Check resource fit within the selected bundle as well as readiness of the overall group; a ready group does not make every arbitrary task shape admissible.

## Separate logical from physical protection

The [resource guide](https://docs.ray.io/en/latest/ray-core/scheduling/resources.html) distinguishes logical admission from physical enforcement. Placement does not turn a resource quantity into a fixed memory partition or guarantee favorable accelerator topology. The [fractional GPU guide](/journal/fg2-ray-tune-fractional-gpu-vram-isolation/) explains that physical workload boundary. For shared application state, [process initialization and ownership](/journal/fg2-kedro-runner-process-boundary-state-ownership/) remain separate concerns. Reserve the intended shape, then verify that the actual workers and their memory demands match the declared use.

## Exercise pending and attached states

Use a disposable group whose bundles fit and another whose shape cannot fit the available node types. For the feasible group, compare attached work with deliberately unattached work. Record group state, reserved quantities, task demands and worker identities. Acceptance should explain idle reservations and waiting tasks without changing several placement settings simultaneously. This proposed exercise establishes scheduling semantics, not measured utilization improvement or a guarantee of simultaneous useful computation across all members.

## Release the reservation deliberately

The guide documents removal as asynchronous and warns that tasks or actors using removed reservations are forcefully killed. Coordinate application cleanup and result persistence before removal rather than using teardown as a harmless capacity toggle. Confirm the final group state and remaining work. The bounded outcome is an accountable reservation lifecycle: requested, ready, consumed and released. It does not establish fault-tolerant training, physical isolation, successful artifact publication or application recovery after a member fails.
