rpk topic add-partitions

An rpk command that increases the number of partitions of an existing topic.

In more detail

Kafka can add partitions but never remove them. Records already written stay where they are, but new records with an existing key may now hash to a different partition, which breaks per-key ordering across the change.

Example

rpk topic add-partitions m07l04-ev --num 2

Related terms

Taught in

References