Flux: An Adaptive Partitioning Operator for Continuous Query Systems

  • Authors:
  • Mehul A. Shah;Joseph M. Hellerstein;Sirish Chandrasekaran;Michael J. Franklin

  • Affiliations:
  • -;-;-;-

  • Venue:
  • Flux: An Adaptive Partitioning Operator for Continuous Query Systems
  • Year:
  • 2002

Quantified Score

Hi-index 0.01

Visualization

Abstract

The long-running nature of continuous queries coupled with their high scalability requirements poses new challanges for dataflow processing. CQ systems execute pipelined dataflows that are shared across multiple queries and whose scalability is limited by their constituent, stateful operators -- e.g. a windowed groupby-aggregate. To scale such operators, a natural solution is to partition them across a shared-nothing platform. But in the CQ context, traditional, static techniques for partitioned parallelism can exhibit detrimental imbalances as workload and runtime conditions evolve. Long-running CQ dataflows must continue to function robustly in the face of these imbalances. To address this challenge, we introduce a dataflow operator called Flux that encapsulates adaptive state partitioning and dataflow routing. Flux is placed between producer-consumer stages in a dataflow pipeline to repartition stateful operators while the pipeline is still executing. We present the Flux architecture, along with repartitioning policies that can be used for CQ operators under shifting processing and memory loads. We show that the Flux mechanism and these policies can provide several factors improvement in throughput, and orders of magnitude improvement in average latency over the static case.