English

Affinity-aware Serverless Function Scheduling

Distributed, Parallel, and Cluster Computing 2025-01-24 v2

Abstract

Functions-as-a-Service (FaaS) is a Serverless Cloud paradigm where a platform manages the scheduling (e.g., resource allocation, runtime environments) of stateless functions. Recent work proposed using domain-specific languages to express per-function policies, e.g., policies that enforce the allocation on nodes that enjoy lower latencies to databases and services used by the function. Here, we focus on affinity-aware scenarios, i.e., where, for performance and functional requirements, the allocation of a function depends on the presence/absence of other functions on nodes. We present aAPP, an extension of a declarative, platform-agnostic language that captures affinity-aware scheduling at the FaaS level. We implement an aAPP-based prototype on Apache OpenWhisk. Besides proving that a FaaS platform can capture affinity awareness using aAPP and improve performance in affinity-aware scenarios, we use our prototype to show that aAPP imposes no noticeable overhead in scenarios without affinity constraints.

Keywords

Cite

@article{arxiv.2407.14572,
  title  = {Affinity-aware Serverless Function Scheduling},
  author = {Giuseppe De Palma and Saverio Giallorenzo and Jacopo Mauro and Matteo Trentin and Gianluigi Zavattaro},
  journal= {arXiv preprint arXiv:2407.14572},
  year   = {2025}
}

Comments

11 pages, 9 figures, 1 listing. arXiv admin note: substantial text overlap with arXiv:2407.14159