Skip to content

Runs and compute

Most pipelines need no settings here. Reach for them when a run is slow or large.

Set compute.profile on the pipeline. Each shard of a run gets this much:

Profile CPUs Memory
tiny 0.5 1 GiB
small (default) 1 2 GiB
medium 2 4 GiB
large 4 8 GiB
xlarge 8 16 GiB
custom cpu in steps of 0.5, up to 32 memory_gi, default 2 GiB per CPU
"compute": {"profile": "custom", "cpu": 3.5, "memory_gi": 12, "timeout_s": 7200}

Admins can change these sizes or add their own (config kind compute-profile). timeout_s (default one hour, at most a day) cancels a run that takes longer.

Flux Core already uses every CPU it has. To steer it, give a node a partition or add a repartition node:

"partition": {"mode": "hash", "fields": ["customer_id"], "buckets": 16}

Rows with the same customer_id land in the same bucket, and buckets are worked on in parallel. More buckets than CPUs is fine and helps when a few keys have most of the rows. Flux checks the choice fits the node: an aggregate’s buckets must follow its group-by columns, for example.

"compute": {"profile": "medium", "shards": 8, "shard_key": "customer_id"}

Eight runners work at once, each on the rows whose customer_id hashes to it. Mark small reference sources (customers, exchange rates) with "broadcast": true on their extract so every shard sees all of them. Flux refuses combinations that would give wrong answers, such as totals grouped without the shard key, and says which node to change.

Every shard reads each source in full and keeps its share, so sharding speeds up the transformation and writing, not the read. For slow reads, use split on the extract.

  • A run commits only when every shard has finished. If any shard fails, nothing is published and the staged files are removed.
  • Each dataset is published in one step, so readers see the old snapshot or the new one. A run with several dataset targets publishes them one after another.
  • Flux doesn’t retry failed runs by itself. Fix the cause and run again, or add a trigger rule if you want retries.
  • Incremental extracts move their watermark only when the run commits, so a failed run is simply read again next time.

Runs wait in a queue when a pipeline already has a run going (one at a time per pipeline) or the platform’s compute quota is used up. Admins set the quotas; see limits.

Situation Try
A few million rows Defaults
Heavy formulas A bigger profile
Grouping by a key with many values Hash on that key, 2–4 buckets per CPU
One key has half the rows Hash on that key plus another column
The source read is the slow part split on the extract
More than one machine can handle in time Shards on the main key, broadcast reference data