Skip to content

check/http: add allowed_failures threshold configuration - #166

Open
AdamMagued wants to merge 1 commit into
sourcegraph:masterfrom
AdamMagued:fix-issue-161-allowed-failures
Open

AdamMagued wants to merge 1 commit into
sourcegraph:masterfrom
AdamMagued:fix-issue-161-allowed-failures

Conversation

@AdamMagued

Copy link
Copy Markdown

When running HTTP health checks with multiple attempts, transient network timeouts on a single attempt currently mark the entire check as down.

This change introduces an optional allowed_failures configuration option to HTTPChecker. When configured, a check is only marked as down if the number of failed attempts exceeds allowed_failures. When unset (default 0), existing behavior is preserved.

Fixes #161

When running HTTP health checks with multiple attempts, transient network
timeouts on a single attempt currently mark the entire check as down.

This change introduces an optional allowed_failures configuration option to
HTTPChecker. When configured, a check is only marked as down if the number of
failed attempts exceeds allowed_failures. When unset (default 0), existing
behavior is preserved.

Fixes sourcegraph#161

Signed-off-by: AdamMagued <adamismailmageud@gmail.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

check/http: a single error results in down status

1 participant