Реализовать лабораторную работу 3
This commit is contained in:
@@ -0,0 +1,180 @@
|
||||
.venv/bin/python student-tests/availability_tests.py --base-url "http://127.0.0.1:18080"
|
||||
Testing graceful stop of 532e774b3f3a
|
||||
Testing immediate stop of 154be9bc5b03
|
||||
Building replacement image
|
||||
Testing sequential replacement under mixed traffic
|
||||
{
|
||||
"verified_at": "2026-11-01T22:57:16Z",
|
||||
"failures": [
|
||||
{
|
||||
"duration_seconds": 16.0791,
|
||||
"requested_seconds": 16,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 5002,
|
||||
"failed_requests": 16,
|
||||
"successful_rps": 311.088,
|
||||
"error_ratio": 0.003189,
|
||||
"successful_latency_ms": {
|
||||
"p50": 7.92,
|
||||
"p95": 80.79,
|
||||
"p99": 91.746
|
||||
},
|
||||
"all_attempt_latency_ms": {
|
||||
"p50": 7.931,
|
||||
"p95": 81.213,
|
||||
"p99": 94.761
|
||||
},
|
||||
"status_counts": {
|
||||
"200": 2494,
|
||||
"201": 2508,
|
||||
"503": 16
|
||||
},
|
||||
"instance_counts": {
|
||||
"8dd6e05328154854818c0526596de617": 328,
|
||||
"7247c997acc94e32854eecea90b64f19": 4674
|
||||
},
|
||||
"actions": [
|
||||
{
|
||||
"started_after_seconds": 2.00741333301994,
|
||||
"finished_after_seconds": 2.9904547500191256,
|
||||
"result": {
|
||||
"container": "532e774b3f3a7b5f39e88e27486c67d61ae738abbe59c245537f038334cc6b00",
|
||||
"instance": "8dd6e05328154854818c0526596de617",
|
||||
"running_after_action": false
|
||||
}
|
||||
}
|
||||
],
|
||||
"mode": "graceful",
|
||||
"recovery_seconds": 1.579,
|
||||
"integrity": {
|
||||
"confirmed_writes": 2508,
|
||||
"stored_messages": 2508,
|
||||
"no_duplicate_text": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"duration_seconds": 16.0226,
|
||||
"requested_seconds": 16,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 2954,
|
||||
"failed_requests": 8,
|
||||
"successful_rps": 184.365,
|
||||
"error_ratio": 0.002701,
|
||||
"successful_latency_ms": {
|
||||
"p50": 24.682,
|
||||
"p95": 99.191,
|
||||
"p99": 291.869
|
||||
},
|
||||
"all_attempt_latency_ms": {
|
||||
"p50": 24.75,
|
||||
"p95": 100.611,
|
||||
"p99": 362.389
|
||||
},
|
||||
"status_counts": {
|
||||
"200": 1473,
|
||||
"201": 1481,
|
||||
"0": 3,
|
||||
"503": 5
|
||||
},
|
||||
"instance_counts": {
|
||||
"f4e50cb08dff4b4e912526d109af80a8": 2885,
|
||||
"7247c997acc94e32854eecea90b64f19": 69
|
||||
},
|
||||
"actions": [
|
||||
{
|
||||
"started_after_seconds": 2.0046655840124004,
|
||||
"finished_after_seconds": 4.294007374992361,
|
||||
"result": {
|
||||
"container": "154be9bc5b03d841f2e94423e86ede15e1d9d89155f80aebfb6f26939d09ea0b",
|
||||
"instance": "7247c997acc94e32854eecea90b64f19",
|
||||
"running_after_action": false
|
||||
}
|
||||
}
|
||||
],
|
||||
"mode": "immediate",
|
||||
"recovery_seconds": 2.303,
|
||||
"integrity": {
|
||||
"confirmed_writes": 1481,
|
||||
"stored_messages": 1481,
|
||||
"no_duplicate_text": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"rolling_update": {
|
||||
"duration_seconds": 45.0098,
|
||||
"requested_seconds": 45,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 7800,
|
||||
"failed_requests": 10,
|
||||
"successful_rps": 173.296,
|
||||
"error_ratio": 0.00128,
|
||||
"successful_latency_ms": {
|
||||
"p50": 28.192,
|
||||
"p95": 120.345,
|
||||
"p99": 208.105
|
||||
},
|
||||
"all_attempt_latency_ms": {
|
||||
"p50": 28.231,
|
||||
"p95": 121.312,
|
||||
"p99": 218.139
|
||||
},
|
||||
"status_counts": {
|
||||
"200": 3895,
|
||||
"201": 3905,
|
||||
"503": 10
|
||||
},
|
||||
"instance_counts": {
|
||||
"a020d1919aed4cbcab27bd49c3363717": 941,
|
||||
"f4e50cb08dff4b4e912526d109af80a8": 494,
|
||||
"9fdec641bc0e42358028fbf02a547750": 3419,
|
||||
"c23fe78cf209434fb08541058e1fe83a": 2946
|
||||
},
|
||||
"actions": [
|
||||
{
|
||||
"started_after_seconds": 2.001473125012126,
|
||||
"finished_after_seconds": 19.158305874996586,
|
||||
"result": [
|
||||
{
|
||||
"old_container": "532e774b3f3a7b5f39e88e27486c67d61ae738abbe59c245537f038334cc6b00",
|
||||
"old_instance": "f4e50cb08dff4b4e912526d109af80a8",
|
||||
"old_image": "sha256:d011d9b6d508badefd8ce4d974fba93f2cb5fd16fe2bc22f814b0df2a720b16d",
|
||||
"new_container": "fd6343f590fd942987e9689d03156de3d376940aae922a48955fd14199deb5d3",
|
||||
"new_instance": "9fdec641bc0e42358028fbf02a547750",
|
||||
"new_image": "sha256:7b23b7960daa18fb8416fc5373c808a14dc27975528e5394fa83363f25b4c42c"
|
||||
},
|
||||
{
|
||||
"old_container": "154be9bc5b03d841f2e94423e86ede15e1d9d89155f80aebfb6f26939d09ea0b",
|
||||
"old_instance": "a020d1919aed4cbcab27bd49c3363717",
|
||||
"old_image": "sha256:d011d9b6d508badefd8ce4d974fba93f2cb5fd16fe2bc22f814b0df2a720b16d",
|
||||
"new_container": "8829f09045d9c4e8284dbce533bda78e1bcf4aad605142f4de0a5d1285db7226",
|
||||
"new_instance": "c23fe78cf209434fb08541058e1fe83a",
|
||||
"new_image": "sha256:7b23b7960daa18fb8416fc5373c808a14dc27975528e5394fa83363f25b4c42c"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"integrity": {
|
||||
"confirmed_writes": 3905,
|
||||
"stored_messages": 3905,
|
||||
"no_duplicate_text": true
|
||||
}
|
||||
},
|
||||
"infrastructure": {
|
||||
"api_ports_published": false,
|
||||
"api_containers": [
|
||||
{
|
||||
"id": "fd6343f590fd942987e9689d03156de3d376940aae922a48955fd14199deb5d3",
|
||||
"image": "sha256:7b23b7960daa18fb8416fc5373c808a14dc27975528e5394fa83363f25b4c42c",
|
||||
"cpu_limit": 1.0,
|
||||
"memory_limit": 402653184
|
||||
},
|
||||
{
|
||||
"id": "8829f09045d9c4e8284dbce533bda78e1bcf4aad605142f4de0a5d1285db7226",
|
||||
"image": "sha256:7b23b7960daa18fb8416fc5373c808a14dc27975528e5394fa83363f25b4c42c",
|
||||
"cpu_limit": 1.0,
|
||||
"memory_limit": 402653184
|
||||
}
|
||||
],
|
||||
"migrations": "1,2"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,177 @@
|
||||
{
|
||||
"verified_at": "2026-11-01T23:10:36Z",
|
||||
"failures": [
|
||||
{
|
||||
"duration_seconds": 16.0121,
|
||||
"requested_seconds": 16,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 4700,
|
||||
"failed_requests": 8,
|
||||
"successful_rps": 293.528,
|
||||
"error_ratio": 0.001699,
|
||||
"successful_latency_ms": {
|
||||
"p50": 9.802,
|
||||
"p95": 80.053,
|
||||
"p99": 93.193
|
||||
},
|
||||
"all_attempt_latency_ms": {
|
||||
"p50": 9.81,
|
||||
"p95": 80.242,
|
||||
"p99": 94.732
|
||||
},
|
||||
"status_counts": {
|
||||
"200": 2346,
|
||||
"201": 2354,
|
||||
"503": 8
|
||||
},
|
||||
"instance_counts": {
|
||||
"3a26b3036963466ea997dc665b565926": 297,
|
||||
"33f1c8ae80d145809bfba32f4e5fd3a3": 4403
|
||||
},
|
||||
"actions": [
|
||||
{
|
||||
"started_after_seconds": 2.004297334002331,
|
||||
"finished_after_seconds": 2.3088578750030138,
|
||||
"result": {
|
||||
"container": "7fc11b71698d4aa93a2e58a38c671b16f7566f9290b83c965c5f430461ad96b9",
|
||||
"instance": "3a26b3036963466ea997dc665b565926",
|
||||
"running_after_action": false
|
||||
}
|
||||
}
|
||||
],
|
||||
"observations": [],
|
||||
"mode": "graceful",
|
||||
"recovery_seconds": 1.117,
|
||||
"integrity": {
|
||||
"confirmed_writes": 2354,
|
||||
"stored_messages": 2354,
|
||||
"no_duplicate_text": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"duration_seconds": 16.0367,
|
||||
"requested_seconds": 16,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 4730,
|
||||
"failed_requests": 11,
|
||||
"successful_rps": 294.948,
|
||||
"error_ratio": 0.00232,
|
||||
"successful_latency_ms": {
|
||||
"p50": 9.718,
|
||||
"p95": 78.168,
|
||||
"p99": 90.788
|
||||
},
|
||||
"all_attempt_latency_ms": {
|
||||
"p50": 9.732,
|
||||
"p95": 78.319,
|
||||
"p99": 91.752
|
||||
},
|
||||
"status_counts": {
|
||||
"200": 2359,
|
||||
"201": 2371,
|
||||
"0": 6,
|
||||
"503": 5
|
||||
},
|
||||
"instance_counts": {
|
||||
"03a65831924146bf98b9c8beabd73235": 4403,
|
||||
"33f1c8ae80d145809bfba32f4e5fd3a3": 327
|
||||
},
|
||||
"actions": [
|
||||
{
|
||||
"started_after_seconds": 2.002569542004494,
|
||||
"finished_after_seconds": 2.2908867499791086,
|
||||
"result": {
|
||||
"container": "8ff0d3425d061df5856f28e93605421c22d64f07cfa48379444f73583be84b8f",
|
||||
"instance": "33f1c8ae80d145809bfba32f4e5fd3a3",
|
||||
"running_after_action": false
|
||||
}
|
||||
}
|
||||
],
|
||||
"observations": [],
|
||||
"mode": "immediate",
|
||||
"recovery_seconds": 0.304,
|
||||
"integrity": {
|
||||
"confirmed_writes": 2371,
|
||||
"stored_messages": 2371,
|
||||
"no_duplicate_text": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"rolling_update": {
|
||||
"duration_seconds": 45.0733,
|
||||
"requested_seconds": 45,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 12960,
|
||||
"failed_requests": 0,
|
||||
"successful_rps": 287.532,
|
||||
"error_ratio": 0.0,
|
||||
"successful_latency_ms": {
|
||||
"p50": 11.354,
|
||||
"p95": 80.201,
|
||||
"p99": 103.951
|
||||
},
|
||||
"all_attempt_latency_ms": {
|
||||
"p50": 11.354,
|
||||
"p95": 80.201,
|
||||
"p99": 103.951
|
||||
},
|
||||
"status_counts": {
|
||||
"200": 6480,
|
||||
"201": 6480
|
||||
},
|
||||
"instance_counts": {
|
||||
"854205519c6a49eaba8112473f0050e2": 1032,
|
||||
"03a65831924146bf98b9c8beabd73235": 635,
|
||||
"5215daa9aa9e48b193bdf64ff314ff2d": 5823,
|
||||
"3983ae67ecf94704a04dce24f8174384": 5470
|
||||
},
|
||||
"actions": [
|
||||
{
|
||||
"started_after_seconds": 2.0046813749941066,
|
||||
"finished_after_seconds": 11.803809415985597,
|
||||
"result": [
|
||||
{
|
||||
"old_container": "7fc11b71698d4aa93a2e58a38c671b16f7566f9290b83c965c5f430461ad96b9",
|
||||
"old_instance": "03a65831924146bf98b9c8beabd73235",
|
||||
"old_image": "sha256:7d07e2377a2c575fa2db59d2cee807c2e24a2e8c37a54c8df6b3714a58b0516f",
|
||||
"new_container": "8b7f4d1da142af7d0af4cbc6d2c2b85dff74e46c2e9c86c1be2ee99524ecc748",
|
||||
"new_instance": "5215daa9aa9e48b193bdf64ff314ff2d",
|
||||
"new_image": "sha256:9498c2a6ccbbd5ed5b31a80ea7bfe8c8d4e477a5b667f8cd93b1d8947876ed0c"
|
||||
},
|
||||
{
|
||||
"old_container": "8ff0d3425d061df5856f28e93605421c22d64f07cfa48379444f73583be84b8f",
|
||||
"old_instance": "854205519c6a49eaba8112473f0050e2",
|
||||
"old_image": "sha256:7d07e2377a2c575fa2db59d2cee807c2e24a2e8c37a54c8df6b3714a58b0516f",
|
||||
"new_container": "d23b99a781064bdd4221cbdcab862b83ab6f1928f41ba0fa18c3ad25a4c6400d",
|
||||
"new_instance": "3983ae67ecf94704a04dce24f8174384",
|
||||
"new_image": "sha256:9498c2a6ccbbd5ed5b31a80ea7bfe8c8d4e477a5b667f8cd93b1d8947876ed0c"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"observations": [],
|
||||
"integrity": {
|
||||
"confirmed_writes": 6480,
|
||||
"stored_messages": 6480,
|
||||
"no_duplicate_text": true
|
||||
}
|
||||
},
|
||||
"infrastructure": {
|
||||
"api_ports_published": false,
|
||||
"api_containers": [
|
||||
{
|
||||
"id": "8b7f4d1da142af7d0af4cbc6d2c2b85dff74e46c2e9c86c1be2ee99524ecc748",
|
||||
"image": "sha256:9498c2a6ccbbd5ed5b31a80ea7bfe8c8d4e477a5b667f8cd93b1d8947876ed0c",
|
||||
"cpu_limit": 1.0,
|
||||
"memory_limit": 402653184
|
||||
},
|
||||
{
|
||||
"id": "d23b99a781064bdd4221cbdcab862b83ab6f1928f41ba0fa18c3ad25a4c6400d",
|
||||
"image": "sha256:9498c2a6ccbbd5ed5b31a80ea7bfe8c8d4e477a5b667f8cd93b1d8947876ed0c",
|
||||
"cpu_limit": 1.0,
|
||||
"memory_limit": 402653184
|
||||
}
|
||||
],
|
||||
"migrations": "1,2"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,635 @@
|
||||
Verified: 2026-11-01 23:08:44 UTC
|
||||
|
||||
$ make build
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi2026lab3-api-5 messenger-lab3:local "dotnet Messenger.Ap…" api 2 minutes ago Up 2 minutes (healthy) 8080/tcp
|
||||
mtusi2026lab3-api-6 messenger-lab3:local "dotnet Messenger.Ap…" api 2 minutes ago Up 2 minutes (healthy) 8080/tcp
|
||||
mtusi2026lab3-lb-1 haproxy:3.2.7-alpine "docker-entrypoint.s…" lb 20 minutes ago Up 8 minutes (healthy) 127.0.0.1:18080->8080/tcp
|
||||
mtusi2026lab3-migrate-1 sha256:7b23b7960daa18fb8416fc5373c808a14dc27975528e5394fa83363f25b4c42c "dotnet Messenger.Ap…" migrate 8 minutes ago Exited (0) 7 minutes ago
|
||||
mtusi2026lab3-postgres-1 postgres:17.6 "docker-entrypoint.s…" postgres 20 minutes ago Up 8 minutes (healthy) 5432/tcp
|
||||
mtusi2026lab3-redis-1 redis:7.4.2-alpine "docker-entrypoint.s…" redis 20 minutes ago Up 8 minutes (healthy) 6379/tcp
|
||||
dotnet build src/Messenger.Api/Messenger.Api.csproj --nologo
|
||||
Определение проектов для восстановления...
|
||||
Все проекты обновлены для восстановления.
|
||||
Messenger.Api -> /Users/nikitakamensky/Documents/mtusi2026lab3/src/Messenger.Api/bin/Debug/net9.0/Messenger.Api.dll
|
||||
|
||||
Сборка успешно завершена.
|
||||
Предупреждений: 0
|
||||
Ошибок: 0
|
||||
|
||||
Прошло времени 00:00:01.58
|
||||
|
||||
$ make check
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi2026lab3-api-5 messenger-lab3:local "dotnet Messenger.Ap…" api 2 minutes ago Up 2 minutes (healthy) 8080/tcp
|
||||
mtusi2026lab3-api-6 messenger-lab3:local "dotnet Messenger.Ap…" api 2 minutes ago Up 2 minutes (healthy) 8080/tcp
|
||||
mtusi2026lab3-lb-1 haproxy:3.2.7-alpine "docker-entrypoint.s…" lb 20 minutes ago Up 8 minutes (healthy) 127.0.0.1:18080->8080/tcp
|
||||
mtusi2026lab3-migrate-1 sha256:7b23b7960daa18fb8416fc5373c808a14dc27975528e5394fa83363f25b4c42c "dotnet Messenger.Ap…" migrate 8 minutes ago Exited (0) 7 minutes ago
|
||||
mtusi2026lab3-postgres-1 postgres:17.6 "docker-entrypoint.s…" postgres 20 minutes ago Up 8 minutes (healthy) 5432/tcp
|
||||
mtusi2026lab3-redis-1 redis:7.4.2-alpine "docker-entrypoint.s…" redis 20 minutes ago Up 8 minutes (healthy) 6379/tcp
|
||||
.venv/bin/python scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
|
||||
$ make validate
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi2026lab3-api-5 messenger-lab3:local "dotnet Messenger.Ap…" api 2 minutes ago Up 2 minutes (healthy) 8080/tcp
|
||||
mtusi2026lab3-api-6 messenger-lab3:local "dotnet Messenger.Ap…" api 2 minutes ago Up 2 minutes (healthy) 8080/tcp
|
||||
mtusi2026lab3-lb-1 haproxy:3.2.7-alpine "docker-entrypoint.s…" lb 20 minutes ago Up 8 minutes (healthy) 127.0.0.1:18080->8080/tcp
|
||||
mtusi2026lab3-migrate-1 sha256:7b23b7960daa18fb8416fc5373c808a14dc27975528e5394fa83363f25b4c42c "dotnet Messenger.Ap…" migrate 8 minutes ago Exited (0) 7 minutes ago
|
||||
mtusi2026lab3-postgres-1 postgres:17.6 "docker-entrypoint.s…" postgres 20 minutes ago Up 8 minutes (healthy) 5432/tcp
|
||||
mtusi2026lab3-redis-1 redis:7.4.2-alpine "docker-entrypoint.s…" redis 20 minutes ago Up 8 minutes (healthy) 6379/tcp
|
||||
.venv/bin/python scripts/validate_openapi.py
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
|
||||
$ make test
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi2026lab3-api-5 messenger-lab3:local "dotnet Messenger.Ap…" api 2 minutes ago Up 2 minutes (healthy) 8080/tcp
|
||||
mtusi2026lab3-api-6 messenger-lab3:local "dotnet Messenger.Ap…" api 2 minutes ago Up 2 minutes (healthy) 8080/tcp
|
||||
mtusi2026lab3-lb-1 haproxy:3.2.7-alpine "docker-entrypoint.s…" lb 20 minutes ago Up 8 minutes (healthy) 127.0.0.1:18080->8080/tcp
|
||||
mtusi2026lab3-migrate-1 sha256:7b23b7960daa18fb8416fc5373c808a14dc27975528e5394fa83363f25b4c42c "dotnet Messenger.Ap…" migrate 8 minutes ago Exited (0) 7 minutes ago
|
||||
mtusi2026lab3-postgres-1 postgres:17.6 "docker-entrypoint.s…" postgres 20 minutes ago Up 8 minutes (healthy) 5432/tcp
|
||||
mtusi2026lab3-redis-1 redis:7.4.2-alpine "docker-entrypoint.s…" redis 20 minutes ago Up 8 minutes (healthy) 6379/tcp
|
||||
.venv/bin/python tests/smoke.py --base-url "http://127.0.0.1:18080"
|
||||
PASS: lab3 public API scenario; infrastructure and grading evidence remain separate.
|
||||
|
||||
$ make student-test
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi2026lab3-api-5 messenger-lab3:local "dotnet Messenger.Ap…" api 2 minutes ago Up 2 minutes (healthy) 8080/tcp
|
||||
mtusi2026lab3-api-6 messenger-lab3:local "dotnet Messenger.Ap…" api 2 minutes ago Up 2 minutes (healthy) 8080/tcp
|
||||
mtusi2026lab3-lb-1 haproxy:3.2.7-alpine "docker-entrypoint.s…" lb 20 minutes ago Up 8 minutes (healthy) 127.0.0.1:18080->8080/tcp
|
||||
mtusi2026lab3-migrate-1 sha256:7b23b7960daa18fb8416fc5373c808a14dc27975528e5394fa83363f25b4c42c "dotnet Messenger.Ap…" migrate 8 minutes ago Exited (0) 7 minutes ago
|
||||
mtusi2026lab3-postgres-1 postgres:17.6 "docker-entrypoint.s…" postgres 20 minutes ago Up 8 minutes (healthy) 5432/tcp
|
||||
mtusi2026lab3-redis-1 redis:7.4.2-alpine "docker-entrypoint.s…" redis 20 minutes ago Up 8 minutes (healthy) 6379/tcp
|
||||
.venv/bin/python student-tests/lab3_tests.py --base-url "http://127.0.0.1:18080"
|
||||
{
|
||||
"verified_at": "2026-11-01T23:08:59Z",
|
||||
"instances": [
|
||||
"d7b86414b8104e6782be3b6f7d9dea18",
|
||||
"e27c40b331264ec4b4b12e5dffcb7aec"
|
||||
],
|
||||
"replay_instances": [
|
||||
"d7b86414b8104e6782be3b6f7d9dea18",
|
||||
"e27c40b331264ec4b4b12e5dffcb7aec"
|
||||
],
|
||||
"api_containers": [
|
||||
"006e17da13b0f44c04abed1613fce9a598d1960278da706a92bd9f387ce2986f",
|
||||
"f810cb8ed89777f14708c94390f6533acee9eb2af8dd86889f26f93ef3dcd01f"
|
||||
],
|
||||
"checks": [
|
||||
"one session served by at least two API processes",
|
||||
"32 concurrent requests across replicas create one message; absent attachments equals []",
|
||||
"changed body conflicts; user/chat scopes are independent; access rechecked",
|
||||
"24-hour expiry stored in PostgreSQL; expired key can be reused",
|
||||
"5xx rolls back message and key together; retry succeeds",
|
||||
"revoked token cannot replay an existing result"
|
||||
]
|
||||
}
|
||||
|
||||
$ make test-auth
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi2026lab3-api-5 messenger-lab3:local "dotnet Messenger.Ap…" api 2 minutes ago Up 2 minutes (healthy) 8080/tcp
|
||||
mtusi2026lab3-api-6 messenger-lab3:local "dotnet Messenger.Ap…" api 2 minutes ago Up 2 minutes (healthy) 8080/tcp
|
||||
mtusi2026lab3-lb-1 haproxy:3.2.7-alpine "docker-entrypoint.s…" lb 20 minutes ago Up 8 minutes (healthy) 127.0.0.1:18080->8080/tcp
|
||||
mtusi2026lab3-migrate-1 sha256:7b23b7960daa18fb8416fc5373c808a14dc27975528e5394fa83363f25b4c42c "dotnet Messenger.Ap…" migrate 8 minutes ago Exited (0) 7 minutes ago
|
||||
mtusi2026lab3-postgres-1 postgres:17.6 "docker-entrypoint.s…" postgres 20 minutes ago Up 8 minutes (healthy) 5432/tcp
|
||||
mtusi2026lab3-redis-1 redis:7.4.2-alpine "docker-entrypoint.s…" redis 20 minutes ago Up 8 minutes (healthy) 6379/tcp
|
||||
.venv/bin/python student-tests/lab2_tests.py --base-url "http://127.0.0.1:18080"
|
||||
PASS: Lab2 password, Basic, Bearer, input validation and session lifecycle
|
||||
|
||||
$ make test-ui
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi2026lab3-api-5 messenger-lab3:local "dotnet Messenger.Ap…" api 2 minutes ago Up 2 minutes (healthy) 8080/tcp
|
||||
mtusi2026lab3-api-6 messenger-lab3:local "dotnet Messenger.Ap…" api 2 minutes ago Up 2 minutes (healthy) 8080/tcp
|
||||
mtusi2026lab3-lb-1 haproxy:3.2.7-alpine "docker-entrypoint.s…" lb 20 minutes ago Up 8 minutes (healthy) 127.0.0.1:18080->8080/tcp
|
||||
mtusi2026lab3-migrate-1 sha256:7b23b7960daa18fb8416fc5373c808a14dc27975528e5394fa83363f25b4c42c "dotnet Messenger.Ap…" migrate 8 minutes ago Exited (0) 7 minutes ago
|
||||
mtusi2026lab3-postgres-1 postgres:17.6 "docker-entrypoint.s…" postgres 20 minutes ago Up 8 minutes (healthy) 5432/tcp
|
||||
mtusi2026lab3-redis-1 redis:7.4.2-alpine "docker-entrypoint.s…" redis 20 minutes ago Up 8 minutes (healthy) 6379/tcp
|
||||
.venv/bin/python student-tests/ui_api_tests.py --base-url "http://127.0.0.1:18080"
|
||||
PASS: UI authentication, privacy, newest page, backwards pagination, cursor isolation; required API stays ascending
|
||||
|
||||
$ make test-persistence
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi2026lab3-api-5 messenger-lab3:local "dotnet Messenger.Ap…" api 2 minutes ago Up 2 minutes (healthy) 8080/tcp
|
||||
mtusi2026lab3-api-6 messenger-lab3:local "dotnet Messenger.Ap…" api 2 minutes ago Up 2 minutes (healthy) 8080/tcp
|
||||
mtusi2026lab3-lb-1 haproxy:3.2.7-alpine "docker-entrypoint.s…" lb 20 minutes ago Up 8 minutes (healthy) 127.0.0.1:18080->8080/tcp
|
||||
mtusi2026lab3-migrate-1 sha256:7b23b7960daa18fb8416fc5373c808a14dc27975528e5394fa83363f25b4c42c "dotnet Messenger.Ap…" migrate 8 minutes ago Exited (0) 7 minutes ago
|
||||
mtusi2026lab3-postgres-1 postgres:17.6 "docker-entrypoint.s…" postgres 20 minutes ago Up 8 minutes (healthy) 5432/tcp
|
||||
mtusi2026lab3-redis-1 redis:7.4.2-alpine "docker-entrypoint.s…" redis 20 minutes ago Up 8 minutes (healthy) 6379/tcp
|
||||
.venv/bin/python tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:18080"
|
||||
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
|
||||
$ make restore-api
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi2026lab3-api-5 messenger-lab3:local "dotnet Messenger.Ap…" api 3 minutes ago Up 6 seconds (healthy) 8080/tcp
|
||||
mtusi2026lab3-api-6 messenger-lab3:local "dotnet Messenger.Ap…" api 3 minutes ago Up 6 seconds (healthy) 8080/tcp
|
||||
mtusi2026lab3-lb-1 haproxy:3.2.7-alpine "docker-entrypoint.s…" lb 20 minutes ago Up 6 seconds (healthy) 127.0.0.1:18080->8080/tcp
|
||||
mtusi2026lab3-migrate-1 messenger-lab3:local "dotnet Messenger.Ap…" migrate 5 seconds ago Exited (0) 3 seconds ago
|
||||
mtusi2026lab3-postgres-1 postgres:17.6 "docker-entrypoint.s…" postgres 20 minutes ago Up 8 seconds (healthy) 5432/tcp
|
||||
mtusi2026lab3-redis-1 redis:7.4.2-alpine "docker-entrypoint.s…" redis 20 minutes ago Up 9 seconds (healthy) 6379/tcp
|
||||
./scripts/compose.sh up -d --wait --wait-timeout 60 api lb
|
||||
Container mtusi2026lab3-redis-1 Running
|
||||
Container mtusi2026lab3-api-5 Running
|
||||
Container mtusi2026lab3-api-6 Running
|
||||
Container mtusi2026lab3-lb-1 Running
|
||||
Container mtusi2026lab3-postgres-1 Running
|
||||
Container mtusi2026lab3-postgres-1 Waiting
|
||||
Container mtusi2026lab3-postgres-1 Healthy
|
||||
Container mtusi2026lab3-migrate-1 Starting
|
||||
Container mtusi2026lab3-migrate-1 Started
|
||||
Container mtusi2026lab3-redis-1 Waiting
|
||||
Container mtusi2026lab3-migrate-1 Waiting
|
||||
Container mtusi2026lab3-redis-1 Healthy
|
||||
Container mtusi2026lab3-migrate-1 Exited
|
||||
Container mtusi2026lab3-api-5 Waiting
|
||||
Container mtusi2026lab3-api-6 Waiting
|
||||
Container mtusi2026lab3-api-5 Healthy
|
||||
Container mtusi2026lab3-api-6 Healthy
|
||||
Container mtusi2026lab3-postgres-1 Waiting
|
||||
Container mtusi2026lab3-redis-1 Waiting
|
||||
Container mtusi2026lab3-migrate-1 Waiting
|
||||
Container mtusi2026lab3-api-5 Waiting
|
||||
Container mtusi2026lab3-api-6 Waiting
|
||||
Container mtusi2026lab3-lb-1 Waiting
|
||||
Container mtusi2026lab3-migrate-1 Exited
|
||||
Container mtusi2026lab3-lb-1 Healthy
|
||||
Container mtusi2026lab3-postgres-1 Healthy
|
||||
Container mtusi2026lab3-redis-1 Healthy
|
||||
Container mtusi2026lab3-api-5 Healthy
|
||||
Container mtusi2026lab3-api-6 Healthy
|
||||
|
||||
$ make test-failover
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi2026lab3-api-5 messenger-lab3:local "dotnet Messenger.Ap…" api 3 minutes ago Up 9 seconds (healthy) 8080/tcp
|
||||
mtusi2026lab3-api-6 messenger-lab3:local "dotnet Messenger.Ap…" api 3 minutes ago Up 9 seconds (healthy) 8080/tcp
|
||||
mtusi2026lab3-lb-1 haproxy:3.2.7-alpine "docker-entrypoint.s…" lb 20 minutes ago Up 9 seconds (healthy) 127.0.0.1:18080->8080/tcp
|
||||
mtusi2026lab3-migrate-1 messenger-lab3:local "dotnet Messenger.Ap…" migrate 8 seconds ago Exited (0) 1 second ago
|
||||
mtusi2026lab3-postgres-1 postgres:17.6 "docker-entrypoint.s…" postgres 20 minutes ago Up 12 seconds (healthy) 5432/tcp
|
||||
mtusi2026lab3-redis-1 redis:7.4.2-alpine "docker-entrypoint.s…" redis 20 minutes ago Up 12 seconds (healthy) 6379/tcp
|
||||
.venv/bin/python tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:18080"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 124, "failed_attempts": 1, "first_recovery_seconds": 1.497}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
|
||||
$ make restore-api
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi2026lab3-api-5 messenger-lab3:local "dotnet Messenger.Ap…" api 3 minutes ago Up 33 seconds (healthy) 8080/tcp
|
||||
mtusi2026lab3-api-6 messenger-lab3:local "dotnet Messenger.Ap…" api 3 minutes ago Exited (0) 14 seconds ago
|
||||
mtusi2026lab3-lb-1 haproxy:3.2.7-alpine "docker-entrypoint.s…" lb 21 minutes ago Up 33 seconds (healthy) 127.0.0.1:18080->8080/tcp
|
||||
mtusi2026lab3-migrate-1 messenger-lab3:local "dotnet Messenger.Ap…" migrate 33 seconds ago Exited (0) 25 seconds ago
|
||||
mtusi2026lab3-postgres-1 postgres:17.6 "docker-entrypoint.s…" postgres 21 minutes ago Up 36 seconds (healthy) 5432/tcp
|
||||
mtusi2026lab3-redis-1 redis:7.4.2-alpine "docker-entrypoint.s…" redis 21 minutes ago Up 36 seconds (healthy) 6379/tcp
|
||||
./scripts/compose.sh up -d --wait --wait-timeout 60 api lb
|
||||
Container mtusi2026lab3-postgres-1 Running
|
||||
Container mtusi2026lab3-redis-1 Running
|
||||
Container mtusi2026lab3-api-5 Running
|
||||
Container mtusi2026lab3-lb-1 Running
|
||||
Container mtusi2026lab3-postgres-1 Waiting
|
||||
Container mtusi2026lab3-postgres-1 Healthy
|
||||
Container mtusi2026lab3-migrate-1 Starting
|
||||
Container mtusi2026lab3-migrate-1 Started
|
||||
Container mtusi2026lab3-redis-1 Waiting
|
||||
Container mtusi2026lab3-migrate-1 Waiting
|
||||
Container mtusi2026lab3-redis-1 Healthy
|
||||
Container mtusi2026lab3-migrate-1 Exited
|
||||
Container mtusi2026lab3-api-6 Starting
|
||||
Container mtusi2026lab3-api-6 Started
|
||||
Container mtusi2026lab3-api-5 Waiting
|
||||
Container mtusi2026lab3-api-6 Waiting
|
||||
Container mtusi2026lab3-api-5 Healthy
|
||||
Container mtusi2026lab3-api-6 Healthy
|
||||
Container mtusi2026lab3-redis-1 Waiting
|
||||
Container mtusi2026lab3-migrate-1 Waiting
|
||||
Container mtusi2026lab3-api-5 Waiting
|
||||
Container mtusi2026lab3-api-6 Waiting
|
||||
Container mtusi2026lab3-lb-1 Waiting
|
||||
Container mtusi2026lab3-postgres-1 Waiting
|
||||
Container mtusi2026lab3-lb-1 Healthy
|
||||
Container mtusi2026lab3-postgres-1 Healthy
|
||||
Container mtusi2026lab3-redis-1 Healthy
|
||||
Container mtusi2026lab3-migrate-1 Exited
|
||||
Container mtusi2026lab3-api-5 Healthy
|
||||
Container mtusi2026lab3-api-6 Healthy
|
||||
|
||||
$ make test-idempotency-modes
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi2026lab3-api-5 messenger-lab3:local "dotnet Messenger.Ap…" api 3 minutes ago Up 40 seconds (healthy) 8080/tcp
|
||||
mtusi2026lab3-api-6 messenger-lab3:local "dotnet Messenger.Ap…" api 3 minutes ago Up 5 seconds (healthy) 8080/tcp
|
||||
mtusi2026lab3-lb-1 haproxy:3.2.7-alpine "docker-entrypoint.s…" lb 21 minutes ago Up 41 seconds (healthy) 127.0.0.1:18080->8080/tcp
|
||||
mtusi2026lab3-migrate-1 messenger-lab3:local "dotnet Messenger.Ap…" migrate 40 seconds ago Exited (0) 6 seconds ago
|
||||
mtusi2026lab3-postgres-1 postgres:17.6 "docker-entrypoint.s…" postgres 21 minutes ago Up 43 seconds (healthy) 5432/tcp
|
||||
mtusi2026lab3-redis-1 redis:7.4.2-alpine "docker-entrypoint.s…" redis 21 minutes ago Up 44 seconds (healthy) 6379/tcp
|
||||
.venv/bin/python student-tests/mode_tests.py --base-url "http://127.0.0.1:18080"
|
||||
{
|
||||
"verified_at": "2026-11-01T23:10:04Z",
|
||||
"instances": [
|
||||
"a73011a405974f049c4657cd9012353c",
|
||||
"f31a70a93690433f800e24ab887fadcc"
|
||||
],
|
||||
"replay_instances": [
|
||||
"a73011a405974f049c4657cd9012353c",
|
||||
"f31a70a93690433f800e24ab887fadcc"
|
||||
],
|
||||
"api_containers": [
|
||||
"fba3c592906dee4a49eb13dadcc8f5312774b867174ac16affa2667942bdf8c4",
|
||||
"251c4a8ff6aca5e1a37f6e2201e47e8c7da9ecef47c3484d63ee52dd892fa440"
|
||||
],
|
||||
"checks": [
|
||||
"one session served by at least two API processes",
|
||||
"32 concurrent requests across replicas create one message; absent attachments equals []",
|
||||
"changed body conflicts; user/chat scopes are independent; access rechecked",
|
||||
"24-hour expiry stored in PostgreSQL; expired key can be reused",
|
||||
"5xx rolls back message and key together; retry succeeds",
|
||||
"revoked token cannot replay an existing result"
|
||||
]
|
||||
}
|
||||
{
|
||||
"verified_at": "2026-11-01T23:10:18Z",
|
||||
"instances": [
|
||||
"a57245197fc24e26bfb9c3a7ec513ca3",
|
||||
"cc49c15f31074b10b0011dc1efad2340"
|
||||
],
|
||||
"replay_instances": [
|
||||
"a57245197fc24e26bfb9c3a7ec513ca3",
|
||||
"cc49c15f31074b10b0011dc1efad2340"
|
||||
],
|
||||
"api_containers": [
|
||||
"57e71884095f659c5717368a4cc583391c4bfff12193916a6494de4ccb29372f",
|
||||
"02b139a5546a98631290e8c341d129dabbf47cc67e0fa4079eb0ac76a34d63b1"
|
||||
],
|
||||
"checks": [
|
||||
"one session served by at least two API processes",
|
||||
"32 concurrent requests across replicas create one message; absent attachments equals []",
|
||||
"changed body conflicts; user/chat scopes are independent; access rechecked",
|
||||
"24-hour expiry stored in PostgreSQL; expired key can be reused",
|
||||
"5xx rolls back message and key together; retry succeeds",
|
||||
"revoked token cannot replay an existing result"
|
||||
]
|
||||
}
|
||||
Container mtusi2026lab3-api-5 Recreate
|
||||
Container mtusi2026lab3-api-6 Recreate
|
||||
Container mtusi2026lab3-api-5 Recreated
|
||||
Container mtusi2026lab3-api-6 Recreated
|
||||
Container mtusi2026lab3-api-6 Starting
|
||||
Container mtusi2026lab3-api-6 Started
|
||||
Container mtusi2026lab3-api-5 Starting
|
||||
Container mtusi2026lab3-api-5 Started
|
||||
|
||||
$ make test-expiry
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi2026lab3-api-5 messenger-lab3:local "dotnet Messenger.Ap…" api 3 seconds ago Up 2 seconds (health: starting) 8080/tcp
|
||||
mtusi2026lab3-api-6 messenger-lab3:local "dotnet Messenger.Ap…" api 3 seconds ago Up 2 seconds (health: starting) 8080/tcp
|
||||
mtusi2026lab3-lb-1 haproxy:3.2.7-alpine "docker-entrypoint.s…" lb 22 minutes ago Up About a minute (healthy) 127.0.0.1:18080->8080/tcp
|
||||
mtusi2026lab3-migrate-1 messenger-lab3:local "dotnet Messenger.Ap…" migrate About a minute ago Exited (0) 37 seconds ago
|
||||
mtusi2026lab3-postgres-1 postgres:17.6 "docker-entrypoint.s…" postgres 22 minutes ago Up About a minute (healthy) 5432/tcp
|
||||
mtusi2026lab3-redis-1 redis:7.4.2-alpine "docker-entrypoint.s…" redis 22 minutes ago Up About a minute (healthy) 6379/tcp
|
||||
.venv/bin/python student-tests/mode_tests.py --base-url "http://127.0.0.1:18080" --expiry
|
||||
Container mtusi2026lab3-api-5 Recreate
|
||||
Container mtusi2026lab3-api-6 Recreate
|
||||
Container mtusi2026lab3-api-5 Recreated
|
||||
Container mtusi2026lab3-api-6 Recreated
|
||||
Container mtusi2026lab3-api-6 Starting
|
||||
Container mtusi2026lab3-api-6 Started
|
||||
Container mtusi2026lab3-api-5 Starting
|
||||
Container mtusi2026lab3-api-5 Started
|
||||
PASS: TTL=2 expires in PostgreSQL authentication and Redis cache
|
||||
PASS: Lab2 password, Basic, Bearer, input validation and session lifecycle
|
||||
Container mtusi2026lab3-api-6 Recreate
|
||||
Container mtusi2026lab3-api-5 Recreate
|
||||
Container mtusi2026lab3-api-5 Recreated
|
||||
Container mtusi2026lab3-api-6 Recreated
|
||||
Container mtusi2026lab3-api-5 Starting
|
||||
Container mtusi2026lab3-api-5 Started
|
||||
Container mtusi2026lab3-api-6 Starting
|
||||
Container mtusi2026lab3-api-6 Started
|
||||
|
||||
$ make test-grade4
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi2026lab3-api-5 messenger-lab3:local "dotnet Messenger.Ap…" api 3 seconds ago Up 1 second (health: starting) 8080/tcp
|
||||
mtusi2026lab3-api-6 messenger-lab3:local "dotnet Messenger.Ap…" api 3 seconds ago Up 1 second (health: starting) 8080/tcp
|
||||
mtusi2026lab3-lb-1 haproxy:3.2.7-alpine "docker-entrypoint.s…" lb 22 minutes ago Up About a minute (healthy) 127.0.0.1:18080->8080/tcp
|
||||
mtusi2026lab3-migrate-1 messenger-lab3:local "dotnet Messenger.Ap…" migrate About a minute ago Exited (0) 51 seconds ago
|
||||
mtusi2026lab3-postgres-1 postgres:17.6 "docker-entrypoint.s…" postgres 22 minutes ago Up About a minute (healthy) 5432/tcp
|
||||
mtusi2026lab3-redis-1 redis:7.4.2-alpine "docker-entrypoint.s…" redis 22 minutes ago Up About a minute (healthy) 6379/tcp
|
||||
.venv/bin/python student-tests/availability_tests.py --base-url "http://127.0.0.1:18080"
|
||||
Testing graceful stop of 7fc11b71698d
|
||||
Testing immediate stop of 8ff0d3425d06
|
||||
Building replacement image
|
||||
Testing sequential replacement under mixed traffic
|
||||
{
|
||||
"verified_at": "2026-11-01T23:10:36Z",
|
||||
"failures": [
|
||||
{
|
||||
"duration_seconds": 16.0121,
|
||||
"requested_seconds": 16,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 4700,
|
||||
"failed_requests": 8,
|
||||
"successful_rps": 293.528,
|
||||
"error_ratio": 0.001699,
|
||||
"successful_latency_ms": {
|
||||
"p50": 9.802,
|
||||
"p95": 80.053,
|
||||
"p99": 93.193
|
||||
},
|
||||
"all_attempt_latency_ms": {
|
||||
"p50": 9.81,
|
||||
"p95": 80.242,
|
||||
"p99": 94.732
|
||||
},
|
||||
"status_counts": {
|
||||
"200": 2346,
|
||||
"201": 2354,
|
||||
"503": 8
|
||||
},
|
||||
"instance_counts": {
|
||||
"3a26b3036963466ea997dc665b565926": 297,
|
||||
"33f1c8ae80d145809bfba32f4e5fd3a3": 4403
|
||||
},
|
||||
"actions": [
|
||||
{
|
||||
"started_after_seconds": 2.004297334002331,
|
||||
"finished_after_seconds": 2.3088578750030138,
|
||||
"result": {
|
||||
"container": "7fc11b71698d4aa93a2e58a38c671b16f7566f9290b83c965c5f430461ad96b9",
|
||||
"instance": "3a26b3036963466ea997dc665b565926",
|
||||
"running_after_action": false
|
||||
}
|
||||
}
|
||||
],
|
||||
"observations": [],
|
||||
"mode": "graceful",
|
||||
"recovery_seconds": 1.117,
|
||||
"integrity": {
|
||||
"confirmed_writes": 2354,
|
||||
"stored_messages": 2354,
|
||||
"no_duplicate_text": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"duration_seconds": 16.0367,
|
||||
"requested_seconds": 16,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 4730,
|
||||
"failed_requests": 11,
|
||||
"successful_rps": 294.948,
|
||||
"error_ratio": 0.00232,
|
||||
"successful_latency_ms": {
|
||||
"p50": 9.718,
|
||||
"p95": 78.168,
|
||||
"p99": 90.788
|
||||
},
|
||||
"all_attempt_latency_ms": {
|
||||
"p50": 9.732,
|
||||
"p95": 78.319,
|
||||
"p99": 91.752
|
||||
},
|
||||
"status_counts": {
|
||||
"200": 2359,
|
||||
"201": 2371,
|
||||
"0": 6,
|
||||
"503": 5
|
||||
},
|
||||
"instance_counts": {
|
||||
"03a65831924146bf98b9c8beabd73235": 4403,
|
||||
"33f1c8ae80d145809bfba32f4e5fd3a3": 327
|
||||
},
|
||||
"actions": [
|
||||
{
|
||||
"started_after_seconds": 2.002569542004494,
|
||||
"finished_after_seconds": 2.2908867499791086,
|
||||
"result": {
|
||||
"container": "8ff0d3425d061df5856f28e93605421c22d64f07cfa48379444f73583be84b8f",
|
||||
"instance": "33f1c8ae80d145809bfba32f4e5fd3a3",
|
||||
"running_after_action": false
|
||||
}
|
||||
}
|
||||
],
|
||||
"observations": [],
|
||||
"mode": "immediate",
|
||||
"recovery_seconds": 0.304,
|
||||
"integrity": {
|
||||
"confirmed_writes": 2371,
|
||||
"stored_messages": 2371,
|
||||
"no_duplicate_text": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"rolling_update": {
|
||||
"duration_seconds": 45.0733,
|
||||
"requested_seconds": 45,
|
||||
"concurrency": 8,
|
||||
"successful_requests": 12960,
|
||||
"failed_requests": 0,
|
||||
"successful_rps": 287.532,
|
||||
"error_ratio": 0.0,
|
||||
"successful_latency_ms": {
|
||||
"p50": 11.354,
|
||||
"p95": 80.201,
|
||||
"p99": 103.951
|
||||
},
|
||||
"all_attempt_latency_ms": {
|
||||
"p50": 11.354,
|
||||
"p95": 80.201,
|
||||
"p99": 103.951
|
||||
},
|
||||
"status_counts": {
|
||||
"200": 6480,
|
||||
"201": 6480
|
||||
},
|
||||
"instance_counts": {
|
||||
"854205519c6a49eaba8112473f0050e2": 1032,
|
||||
"03a65831924146bf98b9c8beabd73235": 635,
|
||||
"5215daa9aa9e48b193bdf64ff314ff2d": 5823,
|
||||
"3983ae67ecf94704a04dce24f8174384": 5470
|
||||
},
|
||||
"actions": [
|
||||
{
|
||||
"started_after_seconds": 2.0046813749941066,
|
||||
"finished_after_seconds": 11.803809415985597,
|
||||
"result": [
|
||||
{
|
||||
"old_container": "7fc11b71698d4aa93a2e58a38c671b16f7566f9290b83c965c5f430461ad96b9",
|
||||
"old_instance": "03a65831924146bf98b9c8beabd73235",
|
||||
"old_image": "sha256:7d07e2377a2c575fa2db59d2cee807c2e24a2e8c37a54c8df6b3714a58b0516f",
|
||||
"new_container": "8b7f4d1da142af7d0af4cbc6d2c2b85dff74e46c2e9c86c1be2ee99524ecc748",
|
||||
"new_instance": "5215daa9aa9e48b193bdf64ff314ff2d",
|
||||
"new_image": "sha256:9498c2a6ccbbd5ed5b31a80ea7bfe8c8d4e477a5b667f8cd93b1d8947876ed0c"
|
||||
},
|
||||
{
|
||||
"old_container": "8ff0d3425d061df5856f28e93605421c22d64f07cfa48379444f73583be84b8f",
|
||||
"old_instance": "854205519c6a49eaba8112473f0050e2",
|
||||
"old_image": "sha256:7d07e2377a2c575fa2db59d2cee807c2e24a2e8c37a54c8df6b3714a58b0516f",
|
||||
"new_container": "d23b99a781064bdd4221cbdcab862b83ab6f1928f41ba0fa18c3ad25a4c6400d",
|
||||
"new_instance": "3983ae67ecf94704a04dce24f8174384",
|
||||
"new_image": "sha256:9498c2a6ccbbd5ed5b31a80ea7bfe8c8d4e477a5b667f8cd93b1d8947876ed0c"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"observations": [],
|
||||
"integrity": {
|
||||
"confirmed_writes": 6480,
|
||||
"stored_messages": 6480,
|
||||
"no_duplicate_text": true
|
||||
}
|
||||
},
|
||||
"infrastructure": {
|
||||
"api_ports_published": false,
|
||||
"api_containers": [
|
||||
{
|
||||
"id": "8b7f4d1da142af7d0af4cbc6d2c2b85dff74e46c2e9c86c1be2ee99524ecc748",
|
||||
"image": "sha256:9498c2a6ccbbd5ed5b31a80ea7bfe8c8d4e477a5b667f8cd93b1d8947876ed0c",
|
||||
"cpu_limit": 1.0,
|
||||
"memory_limit": 402653184
|
||||
},
|
||||
{
|
||||
"id": "d23b99a781064bdd4221cbdcab862b83ab6f1928f41ba0fa18c3ad25a4c6400d",
|
||||
"image": "sha256:9498c2a6ccbbd5ed5b31a80ea7bfe8c8d4e477a5b667f8cd93b1d8947876ed0c",
|
||||
"cpu_limit": 1.0,
|
||||
"memory_limit": 402653184
|
||||
}
|
||||
],
|
||||
"migrations": "1,2"
|
||||
}
|
||||
}
|
||||
|
||||
$ make research-grade5
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi2026lab3-api-7 messenger-lab3:local "dotnet Messenger.Ap…" api 45 seconds ago Up 43 seconds (healthy) 8080/tcp
|
||||
mtusi2026lab3-api-8 messenger-lab3:local "dotnet Messenger.Ap…" api 40 seconds ago Up 39 seconds (healthy) 8080/tcp
|
||||
mtusi2026lab3-lb-1 haproxy:3.2.7-alpine "docker-entrypoint.s…" lb 24 minutes ago Up 3 minutes (healthy) 127.0.0.1:18080->8080/tcp
|
||||
mtusi2026lab3-migrate-1 sha256:7d07e2377a2c575fa2db59d2cee807c2e24a2e8c37a54c8df6b3714a58b0516f "dotnet Messenger.Ap…" migrate 3 minutes ago Exited (0) 2 minutes ago
|
||||
mtusi2026lab3-postgres-1 postgres:17.6 "docker-entrypoint.s…" postgres 24 minutes ago Up 3 minutes (healthy) 5432/tcp
|
||||
mtusi2026lab3-redis-1 redis:7.4.2-alpine "docker-entrypoint.s…" redis 24 minutes ago Up 3 minutes (healthy) 6379/tcp
|
||||
.venv/bin/python student-tests/scaling_research.py --base-url "http://127.0.0.1:18080"
|
||||
Configuring fixed: 1 API, 1.0 CPU/768 MiB each
|
||||
fixed-1, C=4, trial=1: 218.93 RPS, p95=71.57 ms, errors=0
|
||||
fixed-1, C=4, trial=2: 227.971 RPS, p95=64.744 ms, errors=0
|
||||
fixed-1, C=4, trial=3: 244.862 RPS, p95=69.017 ms, errors=0
|
||||
fixed-1, C=16, trial=4: 274.184 RPS, p95=103.592 ms, errors=0
|
||||
fixed-1, C=16, trial=5: 282.779 RPS, p95=100.604 ms, errors=0
|
||||
fixed-1, C=16, trial=6: 275.06 RPS, p95=103.552 ms, errors=0
|
||||
fixed-1, C=64, trial=7: 308.337 RPS, p95=303.245 ms, errors=0
|
||||
fixed-1, C=64, trial=8: 287.415 RPS, p95=391.411 ms, errors=0
|
||||
fixed-1, C=64, trial=9: 302.941 RPS, p95=307.507 ms, errors=0
|
||||
Configuring fixed: 2 API, 0.5 CPU/384 MiB each
|
||||
fixed-2, C=64, trial=10: 296.067 RPS, p95=406.547 ms, errors=0
|
||||
fixed-2, C=64, trial=11: 275.592 RPS, p95=456.591 ms, errors=0
|
||||
fixed-2, C=64, trial=12: 270.695 RPS, p95=493.392 ms, errors=0
|
||||
fixed-2, C=16, trial=13: 251.76 RPS, p95=161.718 ms, errors=0
|
||||
fixed-2, C=16, trial=14: 267.997 RPS, p95=106.101 ms, errors=0
|
||||
fixed-2, C=16, trial=15: 284.831 RPS, p95=101.227 ms, errors=0
|
||||
fixed-2, C=4, trial=16: 259.315 RPS, p95=65.439 ms, errors=0
|
||||
fixed-2, C=4, trial=17: 232.474 RPS, p95=68.486 ms, errors=0
|
||||
fixed-2, C=4, trial=18: 220.536 RPS, p95=68.443 ms, errors=0
|
||||
Configuring fixed: 4 API, 0.25 CPU/192 MiB each
|
||||
fixed-4, C=4, trial=19: 146.161 RPS, p95=87.818 ms, errors=0
|
||||
fixed-4, C=4, trial=20: 116.282 RPS, p95=102.574 ms, errors=0
|
||||
fixed-4, C=4, trial=21: 124.453 RPS, p95=102.817 ms, errors=0
|
||||
fixed-4, C=16, trial=22: 197.706 RPS, p95=226.847 ms, errors=0
|
||||
fixed-4, C=16, trial=23: 227.163 RPS, p95=202.483 ms, errors=0
|
||||
fixed-4, C=16, trial=24: 231.947 RPS, p95=221.725 ms, errors=0
|
||||
fixed-4, C=64, trial=25: 234.342 RPS, p95=577.561 ms, errors=0
|
||||
fixed-4, C=64, trial=26: 232.131 RPS, p95=682.007 ms, errors=0
|
||||
fixed-4, C=64, trial=27: 247.101 RPS, p95=501.88 ms, errors=0
|
||||
Configuring growing: 1 API, 1 CPU/384 MiB each
|
||||
growing-1, C=4, trial=28: 258.723 RPS, p95=62.134 ms, errors=0
|
||||
growing-1, C=4, trial=29: 239.539 RPS, p95=63.995 ms, errors=0
|
||||
growing-1, C=4, trial=30: 250.297 RPS, p95=65.691 ms, errors=0
|
||||
growing-1, C=16, trial=31: 299.464 RPS, p95=101.129 ms, errors=0
|
||||
growing-1, C=16, trial=32: 292.921 RPS, p95=102.186 ms, errors=0
|
||||
growing-1, C=16, trial=33: 282.668 RPS, p95=104.612 ms, errors=0
|
||||
growing-1, C=64, trial=34: 303.063 RPS, p95=390.498 ms, errors=0
|
||||
growing-1, C=64, trial=35: 285.691 RPS, p95=312.428 ms, errors=0
|
||||
growing-1, C=64, trial=36: 296.505 RPS, p95=386.697 ms, errors=0
|
||||
Configuring growing: 2 API, 1 CPU/384 MiB each
|
||||
growing-2, C=64, trial=37: 269.672 RPS, p95=410.645 ms, errors=0
|
||||
growing-2, C=64, trial=38: 282.83 RPS, p95=396.819 ms, errors=0
|
||||
growing-2, C=64, trial=39: 268.931 RPS, p95=488.041 ms, errors=0
|
||||
growing-2, C=16, trial=40: 258.069 RPS, p95=109.077 ms, errors=0
|
||||
growing-2, C=16, trial=41: 261.656 RPS, p95=107.965 ms, errors=0
|
||||
growing-2, C=16, trial=42: 273.803 RPS, p95=103.887 ms, errors=0
|
||||
growing-2, C=4, trial=43: 250.42 RPS, p95=67.655 ms, errors=0
|
||||
growing-2, C=4, trial=44: 269.121 RPS, p95=63.087 ms, errors=0
|
||||
growing-2, C=4, trial=45: 260.993 RPS, p95=65.864 ms, errors=0
|
||||
Configuring growing: 4 API, 1 CPU/384 MiB each
|
||||
growing-4, C=4, trial=46: 250.31 RPS, p95=46.464 ms, errors=0
|
||||
growing-4, C=4, trial=47: 245.033 RPS, p95=51.051 ms, errors=0
|
||||
growing-4, C=4, trial=48: 185.652 RPS, p95=70.995 ms, errors=0
|
||||
growing-4, C=16, trial=49: 223.252 RPS, p95=176.455 ms, errors=0
|
||||
growing-4, C=16, trial=50: 236.934 RPS, p95=108.311 ms, errors=0
|
||||
growing-4, C=16, trial=51: 249.622 RPS, p95=111.575 ms, errors=0
|
||||
growing-4, C=64, trial=52: 91.187 RPS, p95=1715.727 ms, errors=21
|
||||
growing-4, C=64, trial=53: 182.5 RPS, p95=894.66 ms, errors=0
|
||||
growing-4, C=64, trial=54: 229.551 RPS, p95=592.614 ms, errors=0
|
||||
separate, C=16, trial=55: 144.195 RPS, p95=205.051 ms, errors=0
|
||||
batched, C=16, trial=56: 179.536 RPS, p95=195.014 ms, errors=0
|
||||
batched, C=16, trial=57: 219.126 RPS, p95=111.847 ms, errors=0
|
||||
separate, C=16, trial=58: 244.459 RPS, p95=108.102 ms, errors=0
|
||||
separate, C=16, trial=59: 90.853 RPS, p95=109.924 ms, errors=984
|
||||
batched, C=16, trial=60: 272.021 RPS, p95=112.969 ms, errors=0
|
||||
postgres-half_cpu, C=64, trial=61: 217.905 RPS, p95=611.418 ms, errors=0
|
||||
postgres-one_cpu, C=64, trial=62: 313.186 RPS, p95=700.798 ms, errors=0
|
||||
postgres-one_cpu, C=64, trial=63: 395.521 RPS, p95=333.666 ms, errors=0
|
||||
postgres-half_cpu, C=64, trial=64: 143.112 RPS, p95=1622.857 ms, errors=40
|
||||
postgres-half_cpu, C=64, trial=65: 289.64 RPS, p95=482.532 ms, errors=0
|
||||
postgres-one_cpu, C=64, trial=66: 528.555 RPS, p95=249.648 ms, errors=0
|
||||
PASS: scaling research saved to evidence/scaling.json and docs/SCALING.md
|
||||
|
||||
$ make test
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi2026lab3-api-7 messenger-lab3:local "dotnet Messenger.Ap…" api 7 seconds ago Up 5 seconds (healthy) 8080/tcp
|
||||
mtusi2026lab3-api-8 messenger-lab3:local "dotnet Messenger.Ap…" api 7 seconds ago Up 5 seconds (healthy) 8080/tcp
|
||||
mtusi2026lab3-lb-1 haproxy:3.2.7-alpine "docker-entrypoint.s…" lb 55 minutes ago Up 34 minutes (healthy) 127.0.0.1:18080->8080/tcp
|
||||
mtusi2026lab3-migrate-1 sha256:7d07e2377a2c575fa2db59d2cee807c2e24a2e8c37a54c8df6b3714a58b0516f "dotnet Messenger.Ap…" migrate 34 minutes ago Exited (0) 34 minutes ago
|
||||
mtusi2026lab3-postgres-1 postgres:17.6 "docker-entrypoint.s…" postgres 55 minutes ago Up 34 minutes (healthy) 5432/tcp
|
||||
mtusi2026lab3-redis-1 redis:7.4.2-alpine "docker-entrypoint.s…" redis 55 minutes ago Up 34 minutes (healthy) 6379/tcp
|
||||
.venv/bin/python tests/smoke.py --base-url "http://127.0.0.1:18080"
|
||||
PASS: lab3 public API scenario; infrastructure and grading evidence remain separate.
|
||||
|
||||
$ make student-test
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi2026lab3-api-7 messenger-lab3:local "dotnet Messenger.Ap…" api 18 seconds ago Up 16 seconds (healthy) 8080/tcp
|
||||
mtusi2026lab3-api-8 messenger-lab3:local "dotnet Messenger.Ap…" api 18 seconds ago Up 15 seconds (healthy) 8080/tcp
|
||||
mtusi2026lab3-lb-1 haproxy:3.2.7-alpine "docker-entrypoint.s…" lb 55 minutes ago Up 34 minutes (healthy) 127.0.0.1:18080->8080/tcp
|
||||
mtusi2026lab3-migrate-1 sha256:7d07e2377a2c575fa2db59d2cee807c2e24a2e8c37a54c8df6b3714a58b0516f "dotnet Messenger.Ap…" migrate 34 minutes ago Exited (0) 34 minutes ago
|
||||
mtusi2026lab3-postgres-1 postgres:17.6 "docker-entrypoint.s…" postgres 55 minutes ago Up 34 minutes (healthy) 5432/tcp
|
||||
mtusi2026lab3-redis-1 redis:7.4.2-alpine "docker-entrypoint.s…" redis 55 minutes ago Up 34 minutes (healthy) 6379/tcp
|
||||
.venv/bin/python student-tests/lab3_tests.py --base-url "http://127.0.0.1:18080"
|
||||
{
|
||||
"verified_at": "2026-11-01T23:44:11Z",
|
||||
"instances": [
|
||||
"7da2ce5fbaef4b6ab454444dede336a4",
|
||||
"827df2496f144a13acef36f7874bd549"
|
||||
],
|
||||
"replay_instances": [
|
||||
"7da2ce5fbaef4b6ab454444dede336a4",
|
||||
"827df2496f144a13acef36f7874bd549"
|
||||
],
|
||||
"api_containers": [
|
||||
"1b44a4bde083782dc07960bb4c1f30ecb3cdb02c39f61ac694b736660cdcf1ab",
|
||||
"1693de1f22081acc2fc8c24b7eb2f9d7696d3c5589f7b287c28aad2abfbdab21"
|
||||
],
|
||||
"checks": [
|
||||
"one session served by at least two API processes",
|
||||
"32 concurrent requests across replicas create one message; absent attachments equals []",
|
||||
"changed body conflicts; user/chat scopes are independent; access rechecked",
|
||||
"24-hour expiry stored in PostgreSQL; expired key can be reused",
|
||||
"5xx rolls back message and key together; retry succeeds",
|
||||
"revoked token cannot replay an existing result"
|
||||
]
|
||||
}
|
||||
|
||||
$ make test-ui
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi2026lab3-api-7 messenger-lab3:local "dotnet Messenger.Ap…" api 28 seconds ago Up 26 seconds (healthy) 8080/tcp
|
||||
mtusi2026lab3-api-8 messenger-lab3:local "dotnet Messenger.Ap…" api 28 seconds ago Up 25 seconds (healthy) 8080/tcp
|
||||
mtusi2026lab3-lb-1 haproxy:3.2.7-alpine "docker-entrypoint.s…" lb 55 minutes ago Up 35 minutes (healthy) 127.0.0.1:18080->8080/tcp
|
||||
mtusi2026lab3-migrate-1 sha256:7d07e2377a2c575fa2db59d2cee807c2e24a2e8c37a54c8df6b3714a58b0516f "dotnet Messenger.Ap…" migrate 35 minutes ago Exited (0) 34 minutes ago
|
||||
mtusi2026lab3-postgres-1 postgres:17.6 "docker-entrypoint.s…" postgres 55 minutes ago Up 35 minutes (healthy) 5432/tcp
|
||||
mtusi2026lab3-redis-1 redis:7.4.2-alpine "docker-entrypoint.s…" redis 55 minutes ago Up 35 minutes (healthy) 6379/tcp
|
||||
.venv/bin/python student-tests/ui_api_tests.py --base-url "http://127.0.0.1:18080"
|
||||
PASS: UI authentication, privacy, newest page, backwards pagination, cursor isolation; required API stays ascending
|
||||
|
||||
PASS: Lab3 checks completed
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"verified_at": "2026-11-01T23:10:18Z",
|
||||
"instances": [
|
||||
"a57245197fc24e26bfb9c3a7ec513ca3",
|
||||
"cc49c15f31074b10b0011dc1efad2340"
|
||||
],
|
||||
"replay_instances": [
|
||||
"a57245197fc24e26bfb9c3a7ec513ca3",
|
||||
"cc49c15f31074b10b0011dc1efad2340"
|
||||
],
|
||||
"api_containers": [
|
||||
"57e71884095f659c5717368a4cc583391c4bfff12193916a6494de4ccb29372f",
|
||||
"02b139a5546a98631290e8c341d129dabbf47cc67e0fa4079eb0ac76a34d63b1"
|
||||
],
|
||||
"checks": [
|
||||
"one session served by at least two API processes",
|
||||
"32 concurrent requests across replicas create one message; absent attachments equals []",
|
||||
"changed body conflicts; user/chat scopes are independent; access rechecked",
|
||||
"24-hour expiry stored in PostgreSQL; expired key can be reused",
|
||||
"5xx rolls back message and key together; retry succeeds",
|
||||
"revoked token cannot replay an existing result"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"verified_at": "2026-11-01T23:10:04Z",
|
||||
"instances": [
|
||||
"a73011a405974f049c4657cd9012353c",
|
||||
"f31a70a93690433f800e24ab887fadcc"
|
||||
],
|
||||
"replay_instances": [
|
||||
"a73011a405974f049c4657cd9012353c",
|
||||
"f31a70a93690433f800e24ab887fadcc"
|
||||
],
|
||||
"api_containers": [
|
||||
"fba3c592906dee4a49eb13dadcc8f5312774b867174ac16affa2667942bdf8c4",
|
||||
"251c4a8ff6aca5e1a37f6e2201e47e8c7da9ecef47c3484d63ee52dd892fa440"
|
||||
],
|
||||
"checks": [
|
||||
"one session served by at least two API processes",
|
||||
"32 concurrent requests across replicas create one message; absent attachments equals []",
|
||||
"changed body conflicts; user/chat scopes are independent; access rechecked",
|
||||
"24-hour expiry stored in PostgreSQL; expired key can be reused",
|
||||
"5xx rolls back message and key together; retry succeeds",
|
||||
"revoked token cannot replay an existing result"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"verified_at": "2026-11-02T15:55:17Z",
|
||||
"instances": [
|
||||
"a90e2f2fe96c4709966c68fa58e30a02",
|
||||
"f7bb77e4b20b497899f2a19da390afa1"
|
||||
],
|
||||
"replay_instances": [
|
||||
"a90e2f2fe96c4709966c68fa58e30a02",
|
||||
"f7bb77e4b20b497899f2a19da390afa1"
|
||||
],
|
||||
"api_containers": [
|
||||
"df9cf46dbd370689d41f904dd4e2a452d71b6c0cac1eb67d02251e4d410c446b",
|
||||
"72b18d455e884343b8fa54ae9e52da344e5012b461a26014ad7bed8184edd98d"
|
||||
],
|
||||
"checks": [
|
||||
"one session served by at least two API processes",
|
||||
"32 concurrent requests across replicas create one message; absent attachments equals []",
|
||||
"changed body conflicts; user/chat scopes are independent; access rechecked",
|
||||
"24-hour expiry stored in PostgreSQL; expired key can be reused",
|
||||
"5xx rolls back message and key together; retry succeeds",
|
||||
"revoked token cannot replay an existing result"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
Container mtusi2026lab3-postgres-1 Restarting
|
||||
Container mtusi2026lab3-redis-1 Restarting
|
||||
Container mtusi2026lab3-redis-1 Started
|
||||
Container mtusi2026lab3-postgres-1 Started
|
||||
Container mtusi2026lab3-postgres-1 Running
|
||||
Container mtusi2026lab3-redis-1 Running
|
||||
Container mtusi2026lab3-postgres-1 Waiting
|
||||
Container mtusi2026lab3-redis-1 Waiting
|
||||
Container mtusi2026lab3-redis-1 Healthy
|
||||
Container mtusi2026lab3-postgres-1 Healthy
|
||||
Container mtusi2026lab3-api-8 Restarting
|
||||
Container mtusi2026lab3-api-7 Restarting
|
||||
Container mtusi2026lab3-lb-1 Restarting
|
||||
Container mtusi2026lab3-lb-1 Started
|
||||
Container mtusi2026lab3-api-8 Started
|
||||
Container mtusi2026lab3-api-7 Started
|
||||
Container mtusi2026lab3-api-7 Running
|
||||
Container mtusi2026lab3-api-8 Running
|
||||
Container mtusi2026lab3-lb-1 Running
|
||||
Container mtusi2026lab3-postgres-1 Running
|
||||
Container mtusi2026lab3-redis-1 Running
|
||||
Container mtusi2026lab3-migrate-1 Recreate
|
||||
Container mtusi2026lab3-migrate-1 Recreated
|
||||
Container mtusi2026lab3-postgres-1 Waiting
|
||||
Container mtusi2026lab3-postgres-1 Healthy
|
||||
Container mtusi2026lab3-migrate-1 Starting
|
||||
Container mtusi2026lab3-migrate-1 Started
|
||||
Container mtusi2026lab3-redis-1 Waiting
|
||||
Container mtusi2026lab3-migrate-1 Waiting
|
||||
Container mtusi2026lab3-redis-1 Healthy
|
||||
Container mtusi2026lab3-migrate-1 Exited
|
||||
Container mtusi2026lab3-api-7 Waiting
|
||||
Container mtusi2026lab3-api-8 Waiting
|
||||
Container mtusi2026lab3-api-7 Healthy
|
||||
Container mtusi2026lab3-api-8 Healthy
|
||||
Container mtusi2026lab3-postgres-1 Waiting
|
||||
Container mtusi2026lab3-redis-1 Waiting
|
||||
Container mtusi2026lab3-migrate-1 Waiting
|
||||
Container mtusi2026lab3-api-7 Waiting
|
||||
Container mtusi2026lab3-api-8 Waiting
|
||||
Container mtusi2026lab3-lb-1 Waiting
|
||||
Container mtusi2026lab3-redis-1 Healthy
|
||||
Container mtusi2026lab3-lb-1 Healthy
|
||||
Container mtusi2026lab3-migrate-1 Exited
|
||||
Container mtusi2026lab3-postgres-1 Healthy
|
||||
Container mtusi2026lab3-api-7 Healthy
|
||||
Container mtusi2026lab3-api-8 Healthy
|
||||
PASS: all services restarted, original token and key replayed, one message, logout 401
|
||||
@@ -0,0 +1,85 @@
|
||||
{
|
||||
"verified_at": "2026-11-02T00:34:26Z",
|
||||
"before": {
|
||||
"postgres": [
|
||||
{
|
||||
"container": "7686673cedd3ea53ff051dc21d1da6b12b7d3657c0a9f71f9cc4e9ef47f38573",
|
||||
"started_at": "2026-11-01T23:09:06.905000722Z",
|
||||
"volumes": [
|
||||
"mtusi2026lab3_postgres_data"
|
||||
]
|
||||
}
|
||||
],
|
||||
"redis": [
|
||||
{
|
||||
"container": "521be7d42d5dc72bfb94127f11fff1f36bcd68e5bb6313485920fe5af95855f5",
|
||||
"started_at": "2026-11-01T23:09:06.614997138Z",
|
||||
"volumes": [
|
||||
"127d454245a4f45010007d5a45966b3edb660f38f82206b8362ce356e3309b8c"
|
||||
]
|
||||
}
|
||||
],
|
||||
"api": [
|
||||
{
|
||||
"container": "1b44a4bde083782dc07960bb4c1f30ecb3cdb02c39f61ac694b736660cdcf1ab",
|
||||
"started_at": "2026-11-01T23:43:44.988315088Z",
|
||||
"volumes": []
|
||||
},
|
||||
{
|
||||
"container": "1693de1f22081acc2fc8c24b7eb2f9d7696d3c5589f7b287c28aad2abfbdab21",
|
||||
"started_at": "2026-11-01T23:43:45.279696796Z",
|
||||
"volumes": []
|
||||
}
|
||||
],
|
||||
"lb": [
|
||||
{
|
||||
"container": "a1944ce6b67510a37014bff5ac0ea33abf867d01270ae72c2a2d987c0c2b57d8",
|
||||
"started_at": "2026-11-01T23:09:09.663459167Z",
|
||||
"volumes": []
|
||||
}
|
||||
]
|
||||
},
|
||||
"after": {
|
||||
"postgres": [
|
||||
{
|
||||
"container": "7686673cedd3ea53ff051dc21d1da6b12b7d3657c0a9f71f9cc4e9ef47f38573",
|
||||
"started_at": "2026-11-02T00:34:17.2162673Z",
|
||||
"volumes": [
|
||||
"mtusi2026lab3_postgres_data"
|
||||
]
|
||||
}
|
||||
],
|
||||
"redis": [
|
||||
{
|
||||
"container": "521be7d42d5dc72bfb94127f11fff1f36bcd68e5bb6313485920fe5af95855f5",
|
||||
"started_at": "2026-11-02T00:34:17.077376384Z",
|
||||
"volumes": [
|
||||
"127d454245a4f45010007d5a45966b3edb660f38f82206b8362ce356e3309b8c"
|
||||
]
|
||||
}
|
||||
],
|
||||
"api": [
|
||||
{
|
||||
"container": "1b44a4bde083782dc07960bb4c1f30ecb3cdb02c39f61ac694b736660cdcf1ab",
|
||||
"started_at": "2026-11-02T00:34:20.232257302Z",
|
||||
"volumes": []
|
||||
},
|
||||
{
|
||||
"container": "1693de1f22081acc2fc8c24b7eb2f9d7696d3c5589f7b287c28aad2abfbdab21",
|
||||
"started_at": "2026-11-02T00:34:20.185168635Z",
|
||||
"volumes": []
|
||||
}
|
||||
],
|
||||
"lb": [
|
||||
{
|
||||
"container": "a1944ce6b67510a37014bff5ac0ea33abf867d01270ae72c2a2d987c0c2b57d8",
|
||||
"started_at": "2026-11-02T00:34:20.159904968Z",
|
||||
"volumes": []
|
||||
}
|
||||
]
|
||||
},
|
||||
"same_token": true,
|
||||
"same_message": true,
|
||||
"replay_without_duplicates": true,
|
||||
"logout_status": 401
|
||||
}
|
||||
Binary file not shown.
+15787
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
After Width: | Height: | Size: 187 KiB |
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 82 KiB |
Reference in New Issue
Block a user