Learning from the Past: Adaptive Parallelism Tuning for Stream Processing Systems

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Han, Yuxing, Chen, Lixiang, Wang, Haoyu, Chen, Zhanghao, Zhang, Yifan, Yang, Chengcheng, Hao, Kongzhang, Yang, Zhengyi
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866911040662405120
author Han, Yuxing
Chen, Lixiang
Wang, Haoyu
Chen, Zhanghao
Zhang, Yifan
Yang, Chengcheng
Hao, Kongzhang
Yang, Zhengyi
author_facet Han, Yuxing
Chen, Lixiang
Wang, Haoyu
Chen, Zhanghao
Zhang, Yifan
Yang, Chengcheng
Hao, Kongzhang
Yang, Zhengyi
contents Distributed stream processing systems rely on the dataflow model to define and execute streaming jobs, organizing computations as Directed Acyclic Graphs (DAGs) of operators. Adjusting the parallelism of these operators is crucial to handling fluctuating workloads efficiently while balancing resource usage and processing performance. However, existing methods often fail to effectively utilize execution histories or fully exploit DAG structures, limiting their ability to identity bottlenecks and determine the optimal parallelism. In this paper, we propose StreamTune, a novel approach for adaptive paralelism tuning in stream processing systems. StreamTune incorporates a pre-training and fine-tuning framework that leverages global knowledge from historical execution data for job-specific parallelism tuning. In the pre-training phase, Stream Tune clusters the historical data with Graph Edit Distance and pre-trains a Graph Neural Networkbased encoder per cluster to capture the correlation between the operator parallelism, DAG structures, and the identified operator-level bottlenecks. In the online tuning phase, StreamTune iteratively refines operator parallelism recommendations using an operator-level bottleneck prediction model enforced with a monotonic constraint, which aligns with the observed system performance behavior. Evaluation results demonstrate that StreamTune reduces reconfigurations by up to 29.6% and parallelism degrees by up to 30.8% in Apache Flink under a synthetic workload. In Timely Dataflow, StreamTune achieves up to an 83.3% reduction in parallelism degrees while maintaining comparable processing performance under the Nexmark benchmark, when compared to the state-of-the-art methods.
format Preprint
id arxiv_https___arxiv_org_abs_2504_12074
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Learning from the Past: Adaptive Parallelism Tuning for Stream Processing Systems
Han, Yuxing
Chen, Lixiang
Wang, Haoyu
Chen, Zhanghao
Zhang, Yifan
Yang, Chengcheng
Hao, Kongzhang
Yang, Zhengyi
Distributed, Parallel, and Cluster Computing
Databases
Distributed stream processing systems rely on the dataflow model to define and execute streaming jobs, organizing computations as Directed Acyclic Graphs (DAGs) of operators. Adjusting the parallelism of these operators is crucial to handling fluctuating workloads efficiently while balancing resource usage and processing performance. However, existing methods often fail to effectively utilize execution histories or fully exploit DAG structures, limiting their ability to identity bottlenecks and determine the optimal parallelism. In this paper, we propose StreamTune, a novel approach for adaptive paralelism tuning in stream processing systems. StreamTune incorporates a pre-training and fine-tuning framework that leverages global knowledge from historical execution data for job-specific parallelism tuning. In the pre-training phase, Stream Tune clusters the historical data with Graph Edit Distance and pre-trains a Graph Neural Networkbased encoder per cluster to capture the correlation between the operator parallelism, DAG structures, and the identified operator-level bottlenecks. In the online tuning phase, StreamTune iteratively refines operator parallelism recommendations using an operator-level bottleneck prediction model enforced with a monotonic constraint, which aligns with the observed system performance behavior. Evaluation results demonstrate that StreamTune reduces reconfigurations by up to 29.6% and parallelism degrees by up to 30.8% in Apache Flink under a synthetic workload. In Timely Dataflow, StreamTune achieves up to an 83.3% reduction in parallelism degrees while maintaining comparable processing performance under the Nexmark benchmark, when compared to the state-of-the-art methods.
title Learning from the Past: Adaptive Parallelism Tuning for Stream Processing Systems
topic Distributed, Parallel, and Cluster Computing
Databases
url https://arxiv.org/abs/2504.12074