Hydra: Virtualized Multi-Language Runtime for High-Density Serverless Platforms
Hydra: Virtualized Multi-Language Runtime for High-Density Serverless Platforms
Serverless is an attractive computing model that offers seamless scalability and elasticity; it takes the infrastructure management burden away from users and enables a pay-as-you-use billing model. As a result, serverless is becoming increasingly popular to support highly elastic and bursty workloads. However, existing platforms are supported by bloated virtualization stacks, which, combined with bursty and irregular invocations, lead to high memory and latency overheads. To reduce the virtualization stack bloat, we propose Hydra, a virtualized multi-language runtime and platform capable of hosting multiple sandboxes running concurrently. To fully leverage Hydra's virtualized runtime, we revisit the existing serverless platform design to make it colocation-aware across owners and functions, and to feature a caching layer of pre-allocated Hydra instances that can be used by different functions written in different languages to reduce cold starts. We also propose a snapshotting mechanism to checkpoint and restore individual sandboxes. By consolidating multiple serverless function invocations through Hydra, we improve the overall function density (ops/GB-sec) by 2.41x on average compared to OpenWhisk runtimes, the state-of-the-art single-language runtimes used in most serverless platforms, and by 1.43x on average compared to Knative runtimes supporting invocation colocation within the same function. When reproducing the Azure Functions trace, our serverless platform operating Hydra instances reduces the overall memory footprint by 21.3-43.9% compared to operating OpenWhisk instances and by 14.5-30% compared to operating Knative instances. Hydra eliminates cold starts thanks to the pool of pre-warmed runtime instances, reducing p99 latency by 45.3-375.5x compared to OpenWhisk and by 1.9-51.4x compared to Knative.
Rodrigo Bruno、Serhii Ivanenko、Vasyl Lanko、Rudi Horn、Vojin Jovanovic
计算技术、计算机技术
Rodrigo Bruno,Serhii Ivanenko,Vasyl Lanko,Rudi Horn,Vojin Jovanovic.Hydra: Virtualized Multi-Language Runtime for High-Density Serverless Platforms[EB/OL].(2025-07-22)[2025-08-05].https://arxiv.org/abs/2212.10131.点此复制
评论