Joint Task Scheduling and Container Image Caching in Edge Computing

Fangyi Mou, Zhiqing Tang, Jiong Lou, Jianxiong Guo, Wenhua Wang, Tian Wang · DOI

Abstract

In Edge Computing (EC) environments, the deployment of containerized applications is often hindered by the significant latency overhead associated with downloading large container images over bandwidth-constrained networks. Traditional approaches treat task scheduling and image caching as independent problems, leading to suboptimal performance. This paper presents TSIC, a joint optimization framework that leverages Deep Reinforcement Learning (DRL) to simultaneously manage scheduling and caching decisions. By incorporating a size-weighted adaptive caching strategy and a shared-state Deep Q-Learning architecture, TSIC reduces total task latency by 23% and waiting delays by 35% compared to conventional baselines.

1. Introduction

Edge Computing (EC) has emerged as a critical paradigm for low-latency applications by moving computation closer to the data source. Containers serve as the standard deployment unit due to their portability and lightweight nature. However, a significant and often overlooked bottleneck is the "waiting delay"—the time required to pull a container image from a repository to an edge node.

Existing research typically focuses on optimizing CPU and memory allocation but ignores the storage and bandwidth constraints inherent in edge networks. When a task is scheduled to a node lacking the required image, the resulting download time can dwarf the actual execution time. Furthermore, when scheduling and caching are handled in isolation, the system may inadvertently delete images that are about to be requested or schedule tasks to nodes that have just purged necessary data. This paper addresses these inefficiencies through a unified framework named TSIC.

2. The TSIC Framework

The proposed TSIC (Task Scheduling and Image Caching) framework treats the edge environment as a Markov Decision Process (MDP) and utilizes Deep Reinforcement Learning to navigate the complex decision space.

2.1 Joint Deep Reinforcement Learning

TSIC employs a Double Q-Learning (DQL) approach to avoid the common pitfall of Q-value overestimation. The architecture features a unique "state-sharing multi-action" design. Rather than maintaining separate models for scheduling and caching, a single Q-network processes the global system state—including CPU availability, memory, storage capacity, and current image distribution. The network then outputs two distinct actions: the target node for task scheduling and the specific image to be cached or evicted. This ensures that both decisions are synchronized and informed by the same environmental context.

2.2 Adaptive LFU-based Caching

Standard caching algorithms like Least Frequently Used (LFU) treat all files as equal units. TSIC introduces an Adaptive LFU (ADP) algorithm that is size-weighted. It assigns a priority score based on the product of frequency and file size ($frequency \times size$). This logic recognizes that in a bandwidth-limited environment, a 500MB image is significantly more "expensive" to re-download than a 50MB image. By prioritizing the retention of larger, frequently used images, the system minimizes the most costly cache misses.

3. Experimental Methodology

To validate the framework, the researchers implemented a physical testbed rather than relying solely on simulations:

  • Hardware: The controller was hosted on a standard PC (Intel i7-8700), while the edge layer consisted of several Raspberry Pi 3 Model B+ units.
  • Heterogeneity: To simulate real-world edge diversity, nodes were configured with varying storage capacities (8GB, 16GB, and 32GB Micro SD cards).
  • Workload: The evaluation utilized custom Docker images based on OpenCV, ranging from 253 MB to 459 MB. These images performed standard processing tasks such as grayscale conversion and image compression.

4. Key Results and Discussion

TSIC was evaluated against standard industry baselines, including Greedy (GRD) and Round Robin (RR) algorithms.

  • Latency Reduction: TSIC achieved a 23% average reduction in total task delay compared to the baselines.
  • Waiting Delay Optimization: The most impactful result was the 35% improvement in waiting delay (image pulling time), confirming that the joint optimization successfully localized data where it was most needed.
  • Scalability: As the number of tasks increased, the performance gap between TSIC and traditional methods widened, suggesting that the DRL-based approach is particularly effective under high-load scenarios.
  • Caching Efficiency: The size-weighted Adaptive LFU consistently outperformed standard LFU and frequency-only models, particularly when storage resources were highly constrained.

5. Conclusion and Future Work

TSIC demonstrates that the "hidden" cost of container image management is a primary driver of latency in edge environments. By coupling scheduling and caching through a shared-state DRL model, TSIC significantly improves system responsiveness.

Future research directions include accounting for user mobility, where demand shifts geographically as users move between edge nodes. Additionally, exploring cloud-edge collaboration could allow the system to offload tasks to the cloud during local congestion. Finally, incorporating energy efficiency into the reward function would make the framework more suitable for power-constrained edge devices like the Raspberry Pi.

Summary updated

BibTeX
@inproceedings{mou2023joint,
  author = {Fangyi Mou and Zhiqing Tang and Jiong Lou and Jianxiong Guo and Wenhua Wang and Tian Wang},
  title = {{Joint Task Scheduling and Container Image Caching in Edge Computing}},
  booktitle = {MSN},
  year = {2023},
  doi = {10.1109/msn60784.2023.00044},
}
Figure