vllm.distributed.elastic_ep.external_elastic_ep
¶
Classes:
-
ExternalElasticEPScaleCoordinator– -
ExternalElasticEPScalePhase–Lifecycle phases shared for an epoch-scoped external EEP operation.
-
ExternalElasticEPScaleUpHandshakeServer–Temporary rank-0 handshake server for external EEP scale-up.
ExternalElasticEPScaleCoordinator
¶
Methods:
-
process_engine_core_notification–Record scale notifications emitted by EngineCore processes.
_wait_for_bootstrap(store, requested_new_dp_size, timeout_s=300)
async
¶
Wait for rank 0 to publish matching scale bootstrap metadata. Non-zero ranks poll the old control store until prepared or errored.
_wait_for_local_reconfig_finished(control_store, reconfig_store, epoch, bootstrap, dp_rank, scale_up, timeout_s=600)
async
¶
Wait until this rank's EngineCore finishes the scale transition.
_wait_for_ready_ranks(control_store, reconfig_store, epoch, new_data_parallel_size, handshake_server=None, timeout_s=300)
async
¶
Wait until every rank in the new DP group is ready to commit.
process_engine_core_notification(notification_data)
async
¶
Record scale notifications emitted by EngineCore processes. The stored keys are later polled by the external scale coordinator.
ExternalElasticEPScalePhase
¶
Bases: StrEnum
Lifecycle phases shared for an epoch-scoped external EEP operation.
These values are stored in the control and reconfiguration stores and exposed through the status API so external orchestrators can observe the same operation across API processes and reconnects. COMPLETED means the topology commit and rank completion barrier have finished; API processes may clear their process-local request gate shortly afterward.
ExternalElasticEPScaleUpHandshakeServer
¶
Temporary rank-0 handshake server for external EEP scale-up.
During normal external startup the global handshake listener only exists while the rank starts. Scale-up needs the same handshake contract again for newly launched ranks, so rank 0 re-opens a temporary listener for the duration of the current scale operation.
The handshake gives new ranks the information they cannot infer locally: front-end and DP coordinator ZMQ addresses, the new DP master address/ports, target DP size, target expert redundancy, and the coordination store port used for EEP reconfiguration.