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

Healthcheck Envoy #695

Closed
stevesloka opened this issue Sep 21, 2018 · 2 comments
Closed

Healthcheck Envoy #695

stevesloka opened this issue Sep 21, 2018 · 2 comments
Assignees
Labels
kind/feature Categorizes issue or PR as related to a new feature. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Milestone

Comments

@stevesloka
Copy link
Member

Describe the solution you'd like

Allow the ability to health check Envoy by using the health check filter (https://www.envoyproxy.io/docs/envoy/latest/api-v2/config/filter/http/health_check/v2/health_check.proto#envoy-api-msg-config-filter-http-health-check-v2-healthcheck).

Anything else you would like to add:

Updating the config passed to Envoy we could add this to the stats listener (or could add a new listener, but was trying to avoid having too many) which enables the health check filter on Envoy itself:

http_filters:
  - name: envoy.health_check
                     config:
                        endpoint: "/healthz"
                        pass_through_mode: false

Once implemented curling will return a 200 or 503:

$ curl -i  http://localhost:8002/healthz                                                                     
HTTP/1.1 200 OK
x-envoy-upstream-healthchecked-cluster: cluster0
date: Fri, 21 Sep 2018 02:37:25 GMT
server: envoy
content-length: 0
---
$  curl -i  http://localhost:8002/healthz                                                                     
HTTP/1.1 503 Service Unavailable
x-envoy-upstream-healthchecked-cluster: cluster0
date: Fri, 21 Sep 2018 02:48:57 GMT
server: envoy
content-length: 0

// cc @rdrgmnzs

@davecheney
Copy link
Contributor

davecheney commented Sep 21, 2018 via email

@davecheney davecheney added this to the 0.7.0 milestone Sep 21, 2018
@davecheney davecheney added kind/feature Categorizes issue or PR as related to a new feature. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. labels Sep 21, 2018
@davecheney davecheney self-assigned this Sep 21, 2018
@stevesloka
Copy link
Member Author

Yup I know you mentioned that in the past about adding things to the bootstrap config, so figured we could chat about it to come up with a design here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
Development

No branches or pull requests

2 participants