Skip to content

Health watcher primary unreachable #3818

Answered by jumaffre
lynshi asked this question in General
Discussion options

You must be logged in to vote

@lynshi: HealthState.unavailable does not indicate that the service is unrecoverable; it simply states that the current primary is not available and that an observer cannot tell for sure whether an election is in progress at this point in time.

In fact, the get_network_health() functions doesn't decide if the service is unrecoverable but simply returns the current health state of the network. It is up to the run() loop to decide whether the service is unrecoverable, which is declared as such if the service hasn't be HealthState.stable for more than unstable_threshold_s (which is N times the election timeout, with N to be decided by the operator based on how sensitive the health check shou…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by achamayou
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants