Skip to content

Commit 97d02da

Browse files
committed
cluster_link/model: change default max partition bytes
Prior to this commit the default max partition bytes was 1MiB. The default min fetch bytes was 5MiB. And the max wait ms was 500ms. In cases where only one partition on the shard was being produced to these defaults limited our consumer throughput to 2MiB/s. This is since we'd only be able to read 1MiB every 500ms from the one partition with new data. Hence this commit sets max partition bytes to equal min fetch bytes to prevent this issue.
1 parent b31d2ae commit 97d02da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v/cluster_link/model/types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ struct connection_config
276276
// fetch response.
277277
std::optional<int32_t> fetch_partition_max_bytes;
278278
// Default maximum number of bytes to fetch per partition
279-
static constexpr auto default_fetch_partition_max_bytes = 1_MiB;
279+
static constexpr auto default_fetch_partition_max_bytes = 5_MiB;
280280
// Default maximum number of bytes to fetch (20MiB)
281281
static constexpr auto fetch_max_bytes_default = 20 * 1024 * 1024;
282282

0 commit comments

Comments
 (0)