Skip to main content
QUICK REVIEW

[Paper Review] Auto-tuning Distributed Stream Processing Systems using Reinforcement Learning

Luis M. Vaquero, Félix Cuadrado|arXiv (Cornell University)|Sep 14, 2018
Data Stream Mining TechniquesComputer Science40 references14 citations
TL;DR

This paper proposes a reinforcement learning (RL)-based auto-tuning system for distributed stream processing workloads that automatically selects optimal configuration levers (e.g., memory, batch size) using supervised and RL techniques. It achieves 60–70% lower latency than human-tuned configurations in tens of minutes by learning from historical workloads and adapting to dynamic changes with minimal human intervention.

ABSTRACT

Fine tuning distributed systems is considered to be a craftsmanship, relying on intuition and experience. This becomes even more challenging when the systems need to react in near real time, as streaming engines have to do to maintain pre-agreed service quality metrics. In this article, we present an automated approach that builds on a combination of supervised and reinforcement learning methods to recommend the most appropriate lever configurations based on previous load. With this, streaming engines can be automatically tuned without requiring a human to determine the right way and proper time to deploy them. This opens the door to new configurations that are not being applied today since the complexity of managing these systems has surpassed the abilities of human experts. We show how reinforcement learning systems can find substantially better configurations in less time than their human counterparts and adapt to changing workloads.

Motivation & Objective

  • To address the challenge of manually tuning complex distributed stream processing systems, which is time-consuming and error-prone due to vast configuration spaces and dynamic workloads.
  • To automate the selection of optimal configuration levers (e.g., memory, batch size) for streaming engines like Spark Streaming to meet strict service level objectives (SLOs).
  • To reduce reliance on expert knowledge by replacing manual tuning with a data-driven, adaptive system that learns from workload patterns and performance metrics.
  • To enable real-time adaptation to workload changes and maintain low latency without requiring cluster restarts or human reconfiguration.
  • To demonstrate that RL can effectively explore high-dimensional configuration spaces and discover superior configurations faster than human experts.

Proposed method

  • Collects training data from tens of thousands of Spark Streaming clusters under diverse synthetic and real-world workloads, including Poisson-distributed event arrivals and trapezoidal load patterns.
  • Uses supervised learning to identify the most relevant performance metrics (e.g., processing latency) and their correlation with configuration levers.
  • Applies feature selection and metric-lever association techniques to reduce dimensionality and focus on high-impact configuration parameters.
  • Discretizes continuous configuration parameters (e.g., memory size, batch interval) into a finite set of actionable values for RL input.
  • Employs a reinforcement learning agent that balances exploration and exploitation (via hyperparameter f) to recommend configuration changes based on observed performance.
  • Uses Gaussian Process Models (GPMs) as surrogate models to estimate expected performance and guide the RL policy, with value networks used to estimate long-term returns.

Experimental results

Research questions

  • RQ1Can reinforcement learning effectively explore the high-dimensional configuration space of distributed stream processing systems to find better-than-human configurations?
  • RQ2How quickly can an RL-based system converge to a superior configuration compared to manual tuning by human experts?
  • RQ3To what extent can the system adapt to changing workloads while maintaining low processing latency?
  • RQ4Which performance metrics and configuration levers are most predictive of latency SLO compliance in streaming workloads?
  • RQ5Can the system reduce the need for cluster restarts during configuration changes, and what alternatives exist for minimizing downtime?

Key findings

  • The RL-based auto-tuning system achieves 60–70% lower processing latency than configurations selected by human engineers, significantly improving SLO compliance.
  • The system converges to optimal configurations in tens of minutes, drastically reducing the time required for tuning compared to manual methods.
  • The system successfully identifies and adjusts high-impact levers such as driver memory and batch size, leading to substantial performance gains in early training episodes.
  • The approach effectively reduces the dimensionality of the configuration space by focusing on relevant metrics and levers, making RL feasible in high-dimensional settings.
  • The system demonstrates strong adaptability to changing workloads, maintaining low latency without requiring manual reconfiguration.
  • The use of Gaussian Process Models and value networks enables stable and scalable learning despite the complexity of the configuration space.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.