SaSPartitioner: A Self-Adaptive Streaming Partitioner Using Deep Reinforcement Learning
Shenghao Gong, Liu Liu, Ziquan Fang, Yunjun Gao, Yaofeng Tu
Abstract
Stream processing has been widely adopted in online services, such as e-commerce platforms and real-time query systems, due to its ability to leverage distributed parallel computing for low-latency, large-scale data processing. However, data skew, which results in imbalanced load distribution across computational nodes, can significantly increase processing latency and degrade resource efficiency. Most existing stream processing systems adopt partitioning strategies based on data volume, estimating system load using the volume of data in each partition. As a result, they often struggle to adapt promptly to dynamic changes in data distribution caused by streaming workloads. To this end, we propose SaSPartitioner, a self-adaptive partitioning framework based on system-metric modeling that leverages deep reinforcement learning (DRL) and real-time system metrics. Specifically, we formulate the streaming partitioning problem as a Markov decision process (MDP), collecting real-time metrics such as CPU and memory usage of streaming operators. Besides, we design both offline and online reinforcement learning models to enable seamless adaptation to dynamic shifts in data distribution. To further enhance efficiency, we introduce two acceleration methods, i.e., partition masking and hot key selection, to prune the state and action space of the DRL model. Extensive experiments on Apache Flink show that SaSPartitioner significantly outperforms existing stream partitioning methods, achieving up to a increase in throughput while maintaining robustness under rapidly changing data distributions.
Ask about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Your agent calls
Lunesearch_papers
Free to start. No credit card required.
Terminal
Install the CLIlune papers get db957107-5596-43bf-a33f-49a9263b5e38Related papers
- Dalton: Learned Partitioning for Distributed Data StreamsEleni Zapridou, Ioannis Mytilinis, Anastasia AilamakiVLDB 2023 · 25 citations
- SASPAR: Shared Adaptive Stream PartitioningJeyhun Karimov, Hans-Arno JacobsenICDE 2023 · 3 citations
- Scarf: Self-Adaptive Tuning via Multi-Objective Reinforcement Learning for Apache FlinkLiu Liu, Shenghao Gong, Ziquan Fang, Yunjun GaoVLDB 2026
- Generalizable Resource Allocation in Stream Processing via Deep Reinforcement LearningXiang Ni, Jing Li, Mo Yu, Wang Zhou et al.AAAI 2020 · 24 citations
- Learning from the Past: Adaptive Parallelism Tuning for Stream Processing SystemsYuxing Han, Lixiang Chen, Haoyu Wang, Zhanghao Chen et al.ICDE 2025 · 2 citations
