可靠地扩展:改进Erlang分布式执行者平台的Scalability
Scaling Reliably: Improving the Scalability of the Erlang Distributed Actor Platform
摘要:
分布式Actor语言是构造可伸缩可靠系统的有效手段,Erlang程序设计语言具有一个建立良好且有影响力的模型。虽然Erlang模型在概念上提供了可靠的可伸缩性,但它有一些固有的可伸缩性限制,这些限制迫使开发人员偏离大规模的模型。本文确定了Erlang系统的可伸缩性限制,并报告了提高语言可伸缩性的工作。我们系统地研究了Erlang的可扩展性限制,并在虚拟机(VM)、语言和工具级别上解决了这些问题。更具体地说:(1)我们改进了Erlang VM,使其能够在大规模单主机多核和NUMA架构中有效工作。我们对Erlang/OTP进行了重要的架构改进。(2)我们设计并实现了可扩展分布式(SD)Erlang库来解决语言级的可扩展性问题,并为新的语言结构提供了一组语义并进行了验证。(3)为了使大型Erlang系统更易于部署、监控和调试,我们开发并开源了五个补充工具,其中一些是专门针对SD Erlang的。在本文中,我们使用两个案例研究来研究我们的新技术和工具的能力:基于分布式哈希表的轨道计算和蚁群优化(ACO)。Chaos Monkey的实验表明,两个版本的ACO生存随机过程失败,因此SD Erlang保持Erlang可靠性模型。即使对于没有全局恢复数据需要维护的程序,SD Erlang也会对网络进行分区以减少网络流量,从而提高80台主机以上的Orbit和ACO基准测试的性能。ACO测量表明,维护全局恢复数据极大地限制了可伸缩性;然而,通过对恢复数据进行分区可以恢复可伸缩性。
英文摘要:
Distributed actor languages are an effective means of constructing scalable reliable systems, and the Erlang programming language has a well-established and influential model. While Erlang model conceptually provides reliable scalability, it has some inherent scalability limits and these force developers to depart from the model at scale. This article establishes the scalability limits of Erlang systems, and reports the work to improve the language scalability. We systematically study the scalability limits of Erlang and address the issues at the virtual machine (VM), language, and tool levels. More specifically: (1) We have evolved the Erlang VM so that it can work effectively in large scale single-host multicore and NUMA architectures. We have made important architectural improvements to the Erlang/OTP. (2) We have designed and implemented Scalable Distributed (SD) Erlang libraries to address language-level scalability issues, and provided and validated a set of semantics for the new language constructs. (3) To make large Erlang systems easier to deploy, monitor, and debug we have developed and made open source releases of five complementary tools, some specific to SD Erlang. Throughout the article we use two case studies to investigate the capabilities of our new technologies and tools: a distributed hash table based Orbit calculation and Ant Colony Optimisation (ACO). Chaos Monkey experiments show that two versions of ACO survive random process failure and hence that SD Erlang preserves the Erlang reliability model. Even for programs with no global recovery data to maintain, SD Erlang partitions the network to reduce network traffic and hence improves performance of the Orbit and ACO benchmarks above 80 hosts. ACO measurements show that maintaining global recovery data dramatically limits scalability; however scalability is recovered by partitioning the recovery data.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。