A Fast and Efficient Algorithm for Topology-Aware Coallocation

Valentin Kravtsov, Martin T. Swain, Uri Dubin, Werner Dubitzky, Assaf Schuster

Abstract

Efficiently allocating resources in Grid computing environments requires satisfying both node-level constraints (CPU, RAM) and link-level constraints (network bandwidth). This problem, known as topology-aware coallocation, is NP-hard. We present a fast heuristic algorithm, the CTAAP-Solver, which leverages machine clustering and a three-step matching process to achieve near-optimal allocations with significantly reduced computational overhead compared to exact integer programming methods.

Introduction

Modern scientific simulations, such as agent-based models or molecular dynamics, require intense communication between specific tasks. To run these efficiently on a Computational Grid, a scheduler must perform coallocation: finding a set of machines that meet task requirements while supporting the necessary network topology. Mathematically, this is a graph matching problem. In large-scale Grids, traditional exact algorithms are computationally prohibitive. We propose a solution that balances speed and strict constraint adherence.

Methodology: The CTAAP-Solver

The core of our approach is the Clustered Topology-Aware Coallocation Problem (CTAAP). By grouping identical machines into "homogeneous clusters," we significantly reduce the search space.

The clustering approach groups identical machines to reduce problem complexity.

The CTAAP-Solver operates in three distinct phases:

  1. Inexact Graph Matching: Utilizing a modified Graduated Assignment Graph Matching (GAGM) algorithm, we generate a profitability matrix representing the likelihood of assigning tasks to resource clusters.
  2. Weighted Bipartite Matching: We treat the problem as a bipartite matching between tasks and clusters, using weights from the previous step to satisfy CPU and memory constraints.
  3. Iterative Cleanup: We identify and remove allocations that violate network connectivity constraints, looping back to the matching phase until a valid configuration is found.

Evaluation and Results

We evaluated the CTAAP-Solver using synthetic request graphs (50 nodes) and offer graphs (5 clusters). Results were compared against optimal solutions from Integer Programming solvers (GLPK and CBC).

A sample request graph with highlighted network topology constraints.

Key Findings

  • Accuracy: The solver achieved match sizes within 4% to 17% of the theoretical optimum in high-availability scenarios.
  • Performance: Unlike exhaustive search methods, the CTAAP-Solver's runtime scales polynomially with the number of clusters. It can handle request graphs of up to 1,000 nodes in approximately 400 seconds, whereas traditional solvers exhibit exponential runtime growth.
  • Scalability: The algorithm's complexity remains manageable as the number of nodes increases, making it suitable for real-time scheduling in large-scale Grids.

Conclusion

The CTAAP-Solver provides a scalable and efficient heuristic for resource coallocation in Grid environments. By simplifying the problem through clustering and employing a multi-stage matching process, it ensures valid allocations that respect complex network topologies without the prohibitive costs of exact solvers. Future work will explore the application of this model in highly heterogeneous or dynamic environments.

Summary updated

BibTeX
@inproceedings{kravtsov2008fast,
  author = {Valentin Kravtsov and Martin T. Swain and Uri Dubin and Werner Dubitzky and Assaf Schuster},
  title = {{A Fast and Efficient Algorithm for Topology-Aware Coallocation}},
  booktitle = {ICCS},
  year = {2008},
  doi = {10.1007/978-3-540-69384-0\_33},
}
Figure