适用于微小工作负载的微小自动定标器:无服务器功能的动态CPU分配
Tiny Autoscalers for Tiny Workloads: Dynamic CPU Allocation for Serverless Functions
摘要:
在无服务器计算中,应用程序在轻量级虚拟化和隔离环境下执行,例如容器或微型虚拟机。通常,它们的内存分配由用户在部署之前设置。所有其他资源(如CPU)由提供程序静态分配,并与内存分配成比例。这会导致利用率不足或节流。前者对供应商有很大影响,而后者对客户有很大影响。为了解决这个问题并同时适应客户端和提供程序,一个解决方案是通过自动缩放实现动态CPU分配。自动缩放已被调查的长期运行的应用程序使用基于历史的技术和预测。然而,无服务器应用程序是短期运行的工作负载,这种技术并不适合。在本文中,我们研究了小型自动缩放器以及动态CPU分配技术如何用于短期运行的无服务器工作负载。我们尝试使用Kubernetes作为底层平台,并使用其垂直pod autoscaler实现了几种动态CPU调整技术。我们使用最先进的无服务器工作负载来比较这些技术。我们的实验表明,短期运行的无服务器功能的动态CPU分配是可行的,可以实现轻量级算法,提供良好的性能。
英文摘要:
In serverless computing, applications are executed under lightweight virtualization and isolation environments, such as containers or micro virtual machines. Typically, their memory allocation is set by the user before deployment. All other resources, such as CPU, are allocated by the provider statically and proportionally to memory allocations. This contributes to either under-utilization or throttling. The former significantly impacts the provider, while the latter impacts the client. To solve this problem and accommodate both clients and providers, a solution is dynamic CPU allocation achieved through autoscaling. Autoscaling has been investigated for long-running applications using history-based techniques and prediction. However, serverless applications are short-running workloads, where such techniques are not well suited. In this paper, we investigate tiny autoscalers and how dynamic CPU allocation techniques perform for short-running serverless workloads. We experiment with Kubernetes as the underlying platform and implement using its vertical pod autoscaler several dynamic CPU rightsizing techniques. We compare these techniques using state-of-the-art serverless workloads. Our experiments show that dynamic CPU allocation for short-running serverless functions is feasible and can be achieved with lightweight algorithms that offer good performance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。