Skip to content

Commit

Permalink
config: change default partitions per shard to 1000
Browse files Browse the repository at this point in the history
...while leaving a legacy default to retain the old
value for old clusters, in case anyone was running
a special system with more partitions than this (e.g.
on very fast CPU cores that can handle it).
  • Loading branch information
jcsp committed Mar 2, 2023
1 parent d24e23d commit 3e3975b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/v/config/configuration.cc
Original file line number Diff line number Diff line change
Expand Up @@ -188,15 +188,16 @@ configuration::configuration()
"Maximum number of partitions which may be allocated to one shard (CPU "
"core)",
{.needs_restart = needs_restart::no, .visibility = visibility::tunable},
7000,
1000,
{
.min = 16, // Forbid absurdly small values that would prevent most
// practical workloads from running
.max = 131072 // An upper bound to prevent pathological values, although
// systems will most likely hit issues far before reaching
// this. This property is principally intended to be
// tuned downward from the default, not upward.
})
},
legacy_default<uint32_t>(7000, legacy_version{9}))
, topic_partitions_reserve_shard0(
*this,
"topic_partitions_reserve_shard0",
Expand Down

0 comments on commit 3e3975b

Please sign in to comment.