vllm.distributed.ec_transfer.ec_connector.mooncake.control
¶
ZMQ control plane for Mooncake encoder-cache reservations and events.
Tensor bytes never travel through this module. It coordinates destination
reservations, completion/cancellation, TP-shard discovery, and readiness
notifications while transfer owns the Mooncake data plane.
Classes:
-
ConsumerControlServer–Expose Consumer reservations and readiness events over ZMQ.
-
ControlClient–Send synchronous requests through one monitored REQ socket per peer.
-
EventInbox–Receive Consumer readiness events without blocking the Scheduler.
ConsumerControlServer
¶
Expose Consumer reservations and readiness events over ZMQ.
One server runs on every receiving TP rank. The REP channel handles reservation operations, while a PUSH channel publishes newly ready items to the Scheduler.
ControlClient
¶
Send synchronous requests through one monitored REQ socket per peer.
All ZeroMQ sockets are owned by one I/O thread. Callers may issue requests from multiple executor threads; requests to the same peer are serialized while requests to different peers can be in flight concurrently.
EventInbox
¶
Receive Consumer readiness events without blocking the Scheduler.
Subscribing needs one blocking control request per shard, so it runs on
executor when one is given: an unreachable Consumer must cost the
Scheduler nothing, not one control timeout per drain.