arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.21165cs.LGcs.AI
收藏

BALLAST: 用于Raft中延迟感知稳定超时的老虎机辅助学习

BALLAST: Bandit-Assisted Learning for Latency-Aware Stable Timeouts in Raft

PingCAP, Data & AI-Innovation Lab(PingCAP数据与人工智能创新实验室)

Qizhi Wang

AI总结:

BALLAST通过上下文老虎机替代静态超时启发式方法,有效减少Raft中长尾延迟和分区恢复导致的不可用时间。

摘要:

随机选举超时是Raft中简单有效的活性启发式方法,但在长尾延迟、抖动和分区恢复情况下变得脆弱,其中重复的分裂投票会放大不可用性。本文提出了BALLAST,一种轻量级的在线适应机制,用上下文老虎机替代静态超时启发式方法。BALLAST使用高效的线性上下文老虎机(LinUCB变体)从离散的超时“臂”中选择,并通过安全探索增强学习以在不稳定时期限制风险。我们在一个可重复的离散事件模拟中评估BALLAST,该模拟包含长尾延迟、丢包、相关突发、节点异质性和分区/恢复湍流。在挑战性的广域网环境中,BALLAST相比标准随机超时和常见启发式方法显著减少了恢复时间和不可写时间,同时在稳定局域网/广域网环境中保持竞争力。

英文摘要:

Randomized election timeouts are a simple and effective liveness heuristic for Raft, but they become brittle under long-tail latency, jitter, and partition recovery, where repeated split votes can inflate unavailability. This paper presents BALLAST, a lightweight online adaptation mechanism that replaces static timeout heuristics with contextual bandits. BALLAST selects from a discrete set of timeout "arms" using efficient linear contextual bandits (LinUCB variants), and augments learning with safe exploration to cap risk during unstable periods. We evaluate BALLAST on a reproducible discrete-event simulation with long-tail delay, loss, correlated bursts, node heterogeneity, and partition/recovery turbulence. Across challenging WAN regimes, BALLAST substantially reduces recovery time and unwritable time compared to standard randomized timeouts and common heuristics, while remaining competitive on stable LAN/WAN settings.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑