Distributed execution
A Job is a DAG of operators. When the Hub dispatches it to several Agents, the same DAG runs as a set of physical tasks; placement decides where each task runs and shuffle carries records between nodes when an edge is split. This page explains the execution model behind Distributed Jobs.
Placement modes
| Mode | What is placed where | When to use |
|---|---|---|
colocated (default) | Adjacent operators stay on the same node; an edge never crosses nodes. Scale comes from source-partition splitting and independent subtasks. | Most jobs; no shuffle listener or data-plane capability required. |
split | The Hub round-robins physical tasks across target nodes; edges whose endpoints land on different nodes become remote network edges. | Whole-stream shuffles and jobs whose state must spread beyond one node. |
split is dispatched only to nodes that advertise network_shuffle and a
routable data address (health_check.data_port plus health_check.data_host).
An ineligible target set fails closed with no partial dispatch. Side edges
(error sinks and late-event routes) and affinity groups — such as the Kafka L3
exactly-once pair — must stay co-located; a plan that splits one is rejected
before dispatch.
Shuffle and network edges
A partitioned edge routes each record by key-group range to the owning downstream subtask, not by modulo over source partitions. The same key arriving from different source partitions therefore lands on the same downstream owner. Each (subtask-pair, operator-pair) edge gets one bounded TCP channel with the same FIFO, barrier, watermark, and acknowledgement semantics as a local bounded channel.
Acknowledgement mirrors across remote edges: a source ack completes only after
every downstream replica acknowledges. A downstream processing failure sends
a Failed receipt that aborts the upstream fan-out branch immediately.
Failure and recovery
Network edges are fail-closed: a lost connection, protocol or authentication failure, or resource-limit overflow fails the affected Job attempt and cleans up both ends. The attempt is then re-placed under generation fencing — never left half-open to produce or drop data.
Transient failures are absorbed first. The upstream side redials within a bounded budget (5 attempts with backoff by default) and replays unacknowledged frames; the receiver de-duplicates by delivery sequence. The replay cache is bounded by entry count and an approximate 256 MiB budget, so a stalled peer cannot grow it without limit. An idle connection is declared dead after 30 seconds without inbound frames; a connection with batches awaiting receipts gets 10 minutes, so slow downstreams under backpressure are not mistaken for dead peers.
Partial node failure is an incremental re-placement: surviving nodes keep
their exact task set, and a replacement node inherits only the failed slot's
tasks. If no replacement is available, a survivor concentrates the failed slot's
tasks instead of reshuffling everything. Recovery restores from the latest
checkpoint; a job whose recorded task set no longer matches the compiled plan
fails closed unless rescale: true opts into key-group redistribution.
State and checkpoints
Hot-path state lives in an embedded KV store local to each compute node, isolated by job, operator, and key namespace. A checkpoint writes a checksum-protected manifest with the state snapshot, source positions, and watermarks to shared object storage; recovery restores them before reading any input. The Hub seals a manifest only when every planned task is in the cut. See embedded state and checkpoints and acknowledged cut.
Operating limits
- A single Hub supports up to 256 agents; registration beyond the cap is rejected.
splitrequires a data plane on every target node.- Join operators and their upstream edges stay co-located; cross-node shuffle joins are unsupported.
See Operational limits for measured scale results.