Исправление ошибок

This commit is contained in:
2026-10-27 20:29:33 +03:00
parent c60c78b51e
commit 0701e4dcc1
20 changed files with 293 additions and 94 deletions
+6
View File
@@ -0,0 +1,6 @@
session keys in Valkey after warm-up: 1
sample TTLs (capped at SESSION_CACHE_TTL_SECONDS): {'session:b978298ff28b3a14738e...': '60'}
pausing Valkey, logout, resuming ...
session keys after resume + 1.5s (drainer): 0
pending invalidation rows after drain: 0
old token status: 401
+6 -6
View File
@@ -1,6 +1,6 @@
NAME SERVICE STATUS PORTS
messenger-lab3-api-1 api Up 54 seconds (healthy) 8080/tcp
messenger-lab3-api-2 api Up 19 seconds (healthy) 8080/tcp
messenger-lab3-lb-1 lb Up 2 minutes (healthy) 80/tcp, 127.0.0.1:8080->8080/tcp
messenger-lab3-postgres-1 postgres Up 2 minutes (healthy) 5432/tcp
messenger-lab3-valkey-1 valkey Up 2 minutes (healthy) 6379/tcp
NAME SERVICE STATUS PORTS
messenger-lab3-api-7 api Up 4 minutes (healthy) 8080/tcp
messenger-lab3-api-8 api Up 4 minutes (healthy) 8080/tcp
messenger-lab3-lb-1 lb Up 7 minutes (healthy) 80/tcp, 127.0.0.1:8080->8080/tcp
messenger-lab3-postgres-1 postgres Up 7 minutes (healthy) 5432/tcp
messenger-lab3-valkey-1 valkey Up 7 minutes (healthy) 6379/tcp
Binary file not shown.
+2 -2
View File
@@ -1,3 +1,3 @@
X-Instance-Id sequence over 12 requests through the LB:
['4141f552b001', '5ac0582fa5e1', '4141f552b001', '5ac0582fa5e1', '4141f552b001', '5ac0582fa5e1', '4141f552b001', '5ac0582fa5e1', '4141f552b001', '5ac0582fa5e1', '4141f552b001', '5ac0582fa5e1']
distinct: ['4141f552b001', '5ac0582fa5e1']
['2f2d19f8e0e6', 'a17e74060901', '2f2d19f8e0e6', 'a17e74060901', '2f2d19f8e0e6', 'a17e74060901', '2f2d19f8e0e6', 'a17e74060901', '2f2d19f8e0e6', 'a17e74060901', '2f2d19f8e0e6', 'a17e74060901']
distinct: ['2f2d19f8e0e6', 'a17e74060901']
+5 -5
View File
@@ -2,16 +2,16 @@
"lab": 3,
"workload": "closed-loop POST messages; no automatic retries",
"requested_duration_seconds": 20.0,
"elapsed_seconds": 20.375,
"elapsed_seconds": 20.39,
"concurrency": 8,
"successful_requests": 2712,
"successful_requests": 2317,
"failed_requests": 0,
"error_ratio": 0.0,
"successful_rps": 133.104,
"successful_rps": 113.634,
"successful_latency_ms": {
"p50": 47.0,
"p95": 141.0,
"p99": 203.0
"p95": 172.0,
"p99": 281.0
},
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
}
+5 -5
View File
@@ -2,16 +2,16 @@
"lab": 3,
"workload": "closed-loop POST messages; no automatic retries",
"requested_duration_seconds": 20.0,
"elapsed_seconds": 20.375,
"elapsed_seconds": 20.39,
"concurrency": 8,
"successful_requests": 2712,
"successful_requests": 2317,
"failed_requests": 0,
"error_ratio": 0.0,
"successful_rps": 133.104,
"successful_rps": 113.634,
"successful_latency_ms": {
"p50": 47.0,
"p95": 141.0,
"p99": 203.0
"p95": 172.0,
"p99": 281.0
},
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
}
+5 -4
View File
@@ -1,15 +1,16 @@
=== docker compose exec -T api python -m src.migrate ===
docker : INFO:messenger.migrate:migrations up to date
строка:1 знак:122
строка:1 знак:244
+ ... ations.txt; docker compose exec -T api python -m src.migrate 2>&1 | T ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (INFO:messenger....ions up to date:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
=== schema_migrations rows ===
version
---------------------
version
-----------------------------
001_init.sql
002_idempotency.sql
(2 rows)
003_cache_invalidations.sql
(3 rows)
Binary file not shown.
+2 -2
View File
@@ -1,7 +1,7 @@
Running rolling update under continuous /health/live polling...
Replacing replica 72593ccf3b1f861c4d01c81aca3273b8149e00e93a8bad5db4c977a6702b553e ...
Replacing replica 1b3fb45af266d3eb0cbc1800b654b017f168a34d796f2d049b719b4c794a34ab ...
Replacing replica 47b92cbda9c814bed107a112fff202e9716d1735192a46861f070cc08c10b6e5 ...
Replacing replica 6077ba4198446b006bfc4a420d2875958a2b640163f1ed0669d9c3a6c0da5c2f ...
Rolling update complete; all replicas healthy.
HTTP status distribution observed by the client during the rolling update:
400 200
+5 -5
View File
@@ -1,6 +1,6 @@
NAME CPU % MEM USAGE / LIMIT
messenger-lab3-api-6 9.50% 74.27MiB / 256MiB
messenger-lab3-api-5 0.13% 74.25MiB / 256MiB
messenger-lab3-lb-1 0.00% 15.35MiB / 128MiB
messenger-lab3-postgres-1 0.18% 58.18MiB / 512MiB
messenger-lab3-valkey-1 0.27% 7.98MiB / 128MiB
messenger-lab3-api-8 0.24% 152.6MiB / 256MiB
messenger-lab3-api-7 0.21% 146.5MiB / 256MiB
messenger-lab3-lb-1 0.00% 14.97MiB / 128MiB
messenger-lab3-postgres-1 0.16% 68.95MiB / 512MiB
messenger-lab3-valkey-1 0.26% 8.43MiB / 128MiB
+1 -1
View File
@@ -1,2 +1,2 @@
..................................... [100%]
37 passed in 10.82s
37 passed in 9.10s