Skip to content

Commit 25cb43a

Browse files
committed
Merge branch 'repartition-backpressure' into reclaimer-join-repartition
2 parents 6b8af30 + 16ae692 commit 25cb43a

5 files changed

Lines changed: 405 additions & 147 deletions

File tree

datafusion/common/src/config.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,19 @@ config_namespace! {
596596
/// Default: 128 MB
597597
pub max_spill_file_size_bytes: usize, default = 128 * 1024 * 1024
598598

599+
/// Maximum total in-memory bytes buffered in `RepartitionExec` distribution
600+
/// channels per gate group, before producers are throttled. The gate also
601+
/// closes when every output channel has at least one buffered item, so the
602+
/// byte budget primarily acts as a cap for skewed fan-out workloads where
603+
/// one channel would otherwise grow unbounded.
604+
///
605+
/// Acts as a soft cap: if a single batch exceeds the budget and the channel
606+
/// is empty, the channel allows the batch through to avoid head-of-line
607+
/// blocking.
608+
///
609+
/// Default: 100 MB
610+
pub repartition_buffer_size_bytes: usize, default = 100 * 1024 * 1024
611+
599612
/// Number of files to read in parallel when inferring schema and statistics
600613
pub meta_fetch_concurrency: usize, default = 32
601614

0 commit comments

Comments
 (0)