The Question
What is the purpose of the STATUS field in the cctrl> ls
output? It seems to duplicate the node line above…
|db1(slave:SHUNNED(MANUALLY-SHUNNED), |
|progress=31893503241, latency=0.777) |
|STATUS [SHUNNED] [2023/01/13 04:30:02 AM EST] |
The Answer
The purpose of the STATUS
field is to provide standard, state-specific values for ease of parsing and backwards-compatibility with older versions of the cctrl
command.
They are effectively the same information, presented slightly differently.
Here are the possible values for STATUS, showing the DataSource (DS) state first, and the matching alert STATUS second:
DS State | Alert STATUS |
---|---|
ONLINE | OK |
OFFLINE | WARN (for non-composite datasources) |
OFFLINE | DIMINISHED (for composite passive replica) |
OFFLINE | CRITICAL (for composite active primary) |
FAILED | CRITICAL |
SHUNNED | SHUNNED |
Wrap-Up
In this post we examined the purpose of the cctrl> ls
STATUS output field and how it compares to the previous output.
Smooth sailing!
Comments
Add new comment