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

Switch to httpProbe for liveness/readiness #413

Closed
alexellis opened this issue Apr 18, 2019 · 2 comments · Fixed by #414
Closed

Switch to httpProbe for liveness/readiness #413

alexellis opened this issue Apr 18, 2019 · 2 comments · Fixed by #414

Comments

@alexellis
Copy link
Member

Current Behaviour

The use of "exec" probes for liveness and readiness is required for software like the current incarnation of Istio, but can be very inefficient. In Swarm this seems pronounced, but in Kubernetes less so.

Possible Solution

HTTP Probes are now supported in the OpenFaaS watchdogs via /_/health. We should change over to httpProbes by default for liveness/readiness as soon as possible.

Some functions in the store may need to be rebuilt before the release is done and the helm chart is cut over to the new version to ensure that they have a compatible watchdog.

Steps to Reproduce (for bugs)

  1. This is available as a flag, added by VMware last year

Context

Increasing efficiencies - especially at "idle"

There is also a chance that HTTP probes may reduce cold-start time from scaling from zero or rolling over to a new version of a function.

Once fully tested this needs to be repeated in the operator.

@stefanprodan
Copy link
Contributor

I see no harm in doing this if we have a flag in Helm that can let a Istio user to switch to exec. The http probes will work with Istio 1.2 see https://preliminary.istio.io/help/ops/setup/app-health-check/#probe-rewrite

@LucasRoesler
Copy link
Member

LucasRoesler commented Apr 18, 2019

Seems like a good usecase for helm's template helpers to keep the deployment yaml clean that comment was completely offbase, not sure why my brain did that, please ignore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants