envoyproxy / envoy

Cloud-native high-performance edge/middle/service proxy
https://www.envoyproxy.io
Apache License 2.0
24.94k stars 4.8k forks source link

Exposing Wasm VM state in a health check endpoint #34881

Open MengjiaLiang opened 4 months ago

MengjiaLiang commented 4 months ago

Title: Exposing Wasm VM state in a health check endpoint

Description: Any unrecoverable error in the Wasm VM will panic it, and all coming requests will get 503. Users have to reload the wasm filter or restart the envoy process to eliminate the issue.

I didn't find any specific mechanism/API from Envoy documents that can help users identify the status of the Wasm VM. This is useful for building a liveness probe to have the envoy process restart without any human interaction.

Thank you!

Pawan-Bishnoi commented 3 months ago

This would be useful. I will go through the codebase this weekend to gauge the effort involved.