arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2207.13168cs.DC
收藏

减少FaaS系统响应时间的呼叫调度

Call Scheduling to Reduce Response Time of a FaaS System

Paweł Żuk, Bartłomiej Przybylski, Krzysztof Rzadca

摘要:

在一个过载的FaaS集群中,各个工作节点在不断增长的请求队列下承受着压力。虽然集群最终可能会横向扩展,但添加一个新节点需要几十秒。由于服务应用程序针对尾服务延迟进行了调优,并且这些延迟在较重的负载下会大大增加,因此当前的解决方案是资源过度配置。事实上,即使服务可以承受稳定的负载,例如,70%的CPU利用率,则自动定标器在以下情况下触发,例如,30-40%(因此服务使用的节点数量是所需的两倍)。我们提出了一种替代方案:一个工人级的方法处理重负载,而不增加节点的数量。FaaS执行不是交互式的,例如,文本编辑器:最终用户不会经常从分配给进程的CPU中受益,但时间很短。受高性能计算调度方法的启发,我们采取了一个激进的步骤,通过(1)基于历史特征对请求进行排队;(2)一旦处理请求,将其CPU限制设置为一个核心(没有CPU超额订阅)来取代经典的操作系统抢占。我们扩展了OpenWhisk,并使用SeBS基准测试来衡量所提出的解决方案的效率。在加载系统中,我们的方法减少了平均响应时间的一个因素4。对于较短的请求,改进甚至更高,因为平均拉伸减少了18倍。这使我们表明,与4台机器基线相比,我们可以使用3台机器提供更好的响应时间统计数据。

英文摘要:

In an overloaded FaaS cluster, individual worker nodes strain under lengthening queues of requests. Although the cluster might be eventually horizontally-scaled, adding a new node takes dozens of seconds. As serving applications are tuned for tail serving latencies, and these greatly increase under heavier loads, the current workaround is resource over-provisioning. In fact, even though a service can withstand a steady load of, e.g., 70% CPU utilization, the autoscaler is triggered at, e.g., 30-40% (thus the service uses twice as many nodes as it would be needed). We propose an alternative: a worker-level method handling heavy load without increasing the number of nodes. FaaS executions are not interactive, compared to, e.g., text editors: end-users do not benefit from the CPU allocated to processes often, yet for short periods. Inspired by scheduling methods for High Performance Computing, we take a radical step of replacing the classic OS preemption by (1) queuing requests based on their historical characteristics; (2) once a request is being processed, setting its CPU limit to exactly one core (with no CPU oversubscription). We extend OpenWhisk and measure the efficiency of the proposed solutions using the SeBS benchmark. In a loaded system, our method decreases the average response time by a factor of 4. The improvement is even higher for shorter requests, as the average stretch is decreased by a factor of 18. This leads us to show that we can provide better response-time statistics with 3 machines compared to a 4-machine baseline.

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

↑