In this article
Spill and restore move transient object values between memory and storage; their recovery still depends on ownership, available copies and lineage.
A pipeline spills large intermediate arrays and an operator concludes they are now checkpointed. The files exist on disk, but the application has not defined a stable artifact identity or an independent recovery path. Spilling solves a memory-tier problem; checkpointing solves an application continuation problem.
Identify the configured spill destination
The object-spilling guide describes moving values to the local filesystem when the object store fills, with a configurable directory. Record the effective path, mount, free capacity and node ownership. A pathname that looks persistent can still resolve to a temporary session directory or node-local disk. Do not infer replication, retention or accessibility from another node merely because the directory name resembles a shared storage location.
Read spill and restore observations precisely
The guide exposes spill and restore activity through raylet logs and aggregate statistics. Use them to establish that values moved between tiers, including which observation window and node they describe. Spill throughput is not an application recovery-time measurement. The spill granularity guide explains another tiering boundary: a manager’s successful movement of eligible data does not cover every live allocation or establish durability of the whole task state.
Keep owner failure separate
The object fault-tolerance guide distinguishes lost values from loss of their metadata owner. Available copies and reconstructable lineage can recover selected value losses while the owner remains alive. Owner failure has a different documented outcome. Placing a value on disk does not independently restore that owner or make a serialized reference a portable checkpoint. Record the owner dependency in the same diagram as the spill location rather than showing disk as an unconditional endpoint of recovery.
Define a real continuation boundary
If the application must restart elsewhere, save an explicit checkpoint with stable input identity, completed-work state and validated artifact contents. The checkpoint state guide explains why recorded progress and saved contents must agree. Choose storage whose retention and access match the intended failure class. This can coexist with automatic spilling, but the application must know which checkpoint it can load after the original runtime or node no longer exists.
Test the failure class you intend
First use a disposable workload to observe ordinary spill and restore with the owner and storage intact. Separately evaluate loss of the spill-holding node, loss of the owner and restart from the explicit checkpoint. Preserve exact errors, reachable storage and recovered input identities. Passing the first case does not establish the others. This proposed recovery matrix is more informative than counting spill files, and it does not assert completed destructive testing or measured recovery figures.
Preserve the tiering limit
Spilling also consumes storage bandwidth and capacity while references remain live. A full spill volume or slow restore can affect useful progress without changing the logical object’s identity. Monitor those boundaries separately from checkpoint freshness. Acceptance means the workload’s tiering behavior is observable and its required durable outputs have an independent recovery contract. It does not mean that all intermediate values, in-memory actor state or external effects survive any node failure simply because Ray reported a successful spill.
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.