rpk cluster partitions list
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.
Enabled/Disabled
Disabling a partition in Redpanda involves prohibiting any data consumption or production to and from it. All internal processes associated with the partition are stopped, and it remains unloaded during system startup. This measure aims to maintain cluster health by preventing issues caused by specific corrupted partitions that may lead to Redpanda crashes. Although the data remains stored on disk, Redpanda ceases interaction with the disabled partitions to ensure system stability. You may disable/enable partitions using rpk cluster partitions enable/disable.
Examples
This section provides examples of how to use rpk cluster partitions list.
List all partitions in the cluster.
rpk cluster partitions list --all
List all partitions in the cluster, filtering for topic foo and bar.
rpk cluster partitions list foo bar
List partitions with replicas that are assigned to brokers 1 and 2..
rpk cluster partitions list foo --node-ids 1,2
List only the disabled partitions.
rpk cluster partitions list -a --disabled-only
List all in JSON format.
rpk cluster partitions list -a --format json
Flags
| Value | Type | Description |
|---|---|---|
|
bool |
List all partitions in the cluster. |
|
bool |
List disabled partitions only. |
|
string |
Output format ( |
|
intSlice |
List of comma-separated broker IDs that you wish to filter the results with. |
|
intSlice |
List of comma-separated partitions IDs that you wish to filter the results with. |
Global flags
| Value | Type | Description |
|---|---|---|
|
string |
Redpanda or |
|
stringArray |
Override |
|
bool |
Ignore |
|
string |
|
|
bool |
Enable verbose logging. |