Docker Layer Placement for On-Demand Provisioning of Services on Edge Clouds

Piet Smet, Bart Dhoedt, Pieter SimoensIEEE Trans. Netw. Serv. Manag 2018

Introduction

Edge computing aims to bring processing power closer to end-users to minimize latency. However, edge nodes face much stricter storage and compute constraints compared to centralized data centers. This paper addresses the challenge of deploying "long-tail" microservices—niche applications with infrequent, unpredictable demand. Pre-deploying these services across the entire edge network is economically wasteful, yet failing to do so can lead to startup delays that exceed tolerable wait times. The authors propose a strategy to optimize the placement of individual Docker image layers across storage nodes to enable on-demand provisioning within strict latency constraints.

System Architecture and Problem Formulation

The proposed system leverages the modular nature of Docker images, which consist of discrete, reusable layers. By treating layers as the unit of placement, the system can reuse components already present on nearby nodes, reducing network traffic and deployment time.

System architecture for Docker layer placement and service deployment on edge nodes.

The placement problem is formulated as an Integer Linear Programming (ILP) task, considering two download scenarios:

  • Serial Download (Docker v1): Layers are pulled sequentially.
  • Parallel Download (Docker v2): Multiple layers are pulled simultaneously, where the total delay is dictated by the slowest (bottleneck) layer.

The Sequential Per Service (SPS) Heuristic

Solving a global ILP for large-scale networks is computationally intensive and often fails to scale. To address this, the authors introduced the Sequential Per Service (SPS) heuristic. SPS optimizes placement incrementally by:

  1. Sorting services based on a priority metric, such as layer reusability.
  2. Optimizing placement for one service at a time.
  3. Tracking previously placed layers to avoid redundant storage.
  4. Iterating until all demand is satisfied or resources are exhausted.

Empirical Data and Layer Distribution

The researchers validated their approach using a crawl of thousands of real-world images from Docker Hub. Their analysis revealed that layer reusability follows a Zipf distribution, where a small number of layers are highly common across many services, while the majority are rare.

Frequency distribution of Docker layers, showing a clear Zipf distribution.

This distribution is critical because it confirms that strategic placement of a few common layers can significantly benefit a large number of services, maximizing the impact of limited edge storage.

Key Results

The SPS heuristic demonstrates significant improvements in both efficiency and scalability over traditional methods:

  • Storage Efficiency: By exploiting layer reusability, providers can reduce storage requirements by 20% while maintaining 100% user satisfaction (meeting all latency targets).
  • Scalability and Performance: SPS successfully handles large-scale scenarios where standard ILP solvers time out. In constrained environments, it provides a 20% increase in satisfied demand compared to a time-limited standard ILP solver.
  • Baseline Comparison: The method significantly outperforms random and traditional greedy allocation strategies that do not account for Docker's layered architecture.

Conclusion and Future Work

This research highlights the power of layer-aware placement in edge clouds. By prioritizing reusable components and employing scalable heuristics like SPS, edge providers can support a wider variety of on-demand services. Future work includes developing dynamic placement algorithms to handle shifting demand patterns and validating the model on physical hardware like Raspberry Pi clusters.

Summary updated

BibTeX
@article{smet2018docker,
  author = {Piet Smet and Bart Dhoedt and Pieter Simoens},
  title = {{Docker Layer Placement for On-Demand Provisioning of Services on Edge Clouds}},
  journal = {IEEE Trans. Netw. Serv. Manag.},
  year = {2018},
  doi = {10.1109/tnsm.2018.2844187},
}
Figure