From 0703a15df76403a62d2c4c61765ebfcd2a92f276 Mon Sep 17 00:00:00 2001 From: Hector Sanjuan Date: Wed, 11 Dec 2024 09:28:28 +0100 Subject: [PATCH] config: add docs for BatchMaxNodes and BatchMaxSize --- docs/config.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/config.md b/docs/config.md index 3e917c07cc6..f4d333b9034 100644 --- a/docs/config.md +++ b/docs/config.md @@ -178,6 +178,8 @@ config file at runtime. - [`Import.UnixFSRawLeaves`](#importunixfsrawleaves) - [`Import.UnixFSChunker`](#importunixfschunker) - [`Import.HashFunction`](#importhashfunction) + - [`Import.BatchMaxNodes`](#importbatchmaxnodes) + - [`Import.BatchMaxSize`](#importbatchmaxsize) - [`Version`](#version) - [`Version.AgentSuffix`](#versionagentsuffix) - [`Version.SwarmCheckEnabled`](#versionswarmcheckenabled) @@ -2461,6 +2463,22 @@ Default: `sha2-256` Type: `optionalString` +### `Import.BatchMaxNodes + +The maximum number of nodes in a write-batch. The total size of the batch is limited by `BatchMaxnodes` and `BatchMaxSize`. + +Default: `128` + +Type: `optionalInteger` + +### `Import.BatchMaxSize` + +The maximum size of a single write-batch (computed as the sum of the sizes of the blocks). The total size of the batch is limited by `BatchMaxnodes` and `BatchMaxSize`. + +Default: `20971520` (20MiB) + +Type: `optionalInteger` + ## `Version` Options to configure agent version announced to the swarm, and leveraging