TY - GEN
T1 - Affinity-aware Serverless Function Scheduling
AU - De Palma, Giuseppe
AU - Giallorenzo, Saverio
AU - Mauro, Jacopo
AU - Trentin, Matteo
AU - Zavattaro, Gianluigi
N1 - Publisher Copyright:
© 2025 IEEE.
PY - 2025/4
Y1 - 2025/4
N2 - 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.
AB - 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.
KW - Affinity-awareness
KW - Function Scheduling
KW - Function-as-a-Service
KW - Serverless
U2 - 10.1109/ICSA65012.2025.00015
DO - 10.1109/ICSA65012.2025.00015
M3 - Article in proceedings
AN - SCOPUS:105005028817
T3 - Proceedings - IEEE International Conference on Software Architecture
SP - 49
EP - 59
BT - 2025 IEEE 22nd International Conference on Software Architecture (ICSA)
PB - IEEE
T2 - 22nd IEEE International Conference on Software Architecture, ICSA 2025
Y2 - 31 March 2025 through 4 April 2025
ER -