rpk cluster partitions
Manage cluster partitions.
Subcommands
| Command | Description |
|---|---|
Trigger on-demand partition balancing to redistribute partitions evenly across brokers. Redpanda automatically balances partitions when it detects imbalance; run this command to trigger balancing manually. |
|
Queries cluster for partition balancer status: If continuous partition balancing is enabled, Redpanda will continuously reassign partitions from both unavailable nodes and from nodes using more disk space than the configured limit. Use this command to monitor the partition balancer status and the partition distribution across brokers in the cluster. |
|
Disable partitions of a topic You may disable all partitions of a topic using the |
|
Enable partitions of a topic You may enable all partitions of a topic using the |
|
List partitions in the cluster. This command lists the cluster-level metadata of all partitions, including current replica assignments on brokers and CPU cores for given topics. |
|
Move partition replicas across nodes / cores. This command changes replica assignments for given partitions. |
|
Cancel ongoing partition movements. By default, this command cancels all the partition movements in the cluster. |
|
Show ongoing partition movements. By default this command lists all ongoing partition movements in the cluster. |
|
Transfer partition leadership between brokers. This command allows you to transfer partition leadership. |
|
Recover unsafely from partitions that have lost majority. This command allows you to unsafely recover all data adversely affected by the loss of the nodes specified in the |
Global flags
| Value | Type | Description |
|---|---|---|
|
string |
Redpanda or |
|
stringArray |
Override |
|
bool |
Ignore |
|
string |
|
|
bool |
Enable verbose logging. |