Persist messenger in PostgreSQL with sessions, cache and recovery evidence
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
python -X utf8 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
python -X utf8 scripts/validate_openapi.py
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,110 @@
|
||||
[
|
||||
{
|
||||
"elapsed_s": 1.946,
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "91.99%",
|
||||
"Container": "708c0b14bcabe0bb0be47442021e3d8ec55216233ab670f9b65f29ebe87e86fd",
|
||||
"ID": "708c0b14bcab",
|
||||
"MemPerc": "18.54%",
|
||||
"MemUsage": "47.47MiB / 256MiB",
|
||||
"Name": "mtusi2026lab2-api-1",
|
||||
"NetIO": "3.03MB / 2.85MB",
|
||||
"PIDs": "3"
|
||||
},
|
||||
{
|
||||
"elapsed_s": 1.946,
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "2.44%",
|
||||
"Container": "ac5c6c65019c906f0a2284b60a2bd70967d8a7e43525195fcaece09eef0c72d9",
|
||||
"ID": "ac5c6c65019c",
|
||||
"MemPerc": "12.76%",
|
||||
"MemUsage": "8.164MiB / 64MiB",
|
||||
"Name": "mtusi2026lab2-cache-1",
|
||||
"NetIO": "52.7kB / 82kB",
|
||||
"PIDs": "6"
|
||||
},
|
||||
{
|
||||
"elapsed_s": 1.946,
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "19.95%",
|
||||
"Container": "85dd609cc3ea3334e57ca89675de2511a61335046299ec29594c78ad72cedec0",
|
||||
"ID": "85dd609cc3ea",
|
||||
"MemPerc": "9.77%",
|
||||
"MemUsage": "25MiB / 256MiB",
|
||||
"Name": "mtusi2026lab2-db-1",
|
||||
"NetIO": "483kB / 2.76MB",
|
||||
"PIDs": "11"
|
||||
},
|
||||
{
|
||||
"elapsed_s": 5.872,
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "97.06%",
|
||||
"Container": "708c0b14bcabe0bb0be47442021e3d8ec55216233ab670f9b65f29ebe87e86fd",
|
||||
"ID": "708c0b14bcab",
|
||||
"MemPerc": "18.71%",
|
||||
"MemUsage": "47.89MiB / 256MiB",
|
||||
"Name": "mtusi2026lab2-api-1",
|
||||
"NetIO": "32MB / 31.7MB",
|
||||
"PIDs": "3"
|
||||
},
|
||||
{
|
||||
"elapsed_s": 5.872,
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "2.53%",
|
||||
"Container": "ac5c6c65019c906f0a2284b60a2bd70967d8a7e43525195fcaece09eef0c72d9",
|
||||
"ID": "ac5c6c65019c",
|
||||
"MemPerc": "12.95%",
|
||||
"MemUsage": "8.289MiB / 64MiB",
|
||||
"Name": "mtusi2026lab2-cache-1",
|
||||
"NetIO": "135kB / 218kB",
|
||||
"PIDs": "6"
|
||||
},
|
||||
{
|
||||
"elapsed_s": 5.872,
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "22.76%",
|
||||
"Container": "85dd609cc3ea3334e57ca89675de2511a61335046299ec29594c78ad72cedec0",
|
||||
"ID": "85dd609cc3ea",
|
||||
"MemPerc": "9.89%",
|
||||
"MemUsage": "25.31MiB / 256MiB",
|
||||
"Name": "mtusi2026lab2-db-1",
|
||||
"NetIO": "1.14MB / 24MB",
|
||||
"PIDs": "11"
|
||||
},
|
||||
{
|
||||
"elapsed_s": 9.786,
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "100.05%",
|
||||
"Container": "708c0b14bcabe0bb0be47442021e3d8ec55216233ab670f9b65f29ebe87e86fd",
|
||||
"ID": "708c0b14bcab",
|
||||
"MemPerc": "18.68%",
|
||||
"MemUsage": "47.83MiB / 256MiB",
|
||||
"Name": "mtusi2026lab2-api-1",
|
||||
"NetIO": "58.7MB / 58.4MB",
|
||||
"PIDs": "3"
|
||||
},
|
||||
{
|
||||
"elapsed_s": 9.786,
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "1.82%",
|
||||
"Container": "ac5c6c65019c906f0a2284b60a2bd70967d8a7e43525195fcaece09eef0c72d9",
|
||||
"ID": "ac5c6c65019c",
|
||||
"MemPerc": "12.95%",
|
||||
"MemUsage": "8.289MiB / 64MiB",
|
||||
"Name": "mtusi2026lab2-cache-1",
|
||||
"NetIO": "189kB / 303kB",
|
||||
"PIDs": "6"
|
||||
},
|
||||
{
|
||||
"elapsed_s": 9.786,
|
||||
"BlockIO": "0B / 0B",
|
||||
"CPUPerc": "23.73%",
|
||||
"Container": "85dd609cc3ea3334e57ca89675de2511a61335046299ec29594c78ad72cedec0",
|
||||
"ID": "85dd609cc3ea",
|
||||
"MemPerc": "9.93%",
|
||||
"MemUsage": "25.43MiB / 256MiB",
|
||||
"Name": "mtusi2026lab2-db-1",
|
||||
"NetIO": "1.89MB / 50MB",
|
||||
"PIDs": "11"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"warmup_s": 2,
|
||||
"duration_s": 10.033,
|
||||
"concurrency": 10,
|
||||
"profile": "closed-loop: 1 write then 4 history reads per worker; 1000-character messages",
|
||||
"requests": 1368,
|
||||
"success_rps": 136.35,
|
||||
"error_fraction": 0.0,
|
||||
"p50_ms": 66.607,
|
||||
"p95_ms": 122.238,
|
||||
"p99_ms": 181.218,
|
||||
"statuses": {
|
||||
"200": 1088,
|
||||
"201": 280
|
||||
},
|
||||
"resource_source": "Docker stats samples; CPU percent is host-core percentage, memory is cgroup working set"
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
After Width: | Height: | Size: 79 KiB |
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 71 KiB |
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"public_smoke": "PASS: lab2 public API scenario; infrastructure and grading evidence remain separate.",
|
||||
"authentication_negative": "wrong password, Basic on protected route, X-User-Id: 401",
|
||||
"registration_race": [
|
||||
201,
|
||||
409,
|
||||
409,
|
||||
409,
|
||||
409,
|
||||
409,
|
||||
409,
|
||||
409
|
||||
],
|
||||
"rollback": "missing member: 400; chats count unchanged",
|
||||
"concurrent_messages": {
|
||||
"sent": 100,
|
||||
"read": 100,
|
||||
"page_size": 17
|
||||
},
|
||||
"cache_hit_delta": 5,
|
||||
"cache_down": {
|
||||
"status": 200,
|
||||
"seconds": 0.211
|
||||
},
|
||||
"database_down": {
|
||||
"status": 503,
|
||||
"seconds": 0.009
|
||||
},
|
||||
"logout": "204 then 401",
|
||||
"short_ttl": "SESSION_TTL_SECONDS=2: 200 then 401 after 2.2s",
|
||||
"migration_repeat": "Already applied: 001_initial.sql",
|
||||
"public_persistence": "Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.\nPASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.",
|
||||
"passed": true
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"before": {
|
||||
"api": "2026-10-16T12:03:16.324917557Z",
|
||||
"db": "2026-10-16T12:06:50.396973657Z",
|
||||
"cache": "2026-10-16T12:06:47.794944116Z"
|
||||
},
|
||||
"after": {
|
||||
"api": "2026-10-16T12:07:04.752894207Z",
|
||||
"db": "2026-10-16T12:07:04.023045701Z",
|
||||
"cache": "2026-10-16T12:07:03.931354369Z"
|
||||
},
|
||||
"volumes_removed": false
|
||||
}
|
||||
Reference in New Issue
Block a user