envoyproxy/envoy

Healthchecking in Lua

Open

#6901 aperta il 10 mag 2019

Vedi su GitHub
 (7 commenti) (0 reazioni) (0 assegnatari)C++ (5373 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (27.997 star)
Metriche merge PR
 (Merge medio 8g) (378 PR mergiate in 30 g)

Descrizione

Hi,

I am trying to deploy various custom and stateful origins behind an Envoy gateway. These origins may have arbitrary logic to their healthchecks such that for a certain type one may want to check if the response is 200 OK and valid JSON with a "foo" key and a "bar" value, and mark the origin healthy if and only if that's the case while some other origin might be okay with just a 200 OK and an empty response body.

As it stands, I think this kind of feature would involve creating a new Healthcheck Filter. Has this been abstracted away by another filter? Any suggestions for such a use case would be appreciated.

Thanks.

Guida contributor