Introduction
In modern cloud computing environments, scheduling batch processing jobs is no longer just about allocating tasks to fixed hardware. Instead, it involves a complex decision-making process regarding which virtual instances to rent, for how long, and how to pack diverse tasks onto those instances. While the elasticity of the cloud offers significant potential for cost savings, existing schedulers often struggle to realize these benefits due to the inherent complexities of resource heterogeneity and performance interference.
Eva is a novel cloud-based cluster scheduler designed to minimize total provisioning costs while maintaining acceptable job performance. By leveraging an economics-inspired "reservation price" metric, Eva intelligently manages task co-location and dynamic cluster resizing, achieving cost reductions of up to 42% compared to traditional scheduling methods.
The Challenge of Co-location and Reconfiguration
Efficiently scheduling in the cloud requires addressing three primary hurdles. First, heterogeneity in task requirements (e.g., GPU vs. RAM-heavy workloads) makes optimal bin-packing difficult. Second, co-location interference occurs when multiple tasks share a single instance, leading to contention for low-level resources like cache and disk I/O. This contention can significantly degrade performance, as illustrated by the varying throughput levels observed when different workloads are paired.
Third, the reconfiguration overhead—the time spent checkpointing tasks and launching new instances—can be substantial. If a scheduler reconfigures the cluster too frequently to chase a theoretical optimum, the resulting idle time and migration delays can negate any potential cost savings. Eva refers to this as the "migration tax."
The Eva Framework
Eva’s core innovation is the use of a Throughput-Normalized Reservation Price. In this model, a task's value is defined by the hourly cost of the cheapest instance capable of running it standalone. If co-location reduces a task's throughput, its reservation price is adjusted downward proportionally. An assignment is deemed cost-efficient only if the combined adjusted prices of all tasks on an instance exceed the instance's actual hourly rental cost.
As shown in the system architecture, Eva utilizes a ThroughputMonitor to learn interference patterns in real-time. This data feeds into a Scheduler that runs two concurrent algorithms:
- Full Reconfiguration: A global search for the most cost-effective cluster state.
- Partial Reconfiguration: Incremental adjustments for new or inefficiently placed tasks to minimize movement.
A probabilistic decision engine determines whether to commit to a full reshuffle by estimating if the predicted savings will outweigh the migration tax over the expected duration of the new configuration.
Evaluation and Key Results
The researchers evaluated Eva using physical experiments on AWS EC2 and large-scale simulations based on a production trace from Alibaba containing over 6,200 jobs. Eva was compared against state-of-the-art schedulers including Stratus (migration-aware), Synergy (best-fit), and Owl (interference-aware).
- Significant Cost Savings: Eva reduced total provisioning costs by 42% compared to a "no-packing" baseline and outperformed existing schedulers like Stratus and Owl by 13–25%.
- Balanced Performance: These savings were achieved with only a modest 15% increase in average Job Completion Time (JCT).
- Resource Efficiency: Eva improved average resource allocation by 1.2x, demonstrating a superior ability to utilize the "empty space" on rented cloud instances.
Conclusion and Future Work
Eva demonstrates that applying economic heuristics to cluster scheduling can effectively navigate the trade-offs between hosting costs and performance interference. While highly effective for data-parallel workloads, future iterations of Eva aim to address the complexities of Directed Acyclic Graph (DAG) task dependencies and further optimize the scheduler's scalability for clusters exceeding tens of thousands of tasks. By treating cloud resources as a dynamic marketplace, Eva provides a robust framework for cost-efficient batch processing in the cloud.
Summary updated