[Paper Review] Two stage cluster for resource optimization with Apache Mesos
This paper proposes a two-stage cluster architecture using Apache Mesos and Aurora to improve resource utilization by first profiling jobs in a small 'little' cluster to estimate actual resource needs before launching on a large 'big' cluster. By applying statistical profiling to predict CPU and memory usage with 94% and 90% accuracy respectively, the approach boosts CPU utilization by 53% and memory utilization by 22% compared to default Mesos/Aurora scheduling, significantly improving throughput and reducing idle resources.
As resource estimation for jobs is difficult, users often overestimate their requirements. Both commercial clouds and academic campus clusters suffer from low resource utilization and long wait times as the resource estimates for jobs, provided by users, is inaccurate. We present an approach to statistically estimate the actual resource requirement of a job in a Little cluster before the run in a Big cluster. The initial estimation on the little cluster gives us a view of how much actual resources a job requires. This initial estimate allows us to accurately allocate resources for the pending jobs in the queue and thereby improve throughput and resource utilization. In our experiments, we determined resource utilization estimates with an average accuracy of 90% for memory and 94% for CPU, while we make better utilization of memory by an average of 22% and CPU by 53%, compared to the default job submission methods on Apache Aurora and Apache Mesos.
Motivation & Objective
- To address low resource utilization and long job wait times in Mesos and Aurora clusters caused by inaccurate user-provided resource estimates.
- To reduce over-provisioning of CPU and memory in cloud and HPC environments, which leads to higher costs and underutilization.
- To design a dynamic, lightweight profiling system that estimates job resource needs without prior data or task grouping.
- To quantify improvements in CPU and memory utilization, throughput, and scheduling efficiency using a two-stage cluster model.
- To identify optimal cluster size ratios between the profiling (little) and production (big) clusters for maximum efficiency.
Proposed method
- A two-stage cluster architecture is implemented: a small 'little' cluster for initial profiling and a large 'big' cluster for production execution.
- Each job is first executed in the little cluster for a few seconds to collect real-time CPU and memory usage metrics via Docker API.
- Statistical analysis of the short-run resource consumption is used to estimate the actual resource requirements for the full job run.
- The estimated resource values are then used to submit jobs to the big cluster via Apache Aurora, ensuring more accurate allocation.
- Two scheduling strategies—Exclusive Access and Co-Scheduled—are evaluated to compare performance and overhead.
- The system dynamically adjusts resource allocation based on real-time profiling, avoiding over-reservation and improving cluster scheduling efficiency.
Experimental results
Research questions
- RQ1What is the optimal size ratio between a profiling (little) cluster and a production (big) cluster to maximize resource utilization and throughput?
- RQ2How accurately can short-duration runs in a small cluster predict the actual CPU and memory requirements of full-scale jobs?
- RQ3What are the performance and overhead trade-offs between Exclusive Access and Co-Scheduled job scheduling in the two-stage model?
- RQ4To what extent can this profiling-based approach improve CPU and memory utilization compared to default Mesos/Aurora scheduling?
- RQ5How does the two-stage approach affect overall system throughput and job wait times in a real-world cluster setting?
Key findings
- The two-stage approach achieved 94% accuracy in predicting CPU resource requirements and 90% accuracy in predicting memory usage based on short profiling runs.
- Compared to default Mesos/Aurora scheduling, the Co-Scheduled approach improved CPU utilization by 53% and memory utilization by 22% on a 10-node big cluster.
- The Exclusive Access approach achieved 81% higher throughput than default Mesos/Aurora when using a 6-node big cluster.
- The optimal cluster size ratio was found to be 1:6 to 1:8 for the Exclusive Access approach and 1:10 for the Co-Scheduled approach.
- The Co-Scheduled approach reduced scheduling overhead and improved throughput more effectively than Exclusive Access, especially as cluster size increased.
- The method significantly reduced resource over-provisioning, which is a major cause of inefficiency in cloud and HPC clusters.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.