Skip to content

Commit

Permalink
config: increased default partitions # for __consumer_offsets
Browse files Browse the repository at this point in the history
When a consumer tries to locate a consumer group coordinator of a cluster
for the first time, the __consumer_offsets topic is created with the
number of partitions as per the group_topic_partitions property.
The default value for that property was 1 which means that unless
a different value was explicitly specified by the customer at a very
early stage of cluster's life, all OffsetCommit requests from all
consumers will be going to a single broker. This change increases
the default value to 16 as a reasonable trade-off between OffsetCommit
parallelism for the clusters that will use consumer groups
later in their life, and the overhead for the clusters that
won't use consumer groups.

#5222
  • Loading branch information
dlex committed Jul 8, 2022
1 parent c15cb93 commit 8d29b9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v/config/configuration.cc
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ configuration::configuration()
"group_topic_partitions",
"Number of partitions in the internal group membership topic",
{.needs_restart = needs_restart::no, .visibility = visibility::tunable},
1)
16)
, default_topic_replication(
*this,
"default_topic_replications",
Expand Down

0 comments on commit 8d29b9d

Please sign in to comment.