rpk cluster maintenance status
Report maintenance status.
This command reports maintenance status for each node in the cluster. The output is presented as a table with each row representing a node in the cluster. The output can be used to monitor the progress of node draining.
| Value | Description |
|---|---|
|
ENABLED FINISHED ERRORS PARTITIONS ELIGIBLE TRANSFERRING FAILED |
|
false false false 0 0 0 0 |
Field descriptions:
NODE-ID: the node ID
ENABLED: true if the node is currently in maintenance mode (draining)
FINISHED: leadership draining has completed
ERRORS: errors have been encountered while draining
PARTITIONS: number of partitions whose leadership has moved
ELIGIBLE: number of partitions with leadership eligible to move
TRANSFERRING: current active number of leadership transfers
FAILED: number of failed leadership transfers
Notes:
-
When errors are present further information will be available in the logs for the corresponding node.
-
Only partitions with more than one replica are eligible for leadership transfer.
-
FINISHED, ERRORS, PARTITIONS, ELIGIBLE, TRANSFERRING, and FAILED are only populated while a node is in maintenance mode (ENABLED=true).
For example:
NODE-ID ENABLED FINISHED ERRORS PARTITIONS ELIGIBLE TRANSFERRING FAILED 1 false false false 0 0 0 0
| Field | Description |
|---|---|
|
The node ID. |
|
|
|
Leadership draining has completed. |
|
Errors have been encountered while draining. |
|
Number of partitions whose leadership has moved. |
|
Number of partitions with leadership eligible to move. |
|
Current active number of leadership transfers. |
|
Number of failed leadership transfers. |
|
Flags
| Value | Type | Description |
|---|---|---|
|
string |
Output format ( |
Global flags
| Value | Type | Description |
|---|---|---|
|
string |
Redpanda or |
|
stringArray |
Override |
|
bool |
Ignore |
|
string |
|
|
bool |
Enable verbose logging. |