Skip to content

Commit

Permalink
config: add storage_compaction_index_memory
Browse files Browse the repository at this point in the history
This property controls the new bound on per-shard
memory used for compaction indices at scale.
  • Loading branch information
jcsp committed Jul 29, 2022
1 parent 6b9ca64 commit 965a004
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/v/config/configuration.cc
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,16 @@ configuration::configuration()
.visibility = visibility::tunable},
1024,
{.min = 128})
, storage_compaction_index_memory(
*this,
"storage_compaction_index_memory",
"Maximum number of bytes that may be used on each shard by compaction"
"index writers",
{.needs_restart = needs_restart::no,
.example = "1073741824",
.visibility = visibility::tunable},
128_MiB,
{.min = 16_MiB, .max = 100_GiB})
, max_compacted_log_segment_size(
*this,
"max_compacted_log_segment_size",
Expand Down
1 change: 1 addition & 0 deletions src/v/config/configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ struct configuration final : public config_store {
property<size_t> segment_fallocation_step;
bounded_property<uint64_t> storage_target_replay_bytes;
bounded_property<uint64_t> storage_max_concurrent_replay;
bounded_property<uint64_t> storage_compaction_index_memory;
property<size_t> max_compacted_log_segment_size;
property<int16_t> id_allocator_log_capacity;
property<int16_t> id_allocator_batch_size;
Expand Down

0 comments on commit 965a004

Please sign in to comment.