Revelio:用于分布式系统的ML生成查询
Revelio: ML-Generated Debugging Queries for Distributed Systems
摘要:
调试分布式系统的一个主要困难在于手动确定使用许多可用调试工具中的哪一个以及如何查询其日志。我们自己对生产调试工作流的研究证实了这种负担的严重性。本文探讨了机器学习模型是否可以帮助开发人员在分布式系统调试。我们提出了Revelio,一个调试助手,它以用户报告和系统日志作为输入,并输出调试查询,开发人员可以使用它来找到错误的根本原因。关键的挑战在于(1)组合不同类型的输入(例如,自然语言报告和定量日志)和(2)推广到看不见的故障。Revelio通过使用深度神经网络将不同的输入源和潜在的查询统一嵌入到高维向量空间中来解决这些问题。此外,它利用生产系统的观察,将查询生成分解为两个计算和统计上更简单的学习任务。为了评估Revelio,我们构建了一个包含多个分布式应用程序和调试工具的测试平台。通过对来自800名Mechanical Turkers的日志和报告进行故障注入和训练,我们发现Revelio在96%的时间内将最有帮助的查询包含在其预测的前3个相关查询列表中。我们的开发人员研究证实了Revelio的实用性。
英文摘要:
A major difficulty in debugging distributed systems lies in manually determining which of the many available debugging tools to use and how to query its logs. Our own study of a production debugging workflow confirms the magnitude of this burden. This paper explores whether a machine-learning model can assist developers in distributed systems debugging. We present Revelio, a debugging assistant which takes user reports and system logs as input, and outputs debugging queries that developers can use to find a bug's root cause. The key challenges lie in (1) combining inputs of different types (e.g., natural language reports and quantitative logs) and (2) generalizing to unseen faults. Revelio addresses these by employing deep neural networks to uniformly embed diverse input sources and potential queries into a high-dimensional vector space. In addition, it exploits observations from production systems to factorize query generation into two computationally and statistically simpler learning tasks. To evaluate Revelio, we built a testbed with multiple distributed applications and debugging tools. By injecting faults and training on logs and reports from 800 Mechanical Turkers, we show that Revelio includes the most helpful query in its predicted list of top-3 relevant queries 96% of the time. Our developer study confirms the utility of Revelio.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。