使用混合向量时钟的因果图
Causality Diagrams using Hybrid Vector Clocks
AI总结:
本文提出利用混合向量时钟生成因果追踪,以高效剖析分布式系统并定位故障点,同时提供API供通用框架复用。
摘要:
分布式系统中的因果关系是一个长期被探索的概念,并且已有众多方法尝试利用因果关系来追踪分布式系统的执行过程。传统方法通常使用系统剖析,而较新的方法则剖析系统时钟以检测故障并构建导致这些故障的时间线。自从逻辑时钟问世以来,这些剖析因能够刻画并发性和分布性并生成精确的消息传递图而变得越来越准确。向量时钟通过同时存储系统中其他进程的信息,解决了传统逻辑时钟的不足。混合向量时钟是对这一概念的一种新颖方法,其中时钟无需存储所有进程信息。相反,我们存储与焦点进程偏差在可接受范围内的进程信息。这为我们提供了一种高效的剖析方式,并显著降低了系统开销。基于这一思想,我们提出利用混合向量时钟生成的信息构建因果追踪的想法。混合向量时钟将为我们提供对并发性和分布性的强烈感知,并且我们推测,从时钟生成的所有信息足以开发出用于调试的因果追踪。我们对执行追踪中生成的时钟进行后处理与解析,以在网络界面上开发泳道图,该图可追踪分布式系统的故障点。我们还提供了一个API,以便将此概念复用于任何通用分布式系统框架。
英文摘要:
Causality in distributed systems is a concept that has long been explored and numerous approaches have been made to use causality as a way to trace distributed system execution. Traditional approaches usually used system profiling and newer approaches profiled clocks of systems to detect failures and construct timelines that caused those failures. Since the advent of logical clocks, these profiles have become more and more accurate with ways to characterize concurrency and distributions, with accurate diagrams for message passing. Vector clocks addressed the shortcomings of using traditional logical clocks, by storing information about other processes in the system as well. Hybrid vector clocks are a novel approach to this concept where clocks need not store all the process information. Rather, we store information of processes within an acceptable skew of the focused process. This gives us an efficient way of profiling with substantially reduced costs to the system. Building on this idea, we propose the idea of building causal traces using information generated from the hybrid vector clock. The hybrid vector clock would provide us with a strong sense of concurrency and distribution, and we theorize that all the information generated from the clock is sufficient to develop a causal trace for debugging. We post-process and parse the clocks generated from an execution trace to develop a swimlane on a web interface, that traces the points of failure of a distributed system. We also provide an API to reuse this concept for any generic distributed system framework.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。