arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.01284math.OCmath.PR
收藏

非平稳梯度下降在无服务器平台最优自动扩缩容中的应用

Non-Stationary Gradient Descent for Optimal Auto-Scaling in Serverless Platforms

Jonatha Anselmi, Bruno Gaujal, Louis-Sebastien Rebuffi

AI总结:

针对无服务器平台自动扩缩容问题,提出Kiefer--Wolfowitz型随机梯度下降方案,解决未命中任务到达时的服务器生成数量优化,证明其渐近最优且收敛速率为O(n⁻²/³),通过数值模拟验证效果并量化相对于现有规则的增益。

摘要:

为高效管理无服务器计算平台,自动扩缩容是关键环节,即服务分配的计算资源集随流量需求动态调整,目标是在用户感知性能与能耗间找到平衡。本文考虑“按请求扩缩容”模式,研究当“未命中”任务(到达时所有服务器均繁忙的任务)到达时应生成多少函数实例(或服务器)。我们采用随机优化方法解决该问题:提出一种Kiefer--Wolfowitz型随机梯度下降方案,应用于状态演化的单次运行。每次迭代中,该方案计算未命中任务到达时生成服务器数量的估计值,以最小化某成本函数。在自然假设下,证明方案产生的估计序列几乎必然渐近最优,且收敛速率为O(n⁻²/³)(n为迭代次数)。从数学角度看,自动扩缩容引发的随机优化框架具有非标准特性,我们从一般视角分析:考虑控制器仅能获取底层随机系统“瞬态”而非平稳行为样本的场景,通过利用底层马尔可夫链混合时间的性质开发论证以解决此难题。通过数值模拟验证所提方法,并量化其相对于现有常见扩容规则的增益。

英文摘要:

To efficiently manage serverless computing platforms, a key aspect is the auto-scaling of services, i.e., the set of computational resources allocated to a service adapts over time as a function of the traffic demand. The objective is to find a compromise between user-perceived performance and energy consumption. In this paper, we consider the \emph{scale-per-request} auto-scaling pattern and investigate how many function instances (or servers) should be spawned each time an \emph{unfortunate} job arrives, i.e., a job that finds all servers busy upon its arrival. We address this problem by following a stochastic optimization approach: we develop a stochastic gradient descent scheme of the Kiefer--Wolfowitz type that applies \emph{over a single run of the state evolution}. At each iteration, the proposed scheme computes an estimate of the number of servers to spawn each time an unfortunate job arrives to minimize some cost function. Under natural assumptions, we show that the sequence of estimates produced by our scheme is asymptotically optimal almost surely. In addition, we prove that its convergence rate is $O(n^{-2/3})$ where $n$ is the number of iterations. From a mathematical point of view, the stochastic optimization framework induced by auto-scaling exhibits non-standard aspects that we approach from a general point of view. We consider the setting where a controller can only get samples of the \emph{transient} -- rather than stationary -- behavior of the underlying stochastic system. To handle this difficulty, we develop arguments that exploit properties of the mixing time of the underlying Markov chain. By means of numerical simulations, we validate the proposed approach and quantify its gain with respect to common existing scale-up rules.

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

↑