Commit 5f452e2
committed
mon: Add leader indicator && stretch mode to ceph -s output
This commit enhances the ceph -s command output to display:
The current leader monitor in the quorum status line with [leader: <mon-id>] format to provide immediate visibility into which monitor is making decisions
The stretch mode status in the cluster section, showing stretch_mode:
ENABLED when the cluster is operating in stretch mode.
Example output:
```
cluster:
id: e79711f4-0024-4737-83e0-5020f15cf7e0
stretch_mode: ENABLED
health: HEALTH_OK
services:
mon: 3 daemons, quorum a,b,c (age 4m) [leader: a]
```
Fixes: https://tracker.ceph.com/issues/70406
Signed-off-by: Kamoltat Sirivadhna <[email protected]>1 parent 4b6aacc commit 5f452e2
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3106 | 3106 | | |
3107 | 3107 | | |
3108 | 3108 | | |
3109 | | - | |
| 3109 | + | |
| 3110 | + | |
| 3111 | + | |
3110 | 3112 | | |
3111 | 3113 | | |
3112 | 3114 | | |
| |||
3139 | 3141 | | |
3140 | 3142 | | |
3141 | 3143 | | |
3142 | | - | |
| 3144 | + | |
| 3145 | + | |
3143 | 3146 | | |
3144 | 3147 | | |
3145 | 3148 | | |
| |||
0 commit comments