Skip to content

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 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.

_defer(record, state)

Keep the destination until the writer completes or abandons it.

begin_shutdown()

Stop new reservations and cancel everything without a remote writer.

wait_for_writers(timeout)

Wait until no reservation is still owned by a remote writer.

ConsumerReservationState

Bases: Enum

Lifecycle of one Consumer destination reservation.