Vesta:面向真实工作负载的感知排队的大语言模型调度器
Vesta: Queueing-Aware LLM Scheduling for Real-World Workloads
AI总结:
Vesta是一种分布式智能体LLM服务的感知排队调度器,通过稳定分配KV缓存持有者、独立选择请求执行器等设计,在真实工作负载下显著提升了吞吐量并降低了首包时间。
摘要:
智能体应用会生成多轮大语言模型(LLM)请求序列,每一轮都会扩展之前交互和工具调用积累的上下文。前缀缓存会复用前几轮的键值(KV)缓存,避免冗余的预填充,但将每一轮路由到其缓存亲和实例可能会造成严重的本地队列,而其他地方仍有空闲容量。远程KV缓存访问缓解了这种紧张关系,但迁移执行会增加传输开销,当集群已经拥塞时则会产生不利影响。因此,决定在何处执行请求需要联合推理缓存局部性、排队以及集群当前的运行状态。我们提出Vesta,一种用于分布式智能体LLM服务的感知排队调度器。Vesta为每个会话分配一个稳定的持有者来存储其权威KV缓存,同时为每一个请求独立选择执行器。它基于经典排队理论,其目标函数考虑了积压、可复用前缀、KV缓存传输以及额外服务需求的排队外部性;当有益时,它会迁移执行以恢复空闲容量,随着拥塞加剧,它倾向于选择增加最少预填充和传输开销的部署位置。Vesta还会跨长度桶迁移可复用前缀,以避免冷启动。在真实的智能体工作负载上,在PD共置部署中,Vesta比最先进的调度器提高了14.0%的吞吐量,并将平均首包时间(TTFT)降低了57.8%;在PD解聚部署中,在匹配吞吐量下,它将平均TTFT最多降低18.1%,P99 TTFT最多降低29.0%。
英文摘要:
Agentic applications generate multi-turn sequences of LLM requests, with each new turn extending the context accumulated from prior interactions and tool calls. Prefix caching reuses the KV cache of earlier turns and avoids redundant prefill, but routing every turn to its cache-affine instance can create severe local queues while capacity remains idle elsewhere. Remote KV cache access relaxes this tension, yet migrating execution adds transfer work and is harmful when the cluster is already congested. Thus, deciding where to execute a request requires reasoning jointly about cache locality, queueing, and the current operating point of the cluster. We present Vesta, a queueing-aware scheduler for distributed agentic LLM serving. Vesta assigns each session a stable holder for its authoritative KV cache while independently selecting an executor for every request. Grounded in classical queueing theory, its objective accounts for backlog, reusable prefixes, KV cache transfer, and the queueing externality of additional service demand; it migrates execution to recover idle capacity when beneficial and favors placements that add the least prefill and transfer work as congestion rises. Vesta also migrates reusable prefixes across length buckets to avoid cold starts. On real-world agentic workloads, Vesta improves throughput by 14.0\% and reduces mean TTFT by 57.8\% over the state-of-the-art scheduler in a PD-colocated deployment. In PD-disaggregated deployments, it reduces mean TTFT by up to 18.1\% and P99 TTFT by up to 29.0\% at matched throughput.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。