Files
mtusi2026lab5/evidence/s3-outage.json
T
zemiles 5d60a85cc1 Аудит F10, F14, F15, F16: rolling update, тесты lab4, CI приложения, тест памяти
- F10: rolling-update.sh собирает migrate (единственный сервис с build),
  проверяет APP_VERSION в образе, в новой реплике и в ответах через LB;
  реально выполнено обновление 1 -> 2 (evidence/rolling-update.txt)
- F14: s3_outage.py переписан под lab5 (503 в API, retry в worker, принятое
  задание доходит до ready); устаревший consistency_faults.py удалён
- F15: .github/workflows/app.yml — сборка, готовность, smoke и регрессии на
  изолированном стенде, логи при ошибке, очистка
- F16: upload_memory.py с явными критериями и ненулевым кодом выхода, размер
  в каждой записи, progressive JPEG в смеси
- run_all.sh: все регрессии аудита, make validate, регрессия lab3, rolling update
2026-11-13 21:02:54 +03:00

236 lines
4.0 KiB
JSON

{
"scenario": "S3 outage: API answers 503 fast, accepted jobs retry and complete",
"date_utc": "2026-11-13T17:58:27+00:00",
"steps": [
{
"t": 2.04,
"utc": "17:57:29.727",
"step": "worker stopped, job accepted before outage",
"attachment_id": "19dac41c-4059-4326-8c97-93a0566b8979"
},
{
"t": 24.72,
"utc": "17:57:52.405",
"step": "S3 `stop` for 5 s",
"upload": {
"status": 503,
"ms": 14,
"code": "unavailable",
"retry_after": "1"
},
"download_ready": {
"status": 503,
"ms": 10,
"code": "unavailable",
"retry_after": "1"
},
"metadata_queued": {
"status": 200,
"ms": 6,
"code": null,
"retry_after": null
},
"text_message": {
"status": 201,
"ms": 6,
"code": null,
"retry_after": null
},
"ready": {
"status": 200,
"ms": 2,
"code": null,
"retry_after": null
}
},
{
"t": 25.83,
"utc": "17:57:53.513",
"step": "worker meets S3 outage -> retry with backoff",
"events": [
"enqueued",
"claimed",
"retry_scheduled"
],
"retries": [
{
"error_code": "storage_unavailable",
"next_attempt": 2,
"delay_seconds": 1.499
}
]
},
{
"t": 46.46,
"utc": "17:58:14.145",
"step": "S3 `start` -> healthy",
"seconds": 20.4
},
{
"t": 51.61,
"utc": "17:58:19.296",
"step": "S3 `pause` for 5 s",
"upload": {
"status": 503,
"ms": 14,
"code": "unavailable",
"retry_after": "1"
},
"download_ready": {
"status": 503,
"ms": 11,
"code": "unavailable",
"retry_after": "1"
},
"metadata_queued": {
"status": 200,
"ms": 7,
"code": null,
"retry_after": null
},
"text_message": {
"status": 201,
"ms": 9,
"code": null,
"retry_after": null
},
"ready": {
"status": 200,
"ms": 2,
"code": null,
"retry_after": null
}
},
{
"t": 57.47,
"utc": "17:58:25.154",
"step": "S3 `unpause` -> healthy",
"seconds": 5.7
},
{
"t": 58.24,
"utc": "17:58:25.925",
"step": "job accepted before outage completed",
"final": "ready",
"replay": null,
"attempts": 4,
"events": [
"enqueued",
"claimed",
"retry_scheduled",
"claimed",
"retry_scheduled",
"claimed",
"retry_scheduled",
"claimed",
"ready",
"staging_deleted"
]
},
{
"t": 58.58,
"utc": "17:58:26.262",
"step": "upload after recovery",
"status": "ready"
}
],
"results": {
"s3_stop": {
"upload": {
"status": 503,
"ms": 14,
"code": "unavailable",
"retry_after": "1"
},
"download_ready": {
"status": 503,
"ms": 10,
"code": "unavailable",
"retry_after": "1"
},
"metadata_queued": {
"status": 200,
"ms": 6,
"code": null,
"retry_after": null
},
"text_message": {
"status": 201,
"ms": 6,
"code": null,
"retry_after": null
},
"ready": {
"status": 200,
"ms": 2,
"code": null,
"retry_after": null
}
},
"worker_during_outage": {
"events": [
"enqueued",
"claimed",
"retry_scheduled"
],
"retries": [
{
"error_code": "storage_unavailable",
"next_attempt": 2,
"delay_seconds": 1.499
}
]
},
"s3_pause": {
"upload": {
"status": 503,
"ms": 14,
"code": "unavailable",
"retry_after": "1"
},
"download_ready": {
"status": 503,
"ms": 11,
"code": "unavailable",
"retry_after": "1"
},
"metadata_queued": {
"status": 200,
"ms": 7,
"code": null,
"retry_after": null
},
"text_message": {
"status": 201,
"ms": 9,
"code": null,
"retry_after": null
},
"ready": {
"status": 200,
"ms": 2,
"code": null,
"retry_after": null
}
},
"accepted_job": {
"final": "ready",
"replay": null,
"attempts": 4,
"events": [
"enqueued",
"claimed",
"retry_scheduled",
"claimed",
"retry_scheduled",
"claimed",
"retry_scheduled",
"claimed",
"ready",
"staging_deleted"
]
},
"upload_after_recovery": "ready"
}
}