Presented at IEEE INFOCOM 2022, this research addresses a critical bottleneck in edge computing: maximizing performance on resource-constrained edge servers by rethinking the deployment of containerized microservices. By exploiting the inherent layered architecture of modern containers, the authors propose a collaborative strategy that shares image layers across a network of edge servers.
The Challenge: Resource-Constrained Edge Computing
Edge computing aims to process data near the user to minimize latency. However, unlike massive cloud datacenters, edge servers are often "resource-poor," particularly regarding storage and computation. The industry standard for deploying services is through containers (e.g., Docker), which are flexible but heavy. A single container image can range from hundreds of megabytes to several gigabytes.
Crucially, containers are built in layers. Many different microservices—such as a web server and a database—often share the same underlying Linux base layers. Existing deployment strategies typically treat containers as monolithic blocks or only share layers within a single server. This results in significant storage redundancy and missed opportunities for optimization.
Proposed Solution: Inter-Server Layer Sharing
The core innovation of this paper is inter-server layer sharing. If Server A requires a specific layer that Server B already has, Server A can fetch it from its neighbor rather than the distant cloud. This collaborative approach effectively pools the storage resources of the entire edge network.
By decoupling storage from deployment, a microservice no longer needs all its layers stored locally to run. This "layer-aware" approach recognizes that while fetching a layer from a neighbor consumes bandwidth, it is significantly faster than fetching from the cloud and allows for much higher service density.
Methodology: The JMDLS Problem
The authors formalize this as the Joint Microservice Deployment and Layer Storage (JMDLS) problem. They prove that JMDLS is NP-hard by reducing it to a "set-union knapsack problem." To solve it efficiently, they introduce a Randomized Rounding (RR) based algorithm:
- Linear Relaxation: The complex "yes/no" deployment decisions are initially treated as probabilities between 0 and 1.
- Probabilistic Decision Making: The algorithm "rounds" these probabilities back into discrete deployment decisions based on the linear solver's output.
- Feasibility Check: The system iteratively adjusts decisions to ensure hardware constraints (storage, CPU, and bandwidth) are not violated while maintaining high performance.
Key Results and Evaluation
The researchers evaluated the JMDLS-RR algorithm using real-world metadata from Docker Hub (including MySQL, Nginx, and Cassandra) and request patterns from the IBM Docker Registry Trace Player. Their simulations on a 14-server edge cloud yielded impressive results:
- Increased Instance Density: The approach deployed 6× to 12× more microservice instances within the same storage constraints compared to non-layer-aware methods.
- Throughput Gains: The strategy achieved a 27.74% to 38.46% increase in edge throughput compared to state-of-the-art baselines.
- Efficiency: The randomized rounding approach remained computationally efficient and stayed close to the theoretical optimal solution even as request volume scaled.
Conclusion and Future Work
By exploiting layer redundancy, edge networks can significantly scale their capacity without additional hardware investment. While this work focuses on maximizing throughput, future research could further explore end-to-end latency for individual users, adaptation to highly dynamic environments with mobile users, and the security implications of sharing container layers between distributed edge nodes.
Summary updated