Configure Dataflow autoscaling and understand Streaming Engine

domain: data-engineering · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Enable horizontal autoscaling by setting --autoscalingAlgorithm=THROUGHPUT_BASED (the default for streaming jobs); Dataflow adjusts worker count based on backlog and throughput metrics.
  2. Set --maxNumWorkers to cap costs and --numWorkers as the initial count.
  3. Enable Streaming Engine (also called Streaming Engine or Runner v2 depending on your SDK version) by adding the --enable_streaming_engine flag (verify the current flag name against Dataflow docs for your SDK version); this offloads shuffle and state storage off-VM to a managed backend, reducing per-worker memory and enabling finer-grained scaling.
  4. Monitor the Dataflow job graph in the Cloud Console for backlog per step, system lag, and worker CPU utilization to tune scaling thresholds.
  5. Use Streaming Engine with Streaming Appliance (verify availability and naming against current docs) for high-throughput jobs requiring very low latency.

Known gotchas

Related routes

Deploy a Dataflow streaming job using a classic or flex template
data-engineering · 5 steps · unrated
Configure Spark Structured Streaming trigger modes (processingTime, availableNow, continuous)
data-engineering · 5 steps · unrated
Configure Spark Structured Streaming watermarking to handle late-arriving data and bound state size
spark.apache.org · 6 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans