Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 1.6 KB

File metadata and controls

50 lines (35 loc) · 1.6 KB

Verify SimpleL7Proxy

Confirm that the proxy is healthy and that a request reaches a configured backend.

TL;DR

  • Call /liveness to verify the process.
  • Call /readiness to verify that a backend is eligible.
  • Send a request and confirm that the response contains BackendHost.
Signal Expected value Meaning
/liveness 200 OK The proxy process is alive
/readiness 200 OK At least one backend can receive traffic
BackendHost Backend URL The request passed through the proxy

Check Health

Readiness is the required signal before sending a proxied request.

curl -i http://localhost:8000/liveness
curl -i http://localhost:8000/readiness
curl -i http://localhost:8000/startup

Warning

A successful liveness response with failed readiness means the process is running but no backend is currently eligible.

Send a Request

Confirm both the final status and the proxy response headers.

curl -i http://localhost:8000/your/path
# Expect a BackendHost response header.

Tip

Also inspect x-Request-Worker, x-Request-Queue-Duration, and x-Request-Process-Duration when diagnosing latency.

Verification Checklist

  • /liveness returns 200 OK.
  • /readiness returns 200 OK.
  • The request returns the expected backend response.
  • BackendHost identifies the selected backend.
  • eventslog.json contains the request event.

See Health Endpoints and Headers and Status Codes for exact behavior.