Context-aware Container Orchestration in Serverless Edge Computing

Peiyuan Guan, Chen Chen 0073, Ziru Chen, Lin X. Cai, Xing Hao, Amir Taherkordi

Abstract

The proliferation of Internet-of-Things (IoT) devices necessitates moving computation to the network edge to meet low-latency requirements. Serverless computing offers a flexible model for these environments, but orchestrating resources across heterogeneous edge nodes remains a significant challenge. This paper introduces CANN (Context-Aware Neural Network), a deep learning-based orchestrator designed to jointly optimize wireless bandwidth and computing resources. By training on optimal solutions from traditional solvers, CANN achieves near-optimal latency while reducing decision-making time by over 95% compared to traditional optimization methods.

Introduction

As IoT applications like autonomous driving and online gaming grow, the traditional cloud-only model becomes insufficient due to high propagation latency. Moving computation to the "edge"—closer to the user—is essential for real-time responsiveness. The Serverless (Function-as-a-Service) model is particularly well-suited for the edge because of its "pay-as-you-use" efficiency and elastic scaling capabilities.

However, edge orchestration is notoriously complex. Unlike uniform data centers, edge nodes (e.g., base stations) are heterogeneous, with varying processing powers and wireless bandwidth availability. Existing solutions often struggle with the "bursty" nature of serverless workloads and the dual bottlenecks of wireless transmission and computation. Finding an optimal orchestration strategy is an NP-hard problem, often taking too long for real-time deployment using standard solvers.

Methodology

The researchers formulated the orchestration task as a joint optimization problem, addressing both communication and computation constraints simultaneously to avoid resource fragmentation.

Mathematical Modeling

The request distribution was modeled as a Mixed Integer Linear Programming (MILP) problem. This model incorporates path loss, Signal-to-Noise Ratio (SNR), and Shannon capacity to calculate transmission latency, alongside processing latency at the edge nodes based on hardware capacity ($C^v$) and job size ($L_k$).

The CANN Framework

To overcome the slow execution of traditional solvers like MIDACO (based on Ant Colony optimization), the authors developed CANN (Context-Aware Neural Network):

  1. Ground Truth Generation: MIDACO was used to find "ground truth" optimal solutions for hundreds of network scenarios.
  2. Neural Network Architecture: A two-layer Long Short-Term Memory (LSTM) network was trained using these MIDACO results to learn the mapping between network context and optimal allocation.
  3. Context-Awareness: The network takes "context" as input—including user distances, available base station bandwidth, and specific hardware requirements of serverless functions—to make rapid allocation decisions in milliseconds.

Evaluation and Results

The study utilized 100 randomized scenarios with 20 service requests each, using real-world networking parameters such as a 5.9 GHz transmission frequency and distances ranging from 30m to 200m.

Performance Comparison

CANN was compared against Genetic Algorithms and the MIDACO solver across different iteration rounds to evaluate both speed and solution quality.

Comparison of response times across different orchestration algorithms.

The most striking result is the efficiency gain. As shown in the response time comparison, CANN reduced the convergence time (the time taken to make a decision) by approximately 95% compared to the high-quality MIDACO solver. While traditional solvers take seconds to converge, CANN provides near-instantaneous inference suitable for live edge environments.

Total delay distribution for CANN vs. traditional optimization solvers.

Crucially, this speed does not sacrifice quality. As shown in the total delay distribution, the end-to-end delay achieved by CANN is comparable to the global optimal solutions found by MIDACO with 50,000 rounds. In a head-to-head comparison of 1,000 samples, CANN and high-end MIDACO "won" (achieved the lowest delay) an almost identical number of times, significantly outperforming standard Genetic Algorithms.

Conclusion and Future Work

CANN demonstrates that deep learning can effectively bridge the gap between high-quality optimization and real-time execution in edge environments. By considering the wide spectrum of resources simultaneously, it ensures efficient resource utilization without the overhead of traditional iterative solvers.

Future research directions include handling high-speed user mobility where the network context changes mid-execution and integrating "cold-start" latency—the delay incurred when initializing new serverless containers—into the optimization model.

Summary updated

BibTeX
@inproceedings{guan2024context,
  author = {Peiyuan Guan and Chen Chen and Ziru Chen and Lin X. Cai and Xing Hao and Amir Taherkordi},
  title = {{Context-aware Container Orchestration in Serverless Edge Computing}},
  booktitle = {GLOBECOM},
  year = {2024},
  doi = {10.1109/globecom52923.2024.10901781},
}
Figure