异步负载均衡与自动扩缩容:平均场极限与最优设计
Asynchronous Load Balancing and Auto-scaling: Mean-Field Limit and Optimal Design
AI总结:
本文提出结合经典算法与自动扩缩容的马尔可夫负载均衡框架,首次研究异步运行场景,找到实现延迟与相对能量最优的扩缩容规则条件,并提出优于同步方案的规则族。
摘要:
我们开发了一个马尔可夫负载均衡框架,将 Power-of-$d$ 等经典算法与自动扩缩容机制相结合,该机制允许净服务容量根据当前负载在作业动态的同一时间尺度上进行扩容或缩容。我们的框架受 Knative 等无服务器平台启发,其中服务器是软件函数,可根据无服务器平台用户定义的扩缩容规则在几毫秒内灵活实例化。主要问题是如何设计此类扩缩容规则,以最小化用户感知的延迟性能,同时确保低能耗。我们首次研究了自动扩缩容和负载均衡过程异步(或主动)运行的情况,如在 Knative 中。与同步(或反应式)范式相比,异步性带来了优势,即作业不一定需要在做出扩容决策时等待任何时间。在我们的主要结果中,我们找到了关于扩缩容规则结构的一般条件,能够将平均场动态驱动至延迟和相对能量最优,即一种用户感知延迟和空闲服务器引起的相对能量浪费在网络需求相对于标称服务容量趋于无穷大的极限下消失的情况。所识别的条件表明,当且仅当平均需求超过服务器变为空闲和活跃的速率时,才应扩容当前净容量。最后,我们提出了一系列满足我们最优条件的扩缩容规则。数值模拟表明,这些规则比现有的同步自动扩缩容方案提供更好的延迟性能,同时产生几乎相同的功耗。
英文摘要:
We develop a Markovian framework for load balancing that combines classical algorithms such as Power-of-$d$ with auto-scaling mechanisms that allow the net service capacity to scale up or down in response to the current load on the same timescale as job dynamics. Our framework is inspired by serverless platforms, such as Knative, where servers are software functions that can be flexibly instantiated in milliseconds according to scaling rules defined by the users of the serverless platform. The main question is how to design such scaling rules to minimize user-perceived delay performance while ensuring low energy consumption. For the first time, we investigate this problem when the auto-scaling and load balancing processes operate asynchronously (or proactively), as in Knative. In contrast to the synchronous (or reactive) paradigm, asynchronism brings the advantage that jobs do not necessarily need to wait any time a scale-up decision is taken. In our main result, we find a general condition on the structure of scaling rules able to drive mean-field dynamics to delay and relative energy optimality, i.e., a situation where both the user-perceived delay and the relative energy waste induced by idle servers vanish in the limit where the network demand grows to infinity in proportion to the nominal service capacity. The identified condition suggests to scale up the current net capacity if and only if the mean demand exceeds the rate at which servers become idle and active. Finally, we propose a family of scaling rules that satisfy our optimality condition. Numerical simulations demonstrate that these rules provide better delay performance than existing synchronous auto-scaling schemes while inducing almost the same power consumption.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。