- Healthcheck S3 проверяет реальную запись (PUT во внутренний filer): после рестарта SeaweedFS запись готова на 10–20 с позже /healthz, и make test-failover сразу после make test-persistence падал с 503. - Upload на старте реплики ждёт первой успешной проверки S3 до 5 с. - stop-one.sh берёт реплики из docker compose ps, а не по имени проекта. - s3_outage.py в конце ждёт восстановления S3; переключение FAULT_INJECTION выполняется с --no-deps. - Перезаписаны evidence/, в REPORT.md добавлен раздел повторной проверки.
163 lines
2.7 KiB
JSON
163 lines
2.7 KiB
JSON
{
|
|
"pass": true,
|
|
"phases": [
|
|
{
|
|
"phase": "baseline",
|
|
"probe": {
|
|
"upload": {
|
|
"status": 201,
|
|
"ms": 6,
|
|
"code": null,
|
|
"retry_after": null
|
|
},
|
|
"download": {
|
|
"status": 200,
|
|
"ms": 3,
|
|
"code": null,
|
|
"retry_after": null
|
|
},
|
|
"text_message": {
|
|
"status": 201,
|
|
"ms": 3,
|
|
"code": null,
|
|
"retry_after": null
|
|
},
|
|
"ready": {
|
|
"status": 200,
|
|
"ms": 1,
|
|
"code": null,
|
|
"retry_after": null
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"phase": "immediately after `stop s3` (S3Health not yet stale)",
|
|
"probe": {
|
|
"upload": {
|
|
"status": 503,
|
|
"ms": 18,
|
|
"code": "unavailable",
|
|
"retry_after": "1"
|
|
},
|
|
"download": {
|
|
"status": 503,
|
|
"ms": 10,
|
|
"code": "unavailable",
|
|
"retry_after": "1"
|
|
},
|
|
"text_message": {
|
|
"status": 201,
|
|
"ms": 9,
|
|
"code": null,
|
|
"retry_after": null
|
|
},
|
|
"ready": {
|
|
"status": 200,
|
|
"ms": 3,
|
|
"code": null,
|
|
"retry_after": null
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"phase": "S3 down for 5 s (`stop s3`)",
|
|
"probe": {
|
|
"upload": {
|
|
"status": 503,
|
|
"ms": 14,
|
|
"code": "unavailable",
|
|
"retry_after": "1"
|
|
},
|
|
"download": {
|
|
"status": 503,
|
|
"ms": 11,
|
|
"code": "unavailable",
|
|
"retry_after": "1"
|
|
},
|
|
"text_message": {
|
|
"status": 201,
|
|
"ms": 12,
|
|
"code": null,
|
|
"retry_after": null
|
|
},
|
|
"ready": {
|
|
"status": 200,
|
|
"ms": 2,
|
|
"code": null,
|
|
"retry_after": null
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"phase": "recovery after `start s3`",
|
|
"upload_201_after_s": 20.1
|
|
},
|
|
{
|
|
"phase": "immediately after `pause s3` (S3Health not yet stale)",
|
|
"probe": {
|
|
"upload": {
|
|
"status": 503,
|
|
"ms": 10032,
|
|
"code": "unavailable",
|
|
"retry_after": "1"
|
|
},
|
|
"download": {
|
|
"status": 503,
|
|
"ms": 11,
|
|
"code": "unavailable",
|
|
"retry_after": "1"
|
|
},
|
|
"text_message": {
|
|
"status": 201,
|
|
"ms": 15,
|
|
"code": null,
|
|
"retry_after": null
|
|
},
|
|
"ready": {
|
|
"status": 200,
|
|
"ms": 4,
|
|
"code": null,
|
|
"retry_after": null
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"phase": "S3 down for 5 s (`pause s3`)",
|
|
"probe": {
|
|
"upload": {
|
|
"status": 503,
|
|
"ms": 13,
|
|
"code": "unavailable",
|
|
"retry_after": "1"
|
|
},
|
|
"download": {
|
|
"status": 503,
|
|
"ms": 9,
|
|
"code": "unavailable",
|
|
"retry_after": "1"
|
|
},
|
|
"text_message": {
|
|
"status": 201,
|
|
"ms": 14,
|
|
"code": null,
|
|
"retry_after": null
|
|
},
|
|
"ready": {
|
|
"status": 200,
|
|
"ms": 3,
|
|
"code": null,
|
|
"retry_after": null
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"phase": "recovery after `unpause s3`",
|
|
"upload_201_after_s": 0.0
|
|
},
|
|
{
|
|
"phase": "s3 healthcheck healthy again",
|
|
"after_s": 5.2,
|
|
"status": "healthy"
|
|
}
|
|
]
|
|
} |