FaasMeter: Energy-First Serverless Computing
Abdul Rehman, Alexander Fuerst, Prateek Sharma
TL;DR
FaasMeter introduces a full-system energy metrology framework for Functions as a Service (FaaS), elevating energy to a first-class resource in serverless platforms. By fusing direct attribution with model-based disaggregation, online Kalman filtering, CPU power modeling, and Shapley-value-inspired fair sharing, it provides per-invocation footprints and fair accounting that support energy capping and pricing. External validation against marginal energy demonstrates high accuracy across diverse hardware, while internal metrics show footprint stability and symmetry suitable for pricing. The approach enables energy-aware scheduling and governance in heterogeneous, multi-tenant serverless environments, with practical impact for decarbonization and cost efficiency.
Abstract
Functions as a Service has emerged as a popular abstraction for a wide range of cloud applications and an important cloud workload. We present the design and implementation of FaasMeter, a FaaS control plane which provides energy monitoring, accounting, control, and pricing as first-class operations. The highly diverse and dynamic workloads of FaaS create additional complexity to measuring and controlling energy usage which FaasMeter can mitigate. We develop a new statistical energy disaggregation approach to provide accurate and complete energy footprints for functions, despite using noisy and coarse-grained system-level power (not just CPU power readings). Our accurate and robust footprints are achieved by combining conventional power models with Kalman filters and Shapley values. FaasMeter is a full-spectrum energy profiler, and fairly attributes energy of shared resources to functions (such as energy used by the control plane itself). We develop new energy profiling validation metrics, and show that FaasMeter's energy footprints are accurate to within 1\% of carefully obtained marginal energy ground truth measurements.
