TL;DR
This paper introduces DRLIS, a novel Deep Reinforcement Learning (DRL) approach to dynamically schedule Internet of Things (IoT) applications across edge and fog computing environments. DRLIS effectively balances server load and minimizes application response times, outperforming existing metaheuristic and reinforcement learning methods.
What Problem Does This Paper Address?
The proliferation of IoT devices and applications has led to an explosion of data that needs processing. While cloud computing offers vast resources, its inherent latency is unsuitable for real-time IoT applications. Edge and fog computing bring computation closer to data sources, but managing the dynamic and often overloaded nature of these distributed environments presents a significant challenge. Specifically, efficiently scheduling IoT applications with potentially dependent tasks across heterogeneous edge and fog servers to minimize both system load and response time is a complex, NP-hard problem. Existing solutions often struggle with the dynamic nature of these environments or require manual configuration, making them less adaptable.
Methods
The core of this work is the DRLIS (Deep Reinforcement Learning-based IoT application Scheduling) algorithm. DRLIS leverages the Proximal Policy Optimization (PPO) algorithm, a state-of-the-art DRL technique known for its stability and efficiency in discrete action spaces.
Here's a breakdown of their approach:
- Weighted Cost Model: They define a comprehensive cost model that combines load balancing (minimizing variance in CPU and RAM utilization across servers) and response time (minimizing the time from task submission to completion). This model is crucial for guiding the DRL agent.
- Markov Decision Process (MDP) Formulation: The scheduling problem is framed as an MDP, defining:
- State Space: Features of the task being processed (ID, dependencies, resource needs) and the current state of the server environment (CPU/RAM utilization, frequency, bandwidth).
- Action Space: Assigning a specific task to a server.
- Reward Function: A carefully designed reward signal that penalizes failures and rewards improvements in load balancing and response time, ultimately aiming to minimize the weighted cost.
- PPO Implementation: DRLIS uses an actor-critic architecture with PPO. The actor learns the scheduling policy (which server to assign a task to), while the critic evaluates the policy and guides learning. They specifically chose PPO due to its suitability for discrete action spaces and its proven effectiveness in dynamic environments.
- FogBus2 Framework Integration: DRLIS is implemented as a practical scheduler within the FogBus2 framework, a container-based platform for integrating edge, fog, and cloud computing. This allows for real-world testing and evaluation.
Datasets
The paper does not explicitly mention using pre-existing public datasets for training or evaluation. Instead, they created their own experimental setup using:
- Simulated Heterogeneous Environment: This included cloud servers (Nectar Cloud instances), fog servers (Raspberry Pi, MacBook Pro, Linux VM), and IoT devices.
- Sample IoT Applications: Four distinct IoT applications were developed, incorporating both real-time and non-real-time features. These applications simulated tasks like face detection, color tracking, and video OCR, providing diverse workloads and dependencies.
Key Insights and Ideas
- DRL for Dynamic Environments: The paper strongly advocates for DRL, particularly PPO, as a superior approach for scheduling in highly dynamic and heterogeneous edge/fog environments, outperforming traditional metaheuristics.
- Unified Optimization Objective: By combining load balancing and response time into a single weighted cost, DRLIS can achieve a more holistic optimization than methods focusing on a single objective.
- Fast Convergence: DRLIS demonstrates significantly faster convergence to stable solutions compared to other DRL algorithms like DQN and Q-Learning, making it more practical for real-time applications.
- Practical Implementation Matters: Integrating the DRL scheduler into a real-world framework like FogBus2 is crucial for validating its effectiveness beyond simulations.
Key Results
DRLIS achieved significant improvements across various metrics:
- Load Balancing: Reduced average computational resource variance by up to 49%.
- Response Time: Minimized average response time by up to 60%.
- Weighted Cost: Achieved up to a 55% reduction in the overall weighted cost.
- Convergence Speed: DRLIS converged to stable solutions in approximately 20 iterations, significantly faster than Q-Learning (60+ iterations) and DQN (80+ iterations).
- Scheduling Overhead: DRLIS exhibited lower scheduling overhead than metaheuristic algorithms (NSGA2, NSGA3) and was only slightly higher than Q-Learning, with its faster convergence making this difference negligible.
Limitations and Future Work
- Limitations:
- The paper acknowledges that the computational requirements of complex DNNs can be a challenge for resource-constrained edge/fog devices.
- While DRLIS is efficient, it still requires computational resources for training and inference.
- Future Work:
- Distributed DRL: Exploring distributed DRL approaches to further enhance performance in edge computing.
- Extended Cost Models: Incorporating economic aspects and energy consumption into the weighted cost model, especially for large-scale serverless environments.
- GPU/ASIC Optimization: Extending the scheduler to handle applications involving GPU tasks or specialized hardware like ASICs for more efficient performance.
Summary updated