Abstract: Resource allocation in computing clusters is traditionally centralized, which limits the cluster scale. Effective resource allocation in a network of computing clusters may enable building larger computing infrastructures. We consider this problem as a novel application for multiagent learning (MAL). We propose a MAL algorithm and apply it for optimizing online resource allocation in cluster networks. The learning is distributed to each cluster, using local information only and without access to the global system reward. Experimental results are encouraging: our multiagent learning approach performs reasonably well, compared to an optimal solution, and better than a centralized myopic allocation approach in some cases.
Introduction
As Software as a Service (SaaS) continues to scale, the underlying computing infrastructure must expand to accommodate thousands of nodes. Traditionally, resource allocation—the process of deciding which server executes which task—is managed by a centralized controller. However, in massive networks, this central point becomes a significant bottleneck and a single point of failure.
Transitioning to a distributed model where each cluster (an "agent") makes autonomous decisions presents three primary challenges: partial visibility of the network state, non-stationarity due to simultaneous learning across agents, and delayed rewards as tasks traverse the network.
The Distributed Sequential Resource Allocation Problem (DSRAP)
To address these challenges, we define the Distributed Sequential Resource Allocation Problem (DSRAP). We introduce two key components to solve it: the Fair Action Learning (FAL) algorithm and a decision decomposition strategy.
Fair Action Learning (FAL)
FAL is a variant of the Generalized Infinitesimal Gradient Ascent (GIGA) algorithm designed for multi-agent settings. To ensure convergence in a shifting environment, FAL updates an agent’s policy based on the difference between an action’s expected reward (Q-value) and the average reward of all possible actions in that state. This "fairness" mechanism boosts the probability of actions that perform better than average, guiding the system toward equilibrium.
Decision Decomposition and Backward Exploration
To manage the massive state-action space, we decompose the agent's decision-making into two sub-problems:
- Local Allocation: Determining which incoming tasks to execute locally to maximize utility.
- Task Routing: Identifying which neighbor should receive unallocated tasks to find unsaturated clusters before a task's timer expires.
Furthermore, we utilize Backward Exploration, where reward signals are passed back along the task's path, allowing agents to update routing policies significantly faster than waiting for global feedback.
Experimental Evaluation
We evaluated our approach using a simulated network of 16 clusters containing 1,024 computing nodes. The simulation utilized four distinct task types (Ordinary, Compute-intensive, IO-intensive, and Demanding) with varying resource requirements.
Key Results
Our primary experimental configuration, Both Decision Learning (BDL), was compared against a centralized greedy manager and several simplified distributed variants across "Light" and "Heavy" task loads.
Performance Under Heavy Load
Under heavy load, the BDL approach demonstrated a clear advantage. While the centralized greedy approach attempts to fill every available slot immediately, the learning agents learn to be selective. By "giving up" on low-utility tasks to reserve capacity for high-utility tasks arriving later, BDL achieved a utility rate of 39,000, significantly outperforming the Centralized approach's 35,460.
Efficiency and Routing
Despite achieving higher utility, BDL maintained lower average CPU and network utilization than competing methods. This suggests the agents were "working smarter" by prioritizing high-value tasks. Our experiments also revealed that Task Routing contributes more to overall system performance than Local Allocation alone, highlighting the importance of intelligent task distribution in a network.
Conclusion and Future Work
While the multi-agent learning approach shows great promise, particularly in its ability to outperform centralized myopic strategies under stress, hurdles remain for real-world deployment. The state space complexity requires a significant "warm-up" period, and the continuous nature of exploration can lead to performance fluctuations. Future research will focus on applying the FAL algorithm to more granular resource features and exploring other distributed domains such as peer-to-peer file systems and sensor networks.
Summary updated