Abstract
Optimizing MapReduce job configurations is a complex task often requiring expensive trial-and-error. This paper proposes a novel approach that treats CPU utilization over time as a unique "fingerprint" for applications. By employing Dynamic Time Warping (DTW), the system can match the performance patterns of new jobs against a reference database of known applications. This allows for the early identification of optimal configuration settings, significantly reducing the overhead of manual tuning in cloud environments.
Introduction
Configuring MapReduce jobs on platforms like Hadoop involves adjusting numerous parameters, such as the number of mappers, reducers, and split sizes. The optimal configuration is highly application-specific, and finding it typically necessitates multiple test runs. In dynamic cloud infrastructures, this iterative process is costly and inefficient. The authors propose a method to identify an application's behavioral signature early in its execution to "borrow" optimal settings from previously profiled similar jobs.
Methodology: Profiling and Matching
The authors introduce a two-phase framework designed to automate the tuning process: Profiling and Matching.
1. Profiling (Building the Reference Library)
To create a robust library, several standard MapReduce applications were executed under 50 different configuration sets. During these runs, CPU utilization was recorded at one-second intervals. To ensure data quality, a six-order low-pass Chebyshev filter was applied to remove hardware-induced noise, and the resulting time series were normalized between 0 and 1.
2. Matching (The Search)
When a new, unknown application is submitted, it is initially run on a small data sample to generate a short CPU utilization profile. This profile is then compared against the reference database using Dynamic Time Warping (DTW).
3. Dynamic Time Warping (DTW) and Similarity
Standard distance metrics like Euclidean distance are ineffective for comparing job profiles because similar jobs may vary in duration or phase alignment. DTW aligns two sequences by "stretching" or "compressing" them in time to find the best possible alignment. After alignment, a correlation coefficient is calculated. A correlation of $\ge 0.9$ indicates a match, triggering the application of known optimal parameters to the new job.
Experimental Setup and Datasets
The study utilized three real-world benchmark applications:
- WordCount: A classic text-processing task counting word frequencies.
- Exim Mainlog Parsing: A tool for parsing massive email server logs into individual transactions.
- TeraSort: A standard Map/Reduce sorting algorithm designed for massive datasets.
Key Insights: The Execution "DNA"
The central premise is that an application's logic leaves a distinct signature on CPU usage. This "Execution DNA" remains characteristic of the algorithm even as data sizes change. For instance, WordCount and Exim Mainlog parsing exhibited remarkably similar CPU profiles (often exceeding 94% correlation) because both involve similar text-scanning and key-value operations. Conversely, TeraSort produced a fundamentally different profile, allowing the system to distinguish it clearly from text-processing tasks.
Results and Discussion
The results validate the hypothesis that CPU pattern similarity is a reliable indicator for parameter sharing. High similarity scores between WordCount and Exim suggest that if two applications behave similarly under one configuration, they will likely share optimal settings across others. This makes pattern matching a viable strategy for automated self-tuning in MapReduce environments.
Limitations and Future Directions
While promising, the current model focuses solely on CPU utilization. A more comprehensive fingerprint would incorporate Disk I/O and Memory usage. Additionally, the quadratic complexity of DTW poses a scaling challenge; the authors suggest exploring Wavelet coefficients for data compression in future iterations. Finally, moving from pseudo-distributed environments to large-scale, heterogeneous physical clusters is necessary to test the system's resilience against real-world network jitter and node interference.
Summary updated