Introduction
Configuring big data frameworks like Apache Spark is a significant challenge for engineers due to the hundreds of parameters involved, ranging from hardware allocation (cores, RAM) to software settings (parallelism, memory fractions). Finding an optimal setup is nearly impossible for humans, especially when balancing conflicting objectives like minimizing latency versus reducing cloud costs. Existing solutions often take too long (15–45 minutes) for bursty workloads or oversimplify by merging objectives into a single weighted score, which can miss superior trade-offs.
This paper introduces a high-performance data analytics optimizer that uses a "Progressive Frontier" approach to provide optimal cluster configurations in seconds. By decoupling performance modeling from optimization, the system outperforms state-of-the-art tuners by up to 50x in speed while significantly improving job runtimes.
System Architecture
The proposed framework is built on a decoupled architecture that separates the modeling phase from the optimization phase. This design allows the optimizer to react in sub-seconds to new jobs or changing cluster conditions, provided the underlying performance models—learned from historical traces—are already trained.
Methodology: Progressive Frontier and MOGD
The core of the system relies on two primary innovations:
- Progressive Frontier (PF): Instead of an exhaustive search, the PF algorithm incrementally constructs the "Pareto frontier"—the set of solutions where improving one objective (e.g., cost) necessarily degrades another (e.g., latency). It employs a "Middle Point Probe" strategy to recursively divide the search space, focusing on areas of high uncertainty to ensure a diverse set of trade-offs.
- Multi-Objective Gradient Descent (MOGD): To handle complex, non-linear models like Deep Neural Networks (DNNs), the authors developed a custom solver. It utilizes a specialized loss function that simultaneously penalizes constraint violations and rewards the minimization of target objectives.
Evaluation and Key Results
The system was evaluated using two primary benchmarks: TPCx-BB (BigBench) for batch workloads and a clickstream analysis benchmark for streaming workloads.
- Performance Gains: The system reduced TPCx-BB runtimes by 26% to 49% compared to Ottertune, a state-of-the-art single-objective tuner. In many cases, the recommended configurations "dominated" Ottertune's, being both faster and cheaper.
- Optimization Speed: The PF algorithm achieved a 2x to 50x speedup over traditional methods like Weighted Sum or Evolutionary algorithms. It successfully generated Pareto sets in under 1 second for all 258 batch jobs tested, a feat competing methods could not match within the same time constraint.
- Uncertainty-Awareness: By incorporating model variance into the optimization loss function, the system provides conservative estimates, preventing poor recommendations based on inaccurate underlying models.
Conclusion and Future Work
This research demonstrates that multi-objective optimization can be performed in sub-seconds without sacrificing quality, making it suitable for modern cloud-native and serverless environments. While the system's success depends on the accuracy of its performance models, it represents a major step forward in automated cluster tuning. Future work will focus on optimizing entire analytical pipelines and accounting for multi-tenant interference in shared clusters.
Summary updated