fix(bench): clear stale k6 console files and check telemetry storages around lookup
k6 --console-output appends, so a run killed before cleanup left <run>.warm.k6 in .work and the resumed warmup counted 24 of 12. Remove the console file before each k6 run and a stale .work at start; ignore evidence/**/.work/. A telemetry storage that exits during the lookup (Tempo in metrics-r3: name no longer resolvable) now fails the run with the container state, OOMKilled flag and its log tail saved to raw/; Tempo requests of the lookup are limited to 3 at a time and memory peaks after the lookup are recorded. Raise the light classes of the telemetry cost load by 15 % (read 126.5, write 23, me 34.5, card 34.5 per second): on a quiet host `full` kept the replicas at 28-29.5 % CPU, below the 30 % calibration bound. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -544,14 +544,15 @@ Prometheus совпадает с рабочей вне размеченных б
|
||||
|
||||
**Нагрузка** (8) — открытая модель (`k6/telemetry.js`, `constant-arrival-rate`, VU заранее, ответ не повторяется), одинаковая
|
||||
во всех вариантах, ниже насыщения (калибровка до гипотез: в `full` реплика занята 30–60 % CPU, Collector, Tempo и worker —
|
||||
меньше 70 %, недосланных нет, p95 времени до `ready` < 5 с):
|
||||
меньше 70 %, недосланных нет, p95 времени до `ready` < 5 с). Лёгкие классы подняты на 15 % после неснятой метки
|
||||
`baseline`: на тихом хосте `full` занимал реплику на 28–29,5 %, ниже границы 30 % (design, «Уточнения apply», п. 16):
|
||||
|
||||
| Класс | Запрос | В секунду |
|
||||
| --- | --- | --- |
|
||||
| `read` | первая страница истории чата записи (50) | 110 |
|
||||
| `write` | сообщение с новым `Idempotency-Key` | 20 |
|
||||
| `me` | `GET /users/me` | 30 |
|
||||
| `card` | карточка чата (кэш Valkey) | 30 |
|
||||
| `read` | первая страница истории чата записи (50) | 126,5 |
|
||||
| `write` | сообщение с новым `Idempotency-Key` | 23 |
|
||||
| `me` | `GET /users/me` | 34,5 |
|
||||
| `card` | карточка чата (кэш Valkey) | 34,5 |
|
||||
| `download` | оригинал готового вложения | 10 |
|
||||
| `upload` | JPEG 1600 × 1200, 0,48 МиБ → `ready` (API → relay → worker) | 1 |
|
||||
| `upload_bad` | тот же JPEG с 12 битами точности в SOF: 202, затем `failed` `invalid_image` | 0,1 |
|
||||
|
||||
Reference in New Issue
Block a user