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

Support active health checking like HAProxy #824

Closed
klausenbusk opened this issue Nov 10, 2016 · 8 comments
Closed

Support active health checking like HAProxy #824

klausenbusk opened this issue Nov 10, 2016 · 8 comments
Labels

Comments

@klausenbusk
Copy link
Contributor

Hello

It could be very useful if Traefik had a option similar to HAProxy httpchk option.
The current solution (circuitbreaker) isn't enough, as it depends on a client request to be made first and that it wouldn't necessarily trigger if only ex. dynamic pages request fails.
Adding a httpchk option also allow clients to create a custom health script they can run on every server and thereby easily define what a healthy service is.

Kristian

@SantoDE SantoDE added the kind/enhancement a new or improved feature. label Nov 10, 2016
@errm
Copy link
Contributor

errm commented Nov 11, 2016

We have mainly supported this via providers, eg in the docker and kubernetes providers.

@klausenbusk what provider are you using?

@klausenbusk
Copy link
Contributor Author

@errm I gonna use etcd to configure traefik. We currently use vulcand, but we need websocket support and I'm not gonna switch lb in prime time :)

@errm
Copy link
Contributor

errm commented Nov 13, 2016

Yeah, I think that it does make sense to have this functionality in traefik, even if it is duplicated by most of the orchestration tools, for cases like this where people are rolling there own thing...

@thorerik
Copy link

Would be very handy for example in a Riak CS deployment to distribute Stanchion and have Træfik check http://stanchionhost/ping and check that it get's pong back, since you can only have one stanchion active at any one moment.

@garetw
Copy link

garetw commented Jan 18, 2017

We have a use-case here as well. It makes it nice for organizations that are in the process of incremental change from something like HAProxy.

@klausenbusk
Copy link
Contributor Author

It seems like this has already been merged:
#918
Just missing docs and test: #1132

@klausenbusk
Copy link
Contributor Author

Closing, included in v1.2.0-rc1.

@mattcollier
Copy link
Contributor

Linking this PR here because it includes documentation and configuration examples: #1132

@traefik traefik locked and limited conversation to collaborators Sep 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

7 participants