Introduction
Bag-of-Tasks (BoT) applications, characterized by large sets of independent and identical tasks, are fundamental to fields like genomic sequencing and large-scale physical simulations. While traditionally executed on Grids or Clusters with pre-allocated resources, the shift toward cloud computing introduces a pay-per-use model. This transition requires users to navigate complex decisions regarding instance types and quantities to satisfy "hard constraints"—strict budget limits or non-negotiable deadlines.
Existing scheduling methods often struggle to guarantee these limits while optimizing for performance or cost. This paper proposes a heuristic algorithm designed to minimize execution time under a budget constraint or minimize costs under a deadline constraint, leveraging the inherent heterogeneity of cloud environments.
Methodology
The proposed approach decomposes the scheduling problem into two distinct phases: Instance Selection and Task Assignment.
Instance Selection via Throughput
To manage the combinatorial complexity of mapping thousands of tasks to virtual machines (VMs), the authors utilize throughput—the number of tasks an instance type can complete per hour—as a primary metric.
The selection algorithm begins with a baseline solution using the single most cost-effective instance type. It then recursively evaluates the benefit of adding or replacing instance types. For budget-constrained scenarios, the algorithm seeks to utilize remaining funds to maximize total throughput. For deadline-constrained scenarios, it identifies opportunities to swap in cheaper instances without violating the temporal limit. A key metric in this process is the Trade-off Ratio ($to$), which determines if the performance gain of a more expensive instance justifies its additional cost.
Task Assignment
Once the VM fleet is established, a greedy assignment algorithm maps tasks to instances. Each task is assigned to the VM that will complete it the soonest, effectively minimizing the overall "makespan" or execution time.
Experimental Evaluation
The algorithm was evaluated using a custom simulation framework developed in Scala, involving 1,000 tasks per application. The researchers tested four scenarios:
- Scenarios 1-3 (Synthetic): Designed to model "Fair," "Cost-effective," and "Cost-ineffective" trade-offs between performance and price.
- Scenario 4 (Real-world): Utilized performance data from five Amazon EC2 instance types running a genome pattern searching application.
Key Results
The evaluation demonstrated that the heuristic algorithm consistently satisfied hard constraints across all tested budget and deadline levels.
Performance in Synthetic Scenarios
A primary finding is the Heterogeneity Advantage: using a mix of instance types often outperforms a single-type strategy. As shown in Figure 1, in Scenario 3 (Cost-effective trade-offs), the algorithm intelligently integrated high-performance instances as the budget increased, significantly reducing execution time compared to the baseline. In Scenario 1 (Fair market), the algorithm recognized that a simple instance mix was optimal, matching the baseline's efficiency.
Real-World Validation
In Scenario 4, which utilized real-world Amazon EC2 performance data, the algorithm maintained high efficiency. As illustrated in Figure 2, the cost and execution ratios remained stable across varying constraints, validating the heuristic's practical applicability for genome pattern searching applications.
Discussion and Future Work
While effective, the current model assumes static instance performance. Real-world cloud environments often exhibit performance jitter due to shared resources. Furthermore, the current algorithm addresses budget and deadline constraints independently; future work will focus on multi-constraint optimization. Additional planned improvements include handling heterogeneous task workloads and incorporating fault tolerance for VM interruptions or spot instance usage.
Summary updated