[Paper Review] BriskStream: Scaling Data Stream Processing on Shared-Memory Multicore Architectures
BriskStream is a shared-memory data stream processing system that introduces Relative-Location Aware Scheduling (RLAS), a novel optimization paradigm accounting for NUMA effects by modeling inter-operator memory access distances. By combining branch-and-bound with three heuristics, RLAS jointly optimizes operator replication and placement, achieving up to an order of magnitude higher throughput and superior scalability than existing systems on large-scale multicore servers.
We introduce BriskStream, an in-memory data stream processing system (DSPSs) specifically designed for modern shared-memory multicore architectures. BriskStream's key contribution is an execution plan optimization paradigm, namely RLAS, which takes relative-location (i.e., NUMA distance) of each pair of producer-consumer operators into consideration. We propose a branch and bound based approach with three heuristics to resolve the resulting nontrivial optimization problem. The experimental evaluations demonstrate that BriskStream yields much higher throughput and better scalability than existing DSPSs on multi-core architectures when processing different types of workloads.
Motivation & Objective
- To address the poor scalability and underutilization of modern shared-memory multicore architectures in existing data stream processing systems (DSPSs).
- To overcome the limitations of heuristic-based or non-NUMA-aware operator placement and replication strategies that fail to account for varying memory access latencies.
- To develop a model-guided, systematic approach that jointly optimizes operator replication and placement considering relative-location (NUMA distance) between producer-consumer operators.
- To enable high-throughput, scalable stream processing on large-scale, multi-socket servers by minimizing remote memory access penalties.
- To provide a generalizable optimization framework applicable to in-memory, pipelined DSPSs running on modern shared-memory multicore systems.
Proposed method
- Proposes RLAS (Relative-Location Aware Scheduling), a new execution plan optimization paradigm that models the impact of NUMA distance on operator throughput and resource demand.
- Uses a branch-and-bound algorithm to explore the solution space of operator placement and replication, guided by a predictive model of performance under different NUMA configurations.
- Introduces three key heuristics: (1) edge-based decision making focusing on connected operator pairs, (2) best-fit placement and redundancy elimination to reduce search space, and (3) tunable granularity control for trade-off between optimization depth and efficiency.
- Integrates dynamic bottleneck detection and iterative replication scaling, where the bottleneck operator is identified and its replication level increased based on current placement performance.
- Implements BriskStream as a new DSPS with Storm/Heron-compatible APIs, enhanced with shared-memory optimizations such as lock-free data structures and cache-aware memory management.
- Employs a predictive performance model that estimates operator throughput based on placement decisions, enabling accurate evaluation of candidate execution plans.
Experimental results
Research questions
- RQ1How can operator placement and replication be jointly optimized to maximize throughput in shared-memory multicore stream processing systems under NUMA effects?
- RQ2To what extent does considering relative-location (NUMA distance) between producer-consumer operators improve system scalability and performance compared to traditional placement strategies?
- RQ3Can a model-guided, branch-and-bound-based optimization approach effectively navigate the complex, stochastic solution space introduced by dynamic performance variation due to NUMA effects?
- RQ4How does RLAS compare to heuristic-based strategies like round-robin or first-fit in terms of throughput and scalability on large-scale, multi-socket servers?
- RQ5What is the impact of operator replication tuning guided by placement-aware bottleneck detection on overall system throughput?
Key findings
- BriskStream achieves up to 10x higher throughput than existing open-source DSPSs like Storm and Flink on eight-socket servers with 256 cores and 2TB of memory.
- The system demonstrates superior scalability, maintaining high throughput as the number of cores increases, outperforming both heuristic-based and baseline NUMA-agnostic systems.
- RLAS significantly reduces remote memory access penalties by strategically placing producer-consumer operator pairs on closer NUMA nodes, leading to measurable performance gains.
- The three heuristics in RLAS reduce the solution space size and improve search efficiency, enabling scalable optimization without sacrificing solution quality.
- Compared to a heuristic-based approach in prior work, RLAS achieves better performance across diverse workloads, avoiding local optima and adapting to workload-specific bottlenecks.
- The integration of dynamic bottleneck detection with replication scaling leads to more effective load balancing and higher end-to-end throughput.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.