-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(optionally) only consider streaming nodes to be healthy #50
Comments
Good catch :
|
The Tests with the same cluster:
The check/description would be more usefull if we checked for healthy replicas.
What's your opinion on this ? |
I don't know about the I don't have a great opinion on what the UX should be, except I think the less complicated the better, and it seems useless to check for a running but non-working (or lagging) replica. So I think a replica should be considered healthy when it is streaming or - for older Patroni versions - when it is on the same timline as the local leader and has no lag. |
Well, put otherwise: I had a look at #30 and I noticed that it does not seem to touch Maybe a second check |
Fixed thanks for reporting this. |
Re opened, there is still the |
Done here: #66 |
In #30 the
streaming
state was added as an alternative torunning
. However, I don't agree with this - if the Patroni version is 3.0.4 or up, a state of merelyrunning
indicates an unhealthy (streaming replication not working) node.So it would be good to have an option for the cluster_node_count command to only count streaming (replicas and standby leaders) as healthy.
The text was updated successfully, but these errors were encountered: