Abstract
In fog computing systems, one key challenge is online task scheduling, i.e., to decide the resource allocation for tasks that are continuously generated from end devices. The design is challenging because of various uncertainties manifested in fog computing systems; e.g., tasks' resource demands remain unknown before their actual arrivals. Recent works have applied deep reinforcement learning (DRL) techniques to conduct online task scheduling and improve various objectives. However, they overlook the multi-resource fairness for different tasks, which is key to achieving fair resource sharing among tasks but in general non-trivial to achieve. Thusly, it is still an open problem to design an online task scheduling scheme with multi-resource fairness. In this paper, we address the above challenges. Particularly, by leveraging DRL techniques and adopting the idea of dominant resource fairness (DRF), we propose FairTS, an online task scheduling scheme that learns directly from experience to effectively shorten average task slowdown while ensuring multi-resource fairness among tasks. Simulation results show that FairTS outperforms state-of-the-art schemes with an ultra-low task slowdown and better resource fairness.
Introduction
Fog computing extends cloud capabilities to the edge of the network, enabling low-latency processing for IoT applications. However, managing the diverse and unpredictable resource demands of tasks arriving from various end devices remains a significant hurdle. An orchestrator must efficiently allocate limited CPU, memory, and bandwidth resources to a continuous stream of tasks.
Existing Deep Reinforcement Learning (DRL) approaches often focus solely on performance metrics like latency or energy consumption, neglecting multi-resource fairness. Without fairness, resource-intensive tasks can monopolize specific resources, leading to starvation for others and a degraded overall user experience. This paper introduces FairTS, a novel scheduling scheme designed to balance task slowdown with equitable resource distribution.
The FairTS Methodology
FairTS integrates Dominant Resource Fairness (DRF) with DRL to handle multi-resource allocation.
Dominant Resource Fairness (DRF)
DRF defines a task's "dominant share" as the maximum percentage it consumes of any single resource type. For instance, a task using 20% of CPU but only 5% of RAM has a dominant share of 20%. FairTS minimizes the variance of these dominant shares across all tasks to ensure equitable sharing.
DRL Framework and State Representation
The orchestrator acts as a DRL agent using Policy Gradient (PG) methods. To handle the variable nature of task arrivals, FairTS employs a constant-size state representation.
As shown in the figure above, the state is represented as image-like grids for the "Fog" (current resource usage over time), "Taskslots" (the immediate queue), and a "Backlog" (summary of waiting tasks). This allows the neural network to process complex queue data without requiring a variable input size. The agent decides which task to schedule and its resource quota ($k_j$), optimizing a reward function that penalizes both average slowdown and dominant share variance.
Evaluation and Results
The performance of FairTS was evaluated using a synthetic workload following a Poisson arrival process. Tasks were categorized into "elephants" (high demand) and "mice" (low demand) to simulate realistic diversity.
Key findings include:
- Performance vs. Fairness Trade-off: Increasing the fairness weight ($\beta$) reduces dominant share variance by nearly 20%, though it slightly increases average task slowdown. This "fairness knob" allows administrators to tune the system based on specific requirements.
- Superiority over Heuristics: FairTS consistently outperformed Random and Shortest Execution Time (SET) benchmarks, achieving lower slowdown and better fairness.
- Scalability: Increasing the number of visible "Taskslots" improved the agent's lookahead capabilities and overall performance.
Conclusion
FairTS demonstrates that DRL can effectively manage the complex trade-offs between latency and multi-resource fairness in fog computing. By learning from experience and utilizing a robust state representation, it provides a scalable solution for modern IoT environments. Future work will explore non-preemptive scheduling and more complex synchronization overheads in real-world deployments.
Summary updated