Skip to content
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

health check add "max_fails" support #1208

Closed
huxos opened this issue Aug 31, 2015 · 11 comments
Closed

health check add "max_fails" support #1208

huxos opened this issue Aug 31, 2015 · 11 comments
Labels
thinking More time is needed to research by the Consul Contributors type/enhancement Proposed improvement or new feature

Comments

@huxos
Copy link

huxos commented Aug 31, 2015

Hi,
I use consul-templates to render nginx config file. I found that the nginx is always reload twice in a short interval, as the check state switching.
Would there be any interest in adding max_fails support for health check.

thanks.

@slackpad
Copy link
Contributor

Hi @huxos there have been some requests for more sophisticated health check filtering, can you describe your use case in a little more detail, and how you'd imagine "max_fails" would work?

@huxos
Copy link
Author

huxos commented Sep 1, 2015

it means that after several consecutive failures change the check state to critical , not the first time failures discovered.

@slackpad slackpad added the thinking More time is needed to research by the Consul Contributors label Sep 1, 2015
@slackpad
Copy link
Contributor

slackpad commented Sep 1, 2015

Ok thanks. I'm going to mark this as a thinking ticket so we can see if something simple will meet a good 80% cut at people's needs.

@djenriquez
Copy link

+1, will satisfy our requirements as an alternative to #1212

@cruatta
Copy link
Contributor

cruatta commented Sep 19, 2015

👍

@dbresson
Copy link

dbresson commented Oct 5, 2016

+1, but also add minimum successes for recovering to healthy.

The lack of this is also the only reason I'm not using Consul Enterprise. Constant notifications because of a random blip in a health check is something I can't deal with.

@morokin
Copy link

morokin commented Feb 12, 2017

+1

1 similar comment
@Perlovka
Copy link

+1

@sirajmansour
Copy link

+1 this very important in leader election scenarios where a session could get invalidated just because a service check skipped a beat which would trigger un-necessary change in leader.

@WolverineFan
Copy link

To steal a page from a tool that already support this, Amazon ELB health checks have:

    healthy_threshold   = 2
    unhealthy_threshold = 2

This small change helps prevent a tremendous amount of flapping.

@slackpad slackpad added the type/enhancement Proposed improvement or new feature label May 2, 2017
@slackpad
Copy link
Contributor

slackpad commented May 2, 2017

Closing this as a duplicate of #2890.

@slackpad slackpad closed this as completed May 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
thinking More time is needed to research by the Consul Contributors type/enhancement Proposed improvement or new feature
Projects
None yet
Development

No branches or pull requests

9 participants