Edge service resource allocation strategy based on intelligent prediction

Yujie Wang, Xin Du, Xuzhao Chen, Zhihui LuarXiv 2021

Introduction

The rapid expansion of the Internet of Things (IoT) is driving a fundamental shift from centralized cloud computing to edge computing. With projections suggesting over 15 billion connected devices by 2029, traditional cloud infrastructures face significant challenges in meeting the low-latency and real-time processing requirements of modern applications. Edge computing addresses these issues by deploying infrastructure closer to end-users.

However, edge nodes—typically comprising micro-data centers or small server clusters—are inherently resource-constrained. Efficiently distributing services across these nodes without wasting bandwidth or risking service outages is a complex management challenge. Static allocation methods often lead to inefficiencies, while traditional statistical forecasting struggles with the complex, non-linear patterns of modern network traffic.

Three-tier architecture of the proposed edge computing system, illustrating the interaction between Cloud, Edge, and Devices.

Methodology

To address these challenges, this paper proposes an intelligent prediction-based resource allocation strategy. The core component is an improved Long Short-Term Memory (LSTM) neural network tailored for time-series bandwidth forecasting.

The proposed system shifts from a reactive to a proactive stance by utilizing a "look-ahead" window to predict demand before bottlenecks occur. The workflow involves several critical stages: feature capture, data transformation, model construction, and finally, resource mapping where predicted bandwidth is translated into specific container configurations.

Workflow of the intelligent prediction-based resource allocation strategy using LSTM.

Technical Enhancements

The LSTM model incorporates several key technical choices to improve performance and robustness:

  • Activation Function: The use of ReLU (Rectified Linear Unit) helps mitigate the vanishing gradient problem common in recurrent networks.
  • Loss Function: The Huber loss function is employed to provide robustness against outliers in network traffic data, performing better than standard Mean Squared Error (MSE) in volatile environments.
  • Optimization: The Adam optimizer is used for efficient weight tuning during the training phase.
  • Discrete Resource Mapping: The strategy recognizes that real-world resources are discrete, focusing on constructing allocation schemes that fit standardized container sizes (CPU cores, memory, disk).

Dataset and Preprocessing

The study utilized real-world industrial data from Wangsu Technology Company, spanning 14 days of logs from December 2020. This extensive dataset includes resource usage data from 380 service providers across 665 customers. Preprocessing involved filtering abnormal traffic and converting raw logs into tensors suitable for the deep learning model.

Results and Discussion

Simulation results indicate that the intelligent prediction model accurately tracks real-world bandwidth fluctuations. Quantitative evaluation yielded the following performance metrics:

  • Mean Square Error (MSE): 0.000233
  • Root Mean Square Error (RMSE): 0.015278
  • Average Absolute Error (AAE): 0.011488

These low error rates demonstrate that the LSTM-based approach can effectively learn the daily rhythms of service providers, enabling a resource allocation mechanism that achieves significantly higher utilization rates than static methods.

Conclusion

This research highlights the effectiveness of using deep learning for dynamic resource management in edge computing environments. By integrating a proactive prediction layer, service providers can minimize operational costs while maintaining high service quality. Future work will focus on enhancing real-time performance to handle millisecond-level demand changes and expanding the model to include multi-variate predictions for CPU and RAM pressure simultaneously.

Summary updated

BibTeX
@misc{wang2021edge,
  author = {Yujie Wang and Xin Du and Xuzhao Chen and Zhihui Lu},
  title = {{Edge service resource allocation strategy based on intelligent prediction}},
  year = {2021},
  eprint = {2107.12740},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.12740},
}
Figure