add level 3

This commit is contained in:
Матвей
2026-11-07 15:00:53 +03:00
parent eafb825657
commit 7b6c10cde9
54 changed files with 1593 additions and 120 deletions
+12
View File
@@ -0,0 +1,12 @@
{
"date": "2026-11-07",
"environment": "Docker Desktop on local machine; separate temporary Compose project",
"procedure": "Generated new local secrets and CA, initialized and unsealed a new OpenBao, created fresh PostgreSQL, RabbitMQ and S3 volumes, and started the Compose stack.",
"checks": {
"public_https_smoke": "PASS",
"external_tls_untrusted_ca": "PASS",
"internal_mtls_both_api_replicas": "PASS",
"api_and_worker_s3_prefix_acl": "PASS"
},
"note": "Two initial RabbitMQ bootstrap races were corrected before the final successful clean run. The final run included S3 prefix ACL. Temporary test data were isolated from the main project and removed."
}
+11
View File
@@ -0,0 +1,11 @@
{
"date": "2026-11-07",
"scenario": "tests/resilience.py failover; separate runs stopping each API replica",
"transport": "HTTPS with the local CA",
"runs": [
{"stopped_service": "api-a", "observed_instances_before": 2, "successful_writes": 92, "failed_attempts": 2, "first_recovery_seconds": 5.91, "status": "PASS"},
{"stopped_service": "api-b", "observed_instances_before": 2, "successful_writes": 111, "failed_attempts": 1, "first_recovery_seconds": 2.887, "status": "PASS"},
{"stopped_service": "api-a", "observed_instances_before": 2, "successful_writes": 91, "failed_attempts": 2, "first_recovery_seconds": 4.784, "status": "PASS", "configuration": "after S3 prefix ACL"}
],
"note": "Closed-loop public test; first two runs preceded the final S3 prefix ACL. Results are not a throughput benchmark."
}
+43
View File
@@ -0,0 +1,43 @@
{
"status": "PASS",
"command": "make test-persistence ACTION_SCRIPT=scripts/restart.sh",
"services": {
"postgres": {
"before": "2026-11-07T11:21:11.514449215Z",
"after": "2026-11-07T11:31:51.644584012Z"
},
"s3": {
"before": "2026-11-07T11:21:14.448491467Z",
"after": "2026-11-07T11:31:54.493811096Z"
},
"broker": {
"before": "2026-11-07T11:21:12.477210382Z",
"after": "2026-11-07T11:31:52.565561429Z"
},
"openbao": {
"before": "2026-11-07T11:21:11.728365965Z",
"after": "2026-11-07T11:31:51.983157637Z"
},
"prometheus": {
"before": "2026-11-07T11:21:11.498290965Z",
"after": "2026-11-07T11:31:51.625424303Z"
},
"loki": {
"before": "2026-11-07T11:21:14.486210217Z",
"after": "2026-11-07T11:31:53.332075471Z"
},
"tempo": {
"before": "2026-11-07T11:21:13.305379716Z",
"after": "2026-11-07T11:31:52.261244679Z"
},
"api-a": {
"before": "2026-11-07T11:21:36.434313963Z",
"after": "2026-11-07T11:32:15.545949676Z"
},
"api-b": {
"before": "2026-11-07T11:21:36.45464788Z",
"after": "2026-11-07T11:32:15.598332884Z"
}
},
"test_output": "python3 tests/resilience.py --mode persistence --action-script \"scripts/restart.sh\" --base-url \"https://localhost:18443\" --ca-file \"/Users/garfieldmk/Desktop/study/highLoad/mtusi2026lab7/secrets/ca.crt\"\nExecuting explicit persistence hook; hook output suppressed to avoid leaking secrets.\nPASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence."
}