Skip to content
xLLM xLLM PR preview
EN

Overview

xLLM Service is the cluster service layer for xLLM. It accepts inference requests, discovers registered engines, tracks their health and load, and schedules requests to instances. Deploy a single model with compatible engine settings in each service cluster.

ComponentResponsibility
HTTP serviceReceives client requests, including /v1/chat/completions and /v1/completions
RPC serviceCommunicates with xLLM instances and receives status updates
etcdStores instance registration and coordination metadata; supports discovery and load synchronization
Instance managerMaintains instance membership, health state and schedulable candidates
SchedulerSelects instances using policies such as RR, SLO_AWARE and CAR
xLLM enginesLoad model weights, execute inference and manage actual KV tensors

Start etcd, then service, then the engines. Engines are started manually or by your own scripts and register with the same etcd address and namespace. Service discovers these registrations; it does not launch engines from a JSON/YAML deployment file.

In a non-disaggregated deployment, a DEFAULT engine executes the complete request. In a prefill/decode (PD) deployment, the scheduler selects a Prefill (P) and Decode (D) instance, P performs prefill and transfers KV using the configured engine transport, and D returns generated output to service.

The service HTTP listener becomes available only when a suitable instance group is available. It is stopped when no suitable group remains and starts again when instances recover.

The optional KV events directory and CAR routing asynchronously track Device and Host prefix metadata. The scheduler queries this local directory during routing. The directory neither stores nor migrates KV tensors; the engines retain ownership of cache allocation, offload and reuse.

Automatic engine provisioning, autoscaling, a Kubernetes controller and cross-instance KV migration are outside the deployment workflow described here.

Continue with Build and run.

Report issue