ORACL: 通过LLM进行微服务的链式推理优化自动扩展
ORACL: Optimized Reasoning for Autoscaling via Chain of Thought with LLMs for Microservices
AI总结:
ORACL通过LLM进行链式推理,实现微服务自动扩展的优化资源分配,提升根因识别准确率和训练效率。
摘要:
应用程序正从单体设计转向微服务和无服务器架构,其中轻量级且可独立部署的组件在公共云上运行。自动扩展是平衡资源利用率和服务质量的主要控制机制,但现有策略要么是需要大量部署训练的模糊学习模型,要么是易碎的手调规则,无法泛化。我们研究大型语言模型是否可以作为通用少样本资源分配器,在快速演进的微服务部署中适应。我们提出了ORACL,即通过LLM进行链式推理的优化自动扩展框架,该框架利用先验知识和链式推理来诊断性能退化并推荐资源分配。ORACL将运行时遥测,包括pod、副本、CPU和内存使用情况、延迟、服务级别目标和故障信号,转换为语义自然语言状态描述,并调用LLM生成可解释的中间推理轨迹。这种推理识别可能的根因,修剪动作空间,并在策略约束下发出安全的分配决策。在具有代表性的开源微服务工作负载上的实验表明,ORACL将根因识别准确率提高了15%,加速了训练速度最高达24倍,并在短期场景中将服务质量提高了6%,无需部署特定的重新训练。
英文摘要:
Applications are moving away from monolithic designs to microservice and serverless architectures, where fleets of lightweight and independently deployable components run on public clouds. Autoscaling serves as the primary control mechanism for balancing resource utilization and quality of service, yet existing policies are either opaque learned models that require substantial per-deployment training or brittle hand-tuned rules that fail to generalize. We investigate whether large language models can act as universal few-shot resource allocators that adapt across rapidly evolving microservice deployments. We propose ORACL, Optimized Reasoning for Autoscaling via Chain of Thought with LLMs for Microservices, a framework that leverages prior knowledge and chain-of-thought reasoning to diagnose performance regressions and recommend resource allocations. ORACL transforms runtime telemetry, including pods, replicas, CPU and memory usage, latency, service-level objectives, and fault signals, into semantic natural-language state descriptions and invokes an LLM to produce an interpretable intermediate reasoning trace. This reasoning identifies likely root causes, prunes the action space, and issues safe allocation decisions under policy constraints. Experiments on representative open-source microservice workloads show that ORACL improves root-cause identification accuracy by 15 percent, accelerates training by up to 24x, and improves quality of service by 6 percent in short-term scenarios, without deployment-specific retraining.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。