-
Notifications
You must be signed in to change notification settings - Fork 840
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
Add healthcheck on root url #1154
Conversation
I can work around this when building the Docker image and calling:
but seems nicer to just have it off-the-shelf :) |
I was trying to understand this issue and found this Have you tried it? If we are to support the healthcheck route being customizable, i'd rather have a configuration like: Config.define('HEALTHCHECK_ROUTE', r'/healthcheck', 'Healthcheck route.', 'Healthcheck') Then at handlers = [
(self.context.config.HEALTHCHECK_ROUTE, HealthcheckHandler)
] If we can avoid another config, I'd rather do it, though. |
@heynemann The readiness/healthcheck probes seem to work for some of their services, but not others. The only solution I have found that reliably works is to have a 200 response off / I am totally agnostic on the approach and if the healthcheck needs configuration. I personally don't see any downside to adding an additional response on /, but I'm sure there are implications I am not considering. Looks like the tests are failing, so this would take additional work if you agree on an approach |
Can you change to the approach I outlined? Then add a test that verifies that the healthcheck works when it's route is |
@heynemann maybe let it work off of |
Hey, @kkopachev I didn't understand if you meant changing As far as having both, I think it's a smell having two different routes that do the same thing. And since it's such a small change to have a configuration to do it, and since it's backwards compatible, I figured it to be the best approach. Does that make sense? @ryantxu can you please fix the failing test and provide some additional tests for the healthcheck route? Also, the configuration page in the docs should be updated. The file to update is configuration.rst. |
(letting travis compile… my environment is not setup)
sorry about the noise
Hi @ryantxu, is there an opened issue in gke regarding this problem ? I believe this should be fixed there... |
* Add healthcheck on configurable route using the `HEALTHCHECK_ROUTE` configuration parameter
thanks @heynemann -- had to use travis as my dev environment :) @verglor -- yes there are lots of issues! they all seem to get closed without resolution. See kubernetes/ingress-gce#39, kubernetes/ingress-gce#317 -- the real one has been around since 2017 kubernetes/ingress-gce#42 |
Released as 6.7.0 on pypi as well. |
I am trying to run thumbor on google kubernetes (GKE). The healthcheck infrastructure in gke always needs a 200 response on /
Yes it is annoying!
This easy change makes it easy to run on GKE without extra hoops (proxy)