vllm.distributed.ec_transfer.ec_connector.mooncake.reservation
¶
Consumer-side reservation lifecycle and destination-memory ownership.
Reservations make remote writes idempotent and ensure cancellation or expiry cannot free a destination while Mooncake may still be writing into it.
Classes:
-
ConsumerReservation–Own the identity and destination allocation of one remote push.
-
ConsumerReservationManager–Own reservation transitions and destination allocation releases.
-
ConsumerReservationState–Lifecycle of one Consumer destination reservation.
ConsumerReservation
dataclass
¶
Own the identity and destination allocation of one remote push.
ConsumerReservationManager
¶
Own reservation transitions and destination allocation releases.
A remote writer owns a WRITING allocation. Cancellation and expiry are
therefore deferred until completion, unless refresh explicitly abandons
that writer before replacing its reservation.
Methods:
-
begin_shutdown–Stop new reservations and cancel everything without a remote writer.
-
wait_for_writers–Wait until no reservation is still owned by a remote writer.