vllm.distributed.ec_transfer.ec_connector.mooncake.producer
¶
Producer-side push lifecycle, futures, and source-tensor ownership.
This module records when a push may advance or release its source. Worker orchestration performs the actual control exchanges and Mooncake writes.
Classes:
-
ProducerPushManager–Own Producer push records, transitions, and source tensor leases.
-
ProducerPushRecord–Collect all asynchronous state for one Producer push.
-
ProducerPushState–Lifecycle of one Producer push from reservation to terminal state.
ProducerPushManager
¶
Own Producer push records, transitions, and source tensor leases.
Terminal records are retained for duplicate-metadata idempotency. Separate ordered indexes keep hot polling paths from scanning those tombstones.
Methods:
-
cancel_requests–Cancel source-less waiters for requests, or all waiters at shutdown.
cancel_requests(request_ids)
¶
Cancel source-less waiters for requests, or all waiters at shutdown.
ProducerPushRecord
dataclass
¶
Collect all asynchronous state for one Producer push.
_same_destination(existing, incoming)
¶
Whether two specs describe one push, ignoring which request asked.
The same encoding requested twice shares a transfer id legitimately; only a different payload or destination is a collision.