一句话:提出 Metronome,用在线随机森林预测执行时间,为 Serverless 函数实现差异化延迟调度。
无服务器函数因动态、事件驱动而调度困难,传统延迟调度中的数据局部性在 FaaS 平台尚未充分探索。作者系统评估现有延迟调度,发现函数输入特征、数据与基础设施局部性、异构执行时间等因素导致规则化延迟阈值失效。为此提出 Metronome:一种差异化延迟调度框架,用预测机制为每个函数挑选局部性感知的最优节点,并基于在线随机森林回归预测函数在不同节点上的执行时间,从而决定延迟并避免 SLA 违规。在 OpenLambda 上实现后,Metronome 相比基线将函数平均执行时间降低 64.88%–95.83%,在并发提高时仍保持优势且满足 SLA。
Function-as-a-Service (FaaS) computing is an emerging cloud computing paradigm for its ease-of-management and elasticity. However, optimizing scheduling for serverless functions remains challenging due to their dynamic and event-driven nature. While data locality has been proven effective in traditional cluster computing systems through delay scheduling, its application in serverless platforms remains largely unexplored. In this paper, we systematically evaluate existing delay scheduling methods in serverless environments and identify three key observations: 1) delay scheduling benefits vary significantly based on function input characteristics; 2) serverless computing exhibits more complex locality patterns than cluster computing systems, encompassing both data locality and infrastructure locality; and 3) heterogeneous function execution times make rule-based delay thresholds ineffective. Based on these insights, we propose Metronome, a differentiated delay scheduling framework that employs predictive mechanisms to identify optimal locality-aware nodes for individual functions. Metronome leverages an online Random Forest Regression model to forecast function execution times across various nodes, enabling informed delay decisions while preventing SLA violations. Our implementation on OpenLambda shows that Metronome significantly outperforms baselines, achieving 64.88%–95.83% reduction in mean execution time for functions, while maintaining performance advantages under increased concurrency levels and ensuring SLA compliance.