From 64c73da55aaf3b889849760730d7e908dcc4834d Mon Sep 17 00:00:00 2001 From: Danny Kulchinsky Date: Wed, 3 Jun 2026 09:08:51 -0400 Subject: [PATCH] update Web API with new endpoints --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 3b2507c..16bb196 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,9 @@ Web API: * `GET /readyz` used by Kubernetes readiness probe * `POST /readyz/enable` signals the Kubernetes LB that this instance is ready to receive traffic * `POST /readyz/disable` signals the Kubernetes LB to stop sending requests to this instance +* `POST /fault_injection/enable` makes this instance respond with HTTP 500 to all application endpoints (probes, metrics, pprof and the `/fault_injection/*` control endpoints stay healthy) — useful for testing client-side circuit breakers / outlier detection against a single "sick" replica +* `POST /fault_injection/disable` restores normal responses +* `GET /fault_injection/status` returns the current fault injection state (`enabled` or `disabled`) * `GET /status/{code}` returns the status code * `GET /panic` crashes the process with exit code 255 * `POST /echo` forwards the call to the backend service and echos the posted content