Karasu: A Collaborative Approach to Efficient Cluster Configuration for Big Data Analytics

Dominik Scheinert, Philipp Wiesner, Thorsten Wittkopp, Lauritz Thamsen, Jonathan Will, Odej Kao

Abstract

Karasu is a collaborative framework designed to solve the "cold-start" problem in cloud resource configuration. By sharing anonymized profiling data and employing a similarity-based ensemble of Gaussian Process models, Karasu identifies near-optimal cluster setups—balancing cost, time, and energy—significantly faster and more cost-effectively than traditional trial-and-error methods.

Introduction

When deploying big data workloads, such as Spark or Hadoop tasks, in the cloud, users face a critical optimization challenge: selecting the ideal machine type and node count. This "Goldilocks" problem presents a difficult trade-off; configurations that are too small lead to excessive runtimes or out-of-memory failures, while oversized configurations result in financial waste and an unnecessarily high carbon footprint.

Existing solutions typically rely on Bayesian Optimization (BO) to profile jobs and build performance models. However, these profiling runs are expensive and time-consuming, leading to the "cold-start" problem. Most users lack the historical data required to bypass this phase and are often reluctant to share detailed performance data due to privacy concerns.

The Karasu Framework

Karasu addresses these challenges through a collaborative approach that leverages shared, anonymized "lightweight artifacts" from other users. The framework operates in three primary stages:

  1. Privacy-Preserving Data Sharing: Collaborators contribute aggregated resource metrics (e.g., quantile-based CPU, memory, and disk I/O percentiles) and performance measures (runtime, cost) rather than raw code or sensitive data. This minimizes the risk of leaking proprietary workload details.
  2. Similarity-Based Selection: When a new job is initiated, Karasu searches a shared repository for "support models" from similar workloads. It utilizes a custom distance function based on the Pearson correlation of resource usage profiles to identify similar behaviors, even across different algorithms or datasets.
  3. Ranking-Weighted Gaussian Process Ensemble (RGPE): Karasu combines a local model (built from the current job's initial runs) with selected support models. It employs a ranking-loss mechanism that prioritizes support models capable of correctly predicting relative configuration performance, rather than absolute values.
The Karasu architecture, illustrating the collaborative workflow from model retrieval to multi-objective optimization.

Experimental Evaluation

The researchers evaluated Karasu using a dataset of 1,242 workload executions across 18 distinct workloads (e.g., PageRank, Naive-Bayes) from HiBench and spark-perf. The infrastructure spanned 69 different AWS configurations, varying by instance type (m4, c4, r4) and cluster size. Performance metrics were supplemented with AWS cost data and energy estimates using the Teads Engineering carbon footprint estimator.

Results and Discussion

Karasu was benchmarked against Naive BO (e.g., CherryPick) and Augmented BO (e.g., Arrow). The results demonstrated significant improvements in efficiency and accuracy:

  • Faster Convergence: Karasu reached within 25% of the optimal cost by the second profiling run in approximately 90% of cases. In contrast, naive methods required five or more runs to achieve similar confidence.
  • Higher Success Rate: After five runs, Karasu identified the absolute optimal configuration in up to 26% of cases, compared to only ~6% for the baseline.
  • Multi-Objective Optimization: The system successfully balanced financial cost and energy consumption. Multi-objective searches identified configurations that were significantly more energy-efficient than cost-only searches with only marginal increases in price.
Comparison of search efficiency: Karasu identifies lower-cost configurations significantly faster than traditional methods (w/o Karasu).

Key Insights

A core finding of the study is that transferability is more valuable than absolute accuracy. A model does not need to perfectly predict runtime to be useful; it only needs to correctly identify that one configuration is superior to another. Furthermore, Karasu demonstrates that useful "knowledge artifacts" regarding hardware response can be extracted even when shared data comes from different frameworks or algorithms.

Conclusion and Future Work

Karasu effectively mitigates the cold-start problem in cloud configuration through privacy-preserving collaboration. However, some limitations remain. The current model assumes homogeneous clusters, and modeling elastic or heterogeneous environments remains a challenge. Additionally, while Karasu reduces the cold-start phase, it still requires at least one initial run to calculate similarity metrics. Future work will focus on developing benchmarking methods for arbitrary infrastructures to enhance the portability of shared models.

Summary updated

BibTeX
@inproceedings{scheinert2023karasu,
  author = {Dominik Scheinert and Philipp Wiesner and Thorsten Wittkopp and Lauritz Thamsen and Jonathan Will and Odej Kao},
  title = {{Karasu: A Collaborative Approach to Efficient Cluster Configuration for Big Data Analytics}},
  booktitle = {IPCCC},
  year = {2023},
  url = {https://openreview.net/forum?id=YslQvrjvRS},
}
Figure