arXiv:2608.10532cs.NIcs.LG2026-08

用大模型自动识别并隔离故障后端,显著降低5xx错误率。

Benchmarking LLM-Guided Control-Plane Policies for Backend Fault Isolation in HAProxy

论文配图:Benchmarking LLM-Guided Control-Plane Policies for Backend Fault Isolation in HAProxy
图 1 · 摘自论文原文
  • 大模型每10秒分析监控数据,通过安全接口动态调整负载均衡策略。
  • 参数量超30亿的模型可使客户端感知的5xx错误减少88%。
  • 低成本高效方案:超阈值模型+非推理模式+确定性防护机制。

静态负载均衡无法处理退化但未宕机的后端:轮询和最少连接策略仍会将流量导向返回HTTP 500的服务器,直至人工干预。我们探究大语言模型是否能替代静态路由策略,每10秒读取HAProxy与Prometheus的遥测数据,并通过受控调用HAProxy数据平面API实现故障服务器隔离。在包含约三分之一异构后端存在持续结构性故障的可复现基准测试中,我们评估了15个开源模型(参数量0.35B至35B,涵盖密集型、专家混合及高效稀疏架构)、五种推理模式、3至9个后端规模以及两种路由算法,共240次实验。发现能力阈值约在3B活跃参数附近:低于此阈值时,模型策略通常不可靠,甚至劣于无策略;高于此阈值时,无论架构如何,所有模型均趋于实现比静态基线减少88%的客户端感知5xx错误。该阈值为近似值:Gemma 4 E2B以2B活跃参数达标,而3B密集型Granite 4.0 Micro未达标。可用性提升伴随代价:引流导致存活服务器尾延迟上升2.6至2.8倍,且启用推理使令牌消耗增加约十倍,超出控制周期,削弱效果。最优运行点为超阈值模型在最廉价非推理模式下,配合确定性防护机制。

原文摘要 · Abstract (English)

Static load balancers cannot mitigate a backend that is degraded rather than down: round-robin and least-connections keep routing traffic to a server returning HTTP 500s until an operator intervenes. We ask whether a Large Language Model can replace the static routing policy itself, reading HAProxy and Prometheus telemetry every 10 seconds and isolating faulty servers through guardrailed calls to the HAProxy Data Plane API. On a reproducible benchmark with a persistent structural fault built into roughly one-third of a heterogeneous fleet, we sweep 15 open-weight models across five families (0.35B to 35B total parameters; dense, mixture-of-experts, and efficient-sparse architectures), reasoning modes, fleet scales of 3 to 9 backends, and two routing algorithms, totaling 240 runs. We find a capability threshold near 3B active parameters. Below it, LLM policies are typically unreliable and sometimes worse than no policy; above it, every model, regardless of architecture, saturates near an 88% reduction in client-perceived 5xx errors over the static baseline. The threshold is approximate: Gemma 4 E2B clears it with 2B active parameters, while the dense 3B Granite 4.0 Micro does not. The availability gain has costs. Draining concentrates load onto surviving servers, inflating tail latency 2.6 to 2.8 times, and enabling reasoning multiplies token spend roughly tenfold, overrunning the control interval and degrading effectiveness. The efficient operating point is a supra-threshold model in its cheapest non-reasoning mode, wrapped inside deterministic guardrails.

大模型负载均衡故障隔离运维自动化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。