Собрать наблюдаемый стенд, чтобы причину деградации API и worker было видно по метрикам, логам и трассам.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
Local fault-injection files. They are not present by default, so the API behaves normally.
|
||||
|
||||
Write one of these names in this directory while the stack is running:
|
||||
|
||||
- `http_error_ratio` — float 0..1, fraction of `/api/` requests that return 500
|
||||
- `db_slow_ms` — delay added inside the `db.transaction` span
|
||||
- `db_fail` — `1` makes database calls return 503
|
||||
- `handler_slow_ms` — delay inside the HTTP server span and outside the database span
|
||||
- `process_fail_remaining` — positive integer, worker fails that many processing attempts once each
|
||||
|
||||
Do not put secrets here. The worker must be able to update `process_fail_remaining`.
|
||||
Reference in New Issue
Block a user