lab3
This commit is contained in:
@@ -0,0 +1,83 @@
|
||||
[
|
||||
{
|
||||
"id": "12b697ef94f3be33cc73e4aeda1d15484b55c8e257411253d66bf1083b6d7d15",
|
||||
"name": "mtusi2026lab3-api-1",
|
||||
"hostname": "12b697ef94f3",
|
||||
"service": "api",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:18:21.173524533Z",
|
||||
"cpu_limit": 1.0,
|
||||
"memory_limit_bytes": 268435456,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "67a7ac749a9470e0c4ddeb63e4e6f4b9d29c3478754eec4b2b4f890aac5435b9",
|
||||
"name": "mtusi2026lab3-api-2",
|
||||
"hostname": "67a7ac749a94",
|
||||
"service": "api",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:18:21.568086583Z",
|
||||
"cpu_limit": 1.0,
|
||||
"memory_limit_bytes": 268435456,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "3549b02e000b9cdf992460cd7a094dc7e4633025684356185ae7101f47da92c0",
|
||||
"name": "mtusi2026lab3-cache-1",
|
||||
"hostname": "3549b02e000b",
|
||||
"service": "cache",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:18:14.359548516Z",
|
||||
"cpu_limit": 0.5,
|
||||
"memory_limit_bytes": 134217728,
|
||||
"published_ports": {
|
||||
"6379/tcp": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "08d464eda0d8f96c636092caa5da13604709e95636cab46b5039aa1328d49b63",
|
||||
"name": "mtusi2026lab3-db-1",
|
||||
"hostname": "08d464eda0d8",
|
||||
"service": "db",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:18:14.359588699Z",
|
||||
"cpu_limit": 1.0,
|
||||
"memory_limit_bytes": 536870912,
|
||||
"published_ports": {
|
||||
"5432/tcp": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "887f07a19c48f53fec2e53076d2a6bbece3345f58d512b2c80c1f768dcee3a1e",
|
||||
"name": "mtusi2026lab3-lb-1",
|
||||
"hostname": "887f07a19c48",
|
||||
"service": "lb",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:18:24.755095627Z",
|
||||
"cpu_limit": 0.5,
|
||||
"memory_limit_bytes": 134217728,
|
||||
"published_ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "8080"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "ebfb1caed752e639ea50fae62b0c09dbe0cad29661a9d8e69d7d6dc4c80f833e",
|
||||
"name": "mtusi2026lab3-migrate-1",
|
||||
"hostname": "ebfb1caed752",
|
||||
"service": "migrate",
|
||||
"running": false,
|
||||
"started_at": "2026-10-12T17:16:12.954388922Z",
|
||||
"cpu_limit": 0.5,
|
||||
"memory_limit_bytes": 134217728,
|
||||
"published_ports": {}
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,83 @@
|
||||
[
|
||||
{
|
||||
"id": "1b73eb7fa6e21b533fa50dc11e2acd58f5f4ec016f033facf08cff6e7f9f8a07",
|
||||
"name": "mtusi2026lab3-api-1",
|
||||
"hostname": "1b73eb7fa6e2",
|
||||
"service": "api",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:16:16.271508624Z",
|
||||
"cpu_limit": 1.0,
|
||||
"memory_limit_bytes": 268435456,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "83c7a9707bb9ae44c8b7d3db3c7ec7f8d8adcc50911d15e1ee29f5a0b816e8af",
|
||||
"name": "mtusi2026lab3-api-2",
|
||||
"hostname": "83c7a9707bb9",
|
||||
"service": "api",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:16:15.860908952Z",
|
||||
"cpu_limit": 1.0,
|
||||
"memory_limit_bytes": 268435456,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "3549b02e000b9cdf992460cd7a094dc7e4633025684356185ae7101f47da92c0",
|
||||
"name": "mtusi2026lab3-cache-1",
|
||||
"hostname": "3549b02e000b",
|
||||
"service": "cache",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:16:08.112136813Z",
|
||||
"cpu_limit": 0.5,
|
||||
"memory_limit_bytes": 134217728,
|
||||
"published_ports": {
|
||||
"6379/tcp": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "08d464eda0d8f96c636092caa5da13604709e95636cab46b5039aa1328d49b63",
|
||||
"name": "mtusi2026lab3-db-1",
|
||||
"hostname": "08d464eda0d8",
|
||||
"service": "db",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:16:08.112101628Z",
|
||||
"cpu_limit": 1.0,
|
||||
"memory_limit_bytes": 536870912,
|
||||
"published_ports": {
|
||||
"5432/tcp": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "e5ed4c393124c27053b4f69320586bb57c2cc549d4328cf9cd813e518fa2baad",
|
||||
"name": "mtusi2026lab3-lb-1",
|
||||
"hostname": "e5ed4c393124",
|
||||
"service": "lb",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:16:19.366531525Z",
|
||||
"cpu_limit": 0.5,
|
||||
"memory_limit_bytes": 134217728,
|
||||
"published_ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "8080"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "ebfb1caed752e639ea50fae62b0c09dbe0cad29661a9d8e69d7d6dc4c80f833e",
|
||||
"name": "mtusi2026lab3-migrate-1",
|
||||
"hostname": "ebfb1caed752",
|
||||
"service": "migrate",
|
||||
"running": false,
|
||||
"started_at": "2026-10-12T17:16:12.954388922Z",
|
||||
"cpu_limit": 0.5,
|
||||
"memory_limit_bytes": 134217728,
|
||||
"published_ports": {}
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,83 @@
|
||||
[
|
||||
{
|
||||
"id": "c561f6e5eb62d94ddf6ca4bc28cf419147df5f6424165930b96eeb88ec81adb7",
|
||||
"name": "mtusi2026lab3-api-6",
|
||||
"hostname": "c561f6e5eb62",
|
||||
"service": "api",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:49:44.571149204Z",
|
||||
"cpu_limit": 1.0,
|
||||
"memory_limit_bytes": 268435456,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "d10f701f2c07a02dd3a83c077394d24d3b7592451979e143b7abcb7ad36353eb",
|
||||
"name": "mtusi2026lab3-api-7",
|
||||
"hostname": "d10f701f2c07",
|
||||
"service": "api",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:49:44.201147944Z",
|
||||
"cpu_limit": 1.0,
|
||||
"memory_limit_bytes": 268435456,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "3549b02e000b9cdf992460cd7a094dc7e4633025684356185ae7101f47da92c0",
|
||||
"name": "mtusi2026lab3-cache-1",
|
||||
"hostname": "3549b02e000b",
|
||||
"service": "cache",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:22:40.482739435Z",
|
||||
"cpu_limit": 0.5,
|
||||
"memory_limit_bytes": 134217728,
|
||||
"published_ports": {
|
||||
"6379/tcp": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "08d464eda0d8f96c636092caa5da13604709e95636cab46b5039aa1328d49b63",
|
||||
"name": "mtusi2026lab3-db-1",
|
||||
"hostname": "08d464eda0d8",
|
||||
"service": "db",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:22:48.133994931Z",
|
||||
"cpu_limit": 1.0,
|
||||
"memory_limit_bytes": 536870912,
|
||||
"published_ports": {
|
||||
"5432/tcp": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "887f07a19c48f53fec2e53076d2a6bbece3345f58d512b2c80c1f768dcee3a1e",
|
||||
"name": "mtusi2026lab3-lb-1",
|
||||
"hostname": "887f07a19c48",
|
||||
"service": "lb",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:18:24.755095627Z",
|
||||
"cpu_limit": 0.5,
|
||||
"memory_limit_bytes": 134217728,
|
||||
"published_ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "8080"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "ebfb1caed752e639ea50fae62b0c09dbe0cad29661a9d8e69d7d6dc4c80f833e",
|
||||
"name": "mtusi2026lab3-migrate-1",
|
||||
"hostname": "ebfb1caed752",
|
||||
"service": "migrate",
|
||||
"running": false,
|
||||
"started_at": "2026-10-12T17:20:06.265768415Z",
|
||||
"cpu_limit": 0.5,
|
||||
"memory_limit_bytes": 134217728,
|
||||
"published_ports": {}
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"redis": {
|
||||
"status": "PASS",
|
||||
"elapsed_seconds": 7.112801708000006
|
||||
},
|
||||
"postgres": {
|
||||
"status": "PASS",
|
||||
"readiness_and_request_status": [
|
||||
503,
|
||||
503
|
||||
]
|
||||
},
|
||||
"recovery": "old session and confirmed message preserved"
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"concurrent_requests": 32,
|
||||
"observed_instances": 2,
|
||||
"messages_after_race": 1,
|
||||
"conflict": 409,
|
||||
"invalid_key": 400,
|
||||
"logout": 401
|
||||
}
|
||||
@@ -0,0 +1,168 @@
|
||||
{
|
||||
"target": "67a7ac749a94:78bf43a5",
|
||||
"stopped_container": "67a7ac749a9470e0c4ddeb63e4e6f4b9d29c3478754eec4b2b4f890aac5435b9",
|
||||
"before": [
|
||||
{
|
||||
"id": "12b697ef94f3be33cc73e4aeda1d15484b55c8e257411253d66bf1083b6d7d15",
|
||||
"name": "mtusi2026lab3-api-1",
|
||||
"hostname": "12b697ef94f3",
|
||||
"service": "api",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:19:45.149692804Z",
|
||||
"cpu_limit": 1.0,
|
||||
"memory_limit_bytes": 268435456,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "67a7ac749a9470e0c4ddeb63e4e6f4b9d29c3478754eec4b2b4f890aac5435b9",
|
||||
"name": "mtusi2026lab3-api-2",
|
||||
"hostname": "67a7ac749a94",
|
||||
"service": "api",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:18:21.568086583Z",
|
||||
"cpu_limit": 1.0,
|
||||
"memory_limit_bytes": 268435456,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "3549b02e000b9cdf992460cd7a094dc7e4633025684356185ae7101f47da92c0",
|
||||
"name": "mtusi2026lab3-cache-1",
|
||||
"hostname": "3549b02e000b",
|
||||
"service": "cache",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:18:14.359548516Z",
|
||||
"cpu_limit": 0.5,
|
||||
"memory_limit_bytes": 134217728,
|
||||
"published_ports": {
|
||||
"6379/tcp": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "08d464eda0d8f96c636092caa5da13604709e95636cab46b5039aa1328d49b63",
|
||||
"name": "mtusi2026lab3-db-1",
|
||||
"hostname": "08d464eda0d8",
|
||||
"service": "db",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:18:14.359588699Z",
|
||||
"cpu_limit": 1.0,
|
||||
"memory_limit_bytes": 536870912,
|
||||
"published_ports": {
|
||||
"5432/tcp": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "887f07a19c48f53fec2e53076d2a6bbece3345f58d512b2c80c1f768dcee3a1e",
|
||||
"name": "mtusi2026lab3-lb-1",
|
||||
"hostname": "887f07a19c48",
|
||||
"service": "lb",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:18:24.755095627Z",
|
||||
"cpu_limit": 0.5,
|
||||
"memory_limit_bytes": 134217728,
|
||||
"published_ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "8080"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "ebfb1caed752e639ea50fae62b0c09dbe0cad29661a9d8e69d7d6dc4c80f833e",
|
||||
"name": "mtusi2026lab3-migrate-1",
|
||||
"hostname": "ebfb1caed752",
|
||||
"service": "migrate",
|
||||
"running": false,
|
||||
"started_at": "2026-10-12T17:19:42.176269661Z",
|
||||
"cpu_limit": 0.5,
|
||||
"memory_limit_bytes": 134217728,
|
||||
"published_ports": {}
|
||||
}
|
||||
],
|
||||
"after": [
|
||||
{
|
||||
"id": "12b697ef94f3be33cc73e4aeda1d15484b55c8e257411253d66bf1083b6d7d15",
|
||||
"name": "mtusi2026lab3-api-1",
|
||||
"hostname": "12b697ef94f3",
|
||||
"service": "api",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:19:45.149692804Z",
|
||||
"cpu_limit": 1.0,
|
||||
"memory_limit_bytes": 268435456,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "67a7ac749a9470e0c4ddeb63e4e6f4b9d29c3478754eec4b2b4f890aac5435b9",
|
||||
"name": "mtusi2026lab3-api-2",
|
||||
"hostname": "67a7ac749a94",
|
||||
"service": "api",
|
||||
"running": false,
|
||||
"started_at": "2026-10-12T17:18:21.568086583Z",
|
||||
"cpu_limit": 1.0,
|
||||
"memory_limit_bytes": 268435456,
|
||||
"published_ports": {}
|
||||
},
|
||||
{
|
||||
"id": "3549b02e000b9cdf992460cd7a094dc7e4633025684356185ae7101f47da92c0",
|
||||
"name": "mtusi2026lab3-cache-1",
|
||||
"hostname": "3549b02e000b",
|
||||
"service": "cache",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:18:14.359548516Z",
|
||||
"cpu_limit": 0.5,
|
||||
"memory_limit_bytes": 134217728,
|
||||
"published_ports": {
|
||||
"6379/tcp": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "08d464eda0d8f96c636092caa5da13604709e95636cab46b5039aa1328d49b63",
|
||||
"name": "mtusi2026lab3-db-1",
|
||||
"hostname": "08d464eda0d8",
|
||||
"service": "db",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:18:14.359588699Z",
|
||||
"cpu_limit": 1.0,
|
||||
"memory_limit_bytes": 536870912,
|
||||
"published_ports": {
|
||||
"5432/tcp": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "887f07a19c48f53fec2e53076d2a6bbece3345f58d512b2c80c1f768dcee3a1e",
|
||||
"name": "mtusi2026lab3-lb-1",
|
||||
"hostname": "887f07a19c48",
|
||||
"service": "lb",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:18:24.755095627Z",
|
||||
"cpu_limit": 0.5,
|
||||
"memory_limit_bytes": 134217728,
|
||||
"published_ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "8080"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "ebfb1caed752e639ea50fae62b0c09dbe0cad29661a9d8e69d7d6dc4c80f833e",
|
||||
"name": "mtusi2026lab3-migrate-1",
|
||||
"hostname": "ebfb1caed752",
|
||||
"service": "migrate",
|
||||
"running": false,
|
||||
"started_at": "2026-10-12T17:19:42.176269661Z",
|
||||
"cpu_limit": 0.5,
|
||||
"memory_limit_bytes": 134217728,
|
||||
"published_ports": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
BASE_URL="http://localhost:8080" python3 student-tests/availability.py
|
||||
PASS: both API failures and rolling replacement, confirmations preserved
|
||||
@@ -0,0 +1,2 @@
|
||||
python3 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
@@ -0,0 +1,2 @@
|
||||
BASE_URL="http://localhost:8080" python3 student-tests/dependencies.py
|
||||
PASS: Redis fallback, PostgreSQL unready, recovery without new login
|
||||
@@ -0,0 +1,31 @@
|
||||
CPU=16 RAM_BYTES=8187711488
|
||||
Client: Docker Engine - Community
|
||||
Version: 28.0.1
|
||||
API version: 1.45 (downgraded from 1.48)
|
||||
Go version: go1.23.6
|
||||
Git commit: 068a01e
|
||||
Built: Wed Feb 26 10:41:08 2025
|
||||
OS/Arch: linux/amd64
|
||||
Context: default
|
||||
|
||||
Server: Docker Desktop
|
||||
Engine:
|
||||
Version: 26.1.1
|
||||
API version: 1.45 (minimum version 1.24)
|
||||
Go version: go1.21.9
|
||||
Git commit: ac2de55
|
||||
Built: Tue Apr 30 11:48:28 2024
|
||||
OS/Arch: linux/amd64
|
||||
Experimental: false
|
||||
containerd:
|
||||
Version: 1.6.31
|
||||
GitCommit: e377cd56a71523140ca6ae87e30244719194a521
|
||||
runc:
|
||||
Version: 1.1.12
|
||||
GitCommit: v1.1.12-0-g51d5e94
|
||||
docker-init:
|
||||
Version: 0.19.0
|
||||
GitCommit: de40ad0
|
||||
Docker Compose version v2.27.0-desktop.2
|
||||
Python 3.10.12
|
||||
Linux LAPTOP-66HKAM8B 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
|
||||
@@ -0,0 +1,110 @@
|
||||
BASE_URL="http://localhost:8080" python3 scripts/experiment.py
|
||||
[1/54] fixed, API=1, clients=1, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[2/54] fixed, API=1, clients=1, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[3/54] fixed, API=1, clients=4, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[4/54] fixed, API=1, clients=4, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[5/54] fixed, API=1, clients=16, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[6/54] fixed, API=1, clients=16, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[7/54] fixed, API=1, clients=32, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[8/54] fixed, API=1, clients=32, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[9/54] fixed, API=2, clients=1, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[10/54] fixed, API=2, clients=1, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[11/54] fixed, API=2, clients=4, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[12/54] fixed, API=2, clients=4, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[13/54] fixed, API=2, clients=16, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[14/54] fixed, API=2, clients=16, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[15/54] fixed, API=2, clients=32, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[16/54] fixed, API=2, clients=32, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[17/54] fixed, API=4, clients=1, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[18/54] fixed, API=4, clients=1, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[19/54] fixed, API=4, clients=4, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[20/54] fixed, API=4, clients=4, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[21/54] fixed, API=4, clients=16, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[22/54] fixed, API=4, clients=16, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[23/54] fixed, API=4, clients=32, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[24/54] fixed, API=4, clients=32, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[25/54] growth, API=1, clients=1, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[26/54] growth, API=1, clients=1, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[27/54] growth, API=1, clients=4, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[28/54] growth, API=1, clients=4, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[29/54] growth, API=1, clients=16, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[30/54] growth, API=1, clients=16, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[31/54] growth, API=1, clients=32, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[32/54] growth, API=1, clients=32, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[33/54] growth, API=2, clients=1, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[34/54] growth, API=2, clients=1, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[35/54] growth, API=2, clients=4, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[36/54] growth, API=2, clients=4, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[37/54] growth, API=2, clients=16, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[38/54] growth, API=2, clients=16, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[39/54] growth, API=2, clients=32, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[40/54] growth, API=2, clients=32, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[41/54] growth, API=4, clients=1, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[42/54] growth, API=4, clients=1, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[43/54] growth, API=4, clients=4, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[44/54] growth, API=4, clients=4, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[45/54] growth, API=4, clients=16, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[46/54] growth, API=4, clients=16, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[47/54] growth, API=4, clients=32, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[48/54] growth, API=4, clients=32, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[49/54] pool_before, API=4, clients=32, pool=1
|
||||
Synthetic history: 10000 messages
|
||||
[50/54] pool_after, API=4, clients=32, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[51/54] pool_after, API=4, clients=32, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
[52/54] pool_before, API=4, clients=32, pool=1
|
||||
Synthetic history: 10000 messages
|
||||
[53/54] pool_before, API=4, clients=32, pool=1
|
||||
Synthetic history: 10000 messages
|
||||
[54/54] pool_after, API=4, clients=32, pool=8
|
||||
Synthetic history: 10000 messages
|
||||
Research status: NEEDS_REVIEW
|
||||
@@ -0,0 +1,20 @@
|
||||
bash scripts/test_expiry.sh
|
||||
Container mtusi2026lab3-api-4 Recreate
|
||||
Container mtusi2026lab3-api-3 Recreate
|
||||
Container mtusi2026lab3-api-3 Recreated
|
||||
Container mtusi2026lab3-api-4 Recreated
|
||||
Container mtusi2026lab3-api-3 Starting
|
||||
Container mtusi2026lab3-api-3 Started
|
||||
Container mtusi2026lab3-api-4 Starting
|
||||
Container mtusi2026lab3-api-4 Started
|
||||
API ready: 66d7b9dd6776:eaf4888e, a261a276eec2:a368da04
|
||||
PASS: short TTL expiry
|
||||
Container mtusi2026lab3-api-3 Recreate
|
||||
Container mtusi2026lab3-api-4 Recreate
|
||||
Container mtusi2026lab3-api-3 Recreated
|
||||
Container mtusi2026lab3-api-4 Recreated
|
||||
Container mtusi2026lab3-api-3 Starting
|
||||
Container mtusi2026lab3-api-3 Started
|
||||
Container mtusi2026lab3-api-4 Starting
|
||||
Container mtusi2026lab3-api-4 Started
|
||||
API ready: c52afc55c4f6:f0693d8f, dbb5737620df:289d3a28
|
||||
@@ -0,0 +1,4 @@
|
||||
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://localhost:8080"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 114, "failed_attempts": 3, "first_recovery_seconds": 1.698}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
@@ -0,0 +1,2 @@
|
||||
BASE_URL="http://localhost:8080" python3 scripts/stack.py wait --count 2
|
||||
API ready: c561f6e5eb62:1b45ca31, d10f701f2c07:61ee66f6
|
||||
@@ -0,0 +1,2 @@
|
||||
python3 tests/smoke.py --base-url "http://localhost:8080"
|
||||
PASS: lab3 public API scenario; infrastructure and grading evidence remain separate.
|
||||
@@ -0,0 +1,3 @@
|
||||
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://localhost:8080"
|
||||
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
@@ -0,0 +1,2 @@
|
||||
BASE_URL="http://localhost:8080" python3 scripts/stack.py wait --count 2
|
||||
API ready: 1b73eb7fa6e2:9d3131df, 83c7a9707bb9:ef265d89
|
||||
@@ -0,0 +1,7 @@
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi2026lab3-api-1 mtusi2026lab3-api "sh -c 'exec uvicorn…" api 21 seconds ago Up 12 seconds (healthy) 8080/tcp
|
||||
mtusi2026lab3-api-2 mtusi2026lab3-api "sh -c 'exec uvicorn…" api 21 seconds ago Up 12 seconds (healthy) 8080/tcp
|
||||
mtusi2026lab3-cache-1 redis:7.4.3-bookworm "docker-entrypoint.s…" cache 21 seconds ago Up 20 seconds (healthy) 6379/tcp
|
||||
mtusi2026lab3-db-1 postgres:16.9-bookworm "docker-entrypoint.s…" db 21 seconds ago Up 20 seconds (healthy) 5432/tcp
|
||||
mtusi2026lab3-lb-1 haproxy:3.0.11-bookworm "docker-entrypoint.s…" lb 21 seconds ago Up 9 seconds 127.0.0.1:8080->8080/tcp
|
||||
mtusi2026lab3-migrate-1 mtusi2026lab3-migrate "python -m src.migra…" migrate 21 seconds ago Exited (0) 13 seconds ago
|
||||
@@ -0,0 +1,2 @@
|
||||
python3 tests/smoke.py --base-url "http://localhost:8080"
|
||||
PASS: lab3 public API scenario; infrastructure and grading evidence remain separate.
|
||||
@@ -0,0 +1,2 @@
|
||||
python3 tests/smoke.py --base-url "http://localhost:8080"
|
||||
PASS: lab3 public API scenario; infrastructure and grading evidence remain separate.
|
||||
@@ -0,0 +1,222 @@
|
||||
bash scripts/start.sh
|
||||
lb Pulling
|
||||
b1badc6e5066 Already exists
|
||||
93966a25fd29 Pulling fs layer
|
||||
7fffeaaf8311 Pulling fs layer
|
||||
4125f09b2efb Pulling fs layer
|
||||
426458412bd2 Pulling fs layer
|
||||
4f4fb700ef54 Pulling fs layer
|
||||
4f4fb700ef54 Waiting
|
||||
426458412bd2 Waiting
|
||||
7fffeaaf8311 Downloading [==================================================>] 1.159kB/1.159kB
|
||||
7fffeaaf8311 Verifying Checksum
|
||||
7fffeaaf8311 Download complete
|
||||
93966a25fd29 Downloading [> ] 49.67kB/3.51MB
|
||||
4125f09b2efb Downloading [> ] 101.9kB/9.437MB
|
||||
93966a25fd29 Downloading [=====> ] 382.5kB/3.51MB
|
||||
4125f09b2efb Downloading [==> ] 415.2kB/9.437MB
|
||||
93966a25fd29 Downloading [===========> ] 815.6kB/3.51MB
|
||||
4125f09b2efb Downloading [====> ] 815.6kB/9.437MB
|
||||
93966a25fd29 Downloading [============================> ] 1.984MB/3.51MB
|
||||
4125f09b2efb Downloading [==========> ] 2.018MB/9.437MB
|
||||
93966a25fd29 Verifying Checksum
|
||||
93966a25fd29 Download complete
|
||||
4125f09b2efb Downloading [=======================> ] 4.399MB/9.437MB
|
||||
93966a25fd29 Extracting [> ] 65.54kB/3.51MB
|
||||
4125f09b2efb Downloading [===================================> ] 6.673MB/9.437MB
|
||||
93966a25fd29 Extracting [====> ] 327.7kB/3.51MB
|
||||
4125f09b2efb Downloading [==================================================>] 9.437MB/9.437MB
|
||||
4125f09b2efb Download complete
|
||||
93966a25fd29 Extracting [============================================> ] 3.146MB/3.51MB
|
||||
93966a25fd29 Extracting [==================================================>] 3.51MB/3.51MB
|
||||
93966a25fd29 Extracting [==================================================>] 3.51MB/3.51MB
|
||||
93966a25fd29 Pull complete
|
||||
7fffeaaf8311 Extracting [==================================================>] 1.159kB/1.159kB
|
||||
7fffeaaf8311 Extracting [==================================================>] 1.159kB/1.159kB
|
||||
7fffeaaf8311 Pull complete
|
||||
4125f09b2efb Extracting [> ] 98.3kB/9.437MB
|
||||
4125f09b2efb Extracting [========================> ] 4.62MB/9.437MB
|
||||
4125f09b2efb Extracting [==================================================>] 9.437MB/9.437MB
|
||||
4125f09b2efb Pull complete
|
||||
426458412bd2 Downloading [==================================================>] 448B/448B
|
||||
426458412bd2 Verifying Checksum
|
||||
426458412bd2 Download complete
|
||||
426458412bd2 Extracting [==================================================>] 448B/448B
|
||||
426458412bd2 Extracting [==================================================>] 448B/448B
|
||||
426458412bd2 Pull complete
|
||||
4f4fb700ef54 Downloading [==================================================>] 32B/32B
|
||||
4f4fb700ef54 Verifying Checksum
|
||||
4f4fb700ef54 Download complete
|
||||
4f4fb700ef54 Extracting [==================================================>] 32B/32B
|
||||
4f4fb700ef54 Extracting [==================================================>] 32B/32B
|
||||
4f4fb700ef54 Pull complete
|
||||
lb Pulled
|
||||
#0 building with "default" instance using docker driver
|
||||
|
||||
#1 [migrate internal] load build definition from Dockerfile
|
||||
#1 transferring dockerfile: 1.04kB done
|
||||
#1 DONE 0.0s
|
||||
|
||||
#2 [migrate internal] load metadata for docker.io/library/python:3.12.10-slim-bookworm
|
||||
#2 DONE 2.0s
|
||||
|
||||
#3 [migrate internal] load .dockerignore
|
||||
#3 transferring context: 225B done
|
||||
#3 DONE 0.0s
|
||||
|
||||
#4 [migrate 1/12] FROM docker.io/library/python:3.12.10-slim-bookworm@sha256:fd95fa221297a88e1cf49c55ec1828edd7c5a428187e67b5d1805692d11588db
|
||||
#4 DONE 0.0s
|
||||
|
||||
#5 [migrate internal] load build context
|
||||
#5 transferring context: 227.94kB 0.0s done
|
||||
#5 DONE 0.0s
|
||||
|
||||
#6 [migrate 2/12] WORKDIR /app
|
||||
#6 CACHED
|
||||
|
||||
#7 [migrate 3/12] COPY requirements.txt .
|
||||
#7 CACHED
|
||||
|
||||
#8 [migrate 4/12] RUN pip install --no-cache-dir --requirement requirements.txt && groupadd --system --gid 10001 app && useradd --system --uid 10001 --gid app --home-dir /nonexistent --shell /usr/sbin/nologin app
|
||||
#8 CACHED
|
||||
|
||||
#9 [migrate 5/12] COPY --chown=app:app src ./src
|
||||
#9 DONE 0.1s
|
||||
|
||||
#10 [migrate 6/12] COPY --chown=app:app migrations ./migrations
|
||||
#10 DONE 0.1s
|
||||
|
||||
#11 [migrate 7/12] COPY --chown=app:app scripts ./scripts
|
||||
#11 DONE 0.1s
|
||||
|
||||
#12 [migrate 8/12] COPY --chown=app:app student-tests ./student-tests
|
||||
#12 DONE 0.1s
|
||||
|
||||
#13 [migrate 9/12] COPY --chown=app:app tests ./tests
|
||||
#13 DONE 0.1s
|
||||
|
||||
#14 [migrate 10/12] COPY --chown=app:app contracts ./contracts
|
||||
#14 DONE 0.1s
|
||||
|
||||
#15 [migrate 11/12] COPY --chown=app:app lab.json ./lab.json
|
||||
#15 DONE 0.1s
|
||||
|
||||
#16 [migrate 12/12] RUN mkdir -p evidence && chown app:app evidence
|
||||
#16 DONE 0.4s
|
||||
|
||||
#17 [migrate] exporting to image
|
||||
#17 exporting layers
|
||||
#17 exporting layers 0.2s done
|
||||
#17 writing image sha256:1085e4bae473759743af485a32df780221988b100eeb685530288c4cc71d287a done
|
||||
#17 naming to docker.io/library/mtusi2026lab3-migrate done
|
||||
#17 DONE 0.2s
|
||||
|
||||
#18 [api internal] load build definition from Dockerfile
|
||||
#18 transferring dockerfile: 1.04kB done
|
||||
#18 DONE 0.0s
|
||||
|
||||
#2 [api internal] load metadata for docker.io/library/python:3.12.10-slim-bookworm
|
||||
#2 DONE 4.0s
|
||||
|
||||
#19 [api internal] load .dockerignore
|
||||
#19 transferring context: 225B 0.0s done
|
||||
#19 DONE 0.0s
|
||||
|
||||
#4 [api 1/12] FROM docker.io/library/python:3.12.10-slim-bookworm@sha256:fd95fa221297a88e1cf49c55ec1828edd7c5a428187e67b5d1805692d11588db
|
||||
#4 DONE 0.0s
|
||||
|
||||
#20 [api internal] load build context
|
||||
#20 transferring context: 1.79kB done
|
||||
#20 DONE 0.0s
|
||||
|
||||
#21 [api 6/12] COPY --chown=app:app migrations ./migrations
|
||||
#21 CACHED
|
||||
|
||||
#22 [api 8/12] COPY --chown=app:app student-tests ./student-tests
|
||||
#22 CACHED
|
||||
|
||||
#6 [api 2/12] WORKDIR /app
|
||||
#6 CACHED
|
||||
|
||||
#23 [api 10/12] COPY --chown=app:app contracts ./contracts
|
||||
#23 CACHED
|
||||
|
||||
#24 [api 3/12] COPY requirements.txt .
|
||||
#24 CACHED
|
||||
|
||||
#25 [api 11/12] COPY --chown=app:app lab.json ./lab.json
|
||||
#25 CACHED
|
||||
|
||||
#26 [api 5/12] COPY --chown=app:app src ./src
|
||||
#26 CACHED
|
||||
|
||||
#27 [api 7/12] COPY --chown=app:app scripts ./scripts
|
||||
#27 CACHED
|
||||
|
||||
#28 [api 9/12] COPY --chown=app:app tests ./tests
|
||||
#28 CACHED
|
||||
|
||||
#29 [api 4/12] RUN pip install --no-cache-dir --requirement requirements.txt && groupadd --system --gid 10001 app && useradd --system --uid 10001 --gid app --home-dir /nonexistent --shell /usr/sbin/nologin app
|
||||
#29 CACHED
|
||||
|
||||
#30 [api 12/12] RUN mkdir -p evidence && chown app:app evidence
|
||||
#30 CACHED
|
||||
|
||||
#31 [api] exporting to image
|
||||
#31 exporting layers done
|
||||
#31 writing image sha256:45122a96360ac6b55027dc2f138c19fa3050580d301f017a6ee93cdb15928c44 done
|
||||
#31 naming to docker.io/library/mtusi2026lab3-api 0.0s done
|
||||
#31 DONE 0.0s
|
||||
Network mtusi2026lab3_default Creating
|
||||
Network mtusi2026lab3_default Created
|
||||
Volume "mtusi2026lab3_postgres_data" Creating
|
||||
Volume "mtusi2026lab3_postgres_data" Created
|
||||
Volume "mtusi2026lab3_redis_data" Creating
|
||||
Volume "mtusi2026lab3_redis_data" Created
|
||||
Container mtusi2026lab3-cache-1 Creating
|
||||
Container mtusi2026lab3-db-1 Creating
|
||||
Container mtusi2026lab3-db-1 Created
|
||||
Container mtusi2026lab3-migrate-1 Creating
|
||||
Container mtusi2026lab3-cache-1 Created
|
||||
Container mtusi2026lab3-migrate-1 Created
|
||||
Container mtusi2026lab3-api-2 Creating
|
||||
Container mtusi2026lab3-api-1 Creating
|
||||
Container mtusi2026lab3-api-1 Created
|
||||
Container mtusi2026lab3-api-2 Created
|
||||
Container mtusi2026lab3-lb-1 Creating
|
||||
Container mtusi2026lab3-lb-1 Created
|
||||
Container mtusi2026lab3-cache-1 Starting
|
||||
Container mtusi2026lab3-db-1 Starting
|
||||
Container mtusi2026lab3-db-1 Started
|
||||
Container mtusi2026lab3-db-1 Waiting
|
||||
Container mtusi2026lab3-cache-1 Started
|
||||
Container mtusi2026lab3-db-1 Healthy
|
||||
Container mtusi2026lab3-migrate-1 Starting
|
||||
Container mtusi2026lab3-migrate-1 Started
|
||||
Container mtusi2026lab3-cache-1 Waiting
|
||||
Container mtusi2026lab3-migrate-1 Waiting
|
||||
Container mtusi2026lab3-cache-1 Healthy
|
||||
Container mtusi2026lab3-migrate-1 Exited
|
||||
Container mtusi2026lab3-api-2 Starting
|
||||
Container mtusi2026lab3-api-2 Started
|
||||
Container mtusi2026lab3-api-1 Starting
|
||||
Container mtusi2026lab3-api-1 Started
|
||||
Container mtusi2026lab3-api-2 Waiting
|
||||
Container mtusi2026lab3-api-1 Waiting
|
||||
Container mtusi2026lab3-api-2 Healthy
|
||||
Container mtusi2026lab3-api-1 Healthy
|
||||
Container mtusi2026lab3-lb-1 Starting
|
||||
Container mtusi2026lab3-lb-1 Started
|
||||
Container mtusi2026lab3-cache-1 Waiting
|
||||
Container mtusi2026lab3-migrate-1 Waiting
|
||||
Container mtusi2026lab3-api-2 Waiting
|
||||
Container mtusi2026lab3-api-1 Waiting
|
||||
Container mtusi2026lab3-lb-1 Waiting
|
||||
Container mtusi2026lab3-db-1 Waiting
|
||||
Container mtusi2026lab3-db-1 Healthy
|
||||
Container mtusi2026lab3-lb-1 Healthy
|
||||
Container mtusi2026lab3-cache-1 Healthy
|
||||
Container mtusi2026lab3-migrate-1 Exited
|
||||
Container mtusi2026lab3-api-2 Healthy
|
||||
Container mtusi2026lab3-api-1 Healthy
|
||||
API ready: 1b73eb7fa6e2:9d3131df, 83c7a9707bb9:ef265d89
|
||||
@@ -0,0 +1,10 @@
|
||||
python3 student-tests/test_api.py --base-url "http://localhost:8080"
|
||||
PASS: malformed JSON/media type, duplicate username, blank message, outsider access, pagination
|
||||
PASS: 10 clients created exactly 100 unique messages
|
||||
python3 student-tests/checks.py --base-url "http://localhost:8080"
|
||||
PASS: registration race, invalid input, cursor scope, read-after-write, logout
|
||||
python3 student-tests/idempotency.py --base-url "http://localhost:8080"
|
||||
PASS: shared idempotency, scope, conflict and auth on replay
|
||||
docker compose exec -T --index 1 api python student-tests/database.py
|
||||
PASS: rollback of chat + members; migration reapplied twice
|
||||
PASS: persisted key expiry, atomic message/result rollback
|
||||
@@ -0,0 +1,2 @@
|
||||
python3 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,226 @@
|
||||
{
|
||||
"before": [
|
||||
{
|
||||
"id": "12b697ef94f3be33cc73e4aeda1d15484b55c8e257411253d66bf1083b6d7d15",
|
||||
"name": "mtusi2026lab3-api-1",
|
||||
"hostname": "12b697ef94f3",
|
||||
"service": "api",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:19:45.149692804Z",
|
||||
"cpu_limit": 1.0,
|
||||
"memory_limit_bytes": 268435456,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "67a7ac749a9470e0c4ddeb63e4e6f4b9d29c3478754eec4b2b4f890aac5435b9",
|
||||
"name": "mtusi2026lab3-api-2",
|
||||
"hostname": "67a7ac749a94",
|
||||
"service": "api",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:20:09.161822104Z",
|
||||
"cpu_limit": 1.0,
|
||||
"memory_limit_bytes": 268435456,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "3549b02e000b9cdf992460cd7a094dc7e4633025684356185ae7101f47da92c0",
|
||||
"name": "mtusi2026lab3-cache-1",
|
||||
"hostname": "3549b02e000b",
|
||||
"service": "cache",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:18:14.359548516Z",
|
||||
"cpu_limit": 0.5,
|
||||
"memory_limit_bytes": 134217728,
|
||||
"published_ports": {
|
||||
"6379/tcp": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "08d464eda0d8f96c636092caa5da13604709e95636cab46b5039aa1328d49b63",
|
||||
"name": "mtusi2026lab3-db-1",
|
||||
"hostname": "08d464eda0d8",
|
||||
"service": "db",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:18:14.359588699Z",
|
||||
"cpu_limit": 1.0,
|
||||
"memory_limit_bytes": 536870912,
|
||||
"published_ports": {
|
||||
"5432/tcp": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "887f07a19c48f53fec2e53076d2a6bbece3345f58d512b2c80c1f768dcee3a1e",
|
||||
"name": "mtusi2026lab3-lb-1",
|
||||
"hostname": "887f07a19c48",
|
||||
"service": "lb",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:18:24.755095627Z",
|
||||
"cpu_limit": 0.5,
|
||||
"memory_limit_bytes": 134217728,
|
||||
"published_ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "8080"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "ebfb1caed752e639ea50fae62b0c09dbe0cad29661a9d8e69d7d6dc4c80f833e",
|
||||
"name": "mtusi2026lab3-migrate-1",
|
||||
"hostname": "ebfb1caed752",
|
||||
"service": "migrate",
|
||||
"running": false,
|
||||
"started_at": "2026-10-12T17:20:06.265768415Z",
|
||||
"cpu_limit": 0.5,
|
||||
"memory_limit_bytes": 134217728,
|
||||
"published_ports": {}
|
||||
}
|
||||
],
|
||||
"steps": [
|
||||
[
|
||||
{
|
||||
"id": "67a7ac749a9470e0c4ddeb63e4e6f4b9d29c3478754eec4b2b4f890aac5435b9",
|
||||
"name": "mtusi2026lab3-api-2",
|
||||
"hostname": "67a7ac749a94",
|
||||
"service": "api",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:20:09.161822104Z",
|
||||
"cpu_limit": 1.0,
|
||||
"memory_limit_bytes": 268435456,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "9f0a21ee9eb4a5fb3b53f04855a7a17d7bbd478b5196e2e2742d223ebc96db3b",
|
||||
"name": "mtusi2026lab3-api-3",
|
||||
"hostname": "9f0a21ee9eb4",
|
||||
"service": "api",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:20:19.243853374Z",
|
||||
"cpu_limit": 1.0,
|
||||
"memory_limit_bytes": 268435456,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
"id": "9f0a21ee9eb4a5fb3b53f04855a7a17d7bbd478b5196e2e2742d223ebc96db3b",
|
||||
"name": "mtusi2026lab3-api-3",
|
||||
"hostname": "9f0a21ee9eb4",
|
||||
"service": "api",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:20:19.243853374Z",
|
||||
"cpu_limit": 1.0,
|
||||
"memory_limit_bytes": 268435456,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "5b7bd8390bb98ada3b06c28f9fc9fb2ab28860c8ce2df33a7856af8eca734356",
|
||||
"name": "mtusi2026lab3-api-4",
|
||||
"hostname": "5b7bd8390bb9",
|
||||
"service": "api",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:20:24.89656974Z",
|
||||
"cpu_limit": 1.0,
|
||||
"memory_limit_bytes": 268435456,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
"after": [
|
||||
{
|
||||
"id": "9f0a21ee9eb4a5fb3b53f04855a7a17d7bbd478b5196e2e2742d223ebc96db3b",
|
||||
"name": "mtusi2026lab3-api-3",
|
||||
"hostname": "9f0a21ee9eb4",
|
||||
"service": "api",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:20:19.243853374Z",
|
||||
"cpu_limit": 1.0,
|
||||
"memory_limit_bytes": 268435456,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "5b7bd8390bb98ada3b06c28f9fc9fb2ab28860c8ce2df33a7856af8eca734356",
|
||||
"name": "mtusi2026lab3-api-4",
|
||||
"hostname": "5b7bd8390bb9",
|
||||
"service": "api",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:20:24.89656974Z",
|
||||
"cpu_limit": 1.0,
|
||||
"memory_limit_bytes": 268435456,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "3549b02e000b9cdf992460cd7a094dc7e4633025684356185ae7101f47da92c0",
|
||||
"name": "mtusi2026lab3-cache-1",
|
||||
"hostname": "3549b02e000b",
|
||||
"service": "cache",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:18:14.359548516Z",
|
||||
"cpu_limit": 0.5,
|
||||
"memory_limit_bytes": 134217728,
|
||||
"published_ports": {
|
||||
"6379/tcp": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "08d464eda0d8f96c636092caa5da13604709e95636cab46b5039aa1328d49b63",
|
||||
"name": "mtusi2026lab3-db-1",
|
||||
"hostname": "08d464eda0d8",
|
||||
"service": "db",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:18:14.359588699Z",
|
||||
"cpu_limit": 1.0,
|
||||
"memory_limit_bytes": 536870912,
|
||||
"published_ports": {
|
||||
"5432/tcp": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "887f07a19c48f53fec2e53076d2a6bbece3345f58d512b2c80c1f768dcee3a1e",
|
||||
"name": "mtusi2026lab3-lb-1",
|
||||
"hostname": "887f07a19c48",
|
||||
"service": "lb",
|
||||
"running": true,
|
||||
"started_at": "2026-10-12T17:18:24.755095627Z",
|
||||
"cpu_limit": 0.5,
|
||||
"memory_limit_bytes": 134217728,
|
||||
"published_ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "8080"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "ebfb1caed752e639ea50fae62b0c09dbe0cad29661a9d8e69d7d6dc4c80f833e",
|
||||
"name": "mtusi2026lab3-migrate-1",
|
||||
"hostname": "ebfb1caed752",
|
||||
"service": "migrate",
|
||||
"running": false,
|
||||
"started_at": "2026-10-12T17:20:06.265768415Z",
|
||||
"cpu_limit": 0.5,
|
||||
"memory_limit_bytes": 134217728,
|
||||
"published_ports": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 92 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 96 KiB |
+138161
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,313 @@
|
||||
{
|
||||
"groups": [
|
||||
{
|
||||
"series": "fixed",
|
||||
"replicas": 1,
|
||||
"concurrency": 1,
|
||||
"pool": 8,
|
||||
"repetitions": 2,
|
||||
"rps": 145.511,
|
||||
"p95_ms": 8.774,
|
||||
"error_ratio": 0.0
|
||||
},
|
||||
{
|
||||
"series": "fixed",
|
||||
"replicas": 1,
|
||||
"concurrency": 4,
|
||||
"pool": 8,
|
||||
"repetitions": 2,
|
||||
"rps": 164.724,
|
||||
"p95_ms": 34.649,
|
||||
"error_ratio": 0.0
|
||||
},
|
||||
{
|
||||
"series": "fixed",
|
||||
"replicas": 1,
|
||||
"concurrency": 16,
|
||||
"pool": 8,
|
||||
"repetitions": 2,
|
||||
"rps": 133.147,
|
||||
"p95_ms": 171.69,
|
||||
"error_ratio": 0.0
|
||||
},
|
||||
{
|
||||
"series": "fixed",
|
||||
"replicas": 1,
|
||||
"concurrency": 32,
|
||||
"pool": 8,
|
||||
"repetitions": 2,
|
||||
"rps": 130.375,
|
||||
"p95_ms": 345.976,
|
||||
"error_ratio": 0.0
|
||||
},
|
||||
{
|
||||
"series": "fixed",
|
||||
"replicas": 2,
|
||||
"concurrency": 1,
|
||||
"pool": 8,
|
||||
"repetitions": 2,
|
||||
"rps": 131.016,
|
||||
"p95_ms": 9.557,
|
||||
"error_ratio": 0.0
|
||||
},
|
||||
{
|
||||
"series": "fixed",
|
||||
"replicas": 2,
|
||||
"concurrency": 4,
|
||||
"pool": 8,
|
||||
"repetitions": 2,
|
||||
"rps": 200.523,
|
||||
"p95_ms": 71.814,
|
||||
"error_ratio": 0.0
|
||||
},
|
||||
{
|
||||
"series": "fixed",
|
||||
"replicas": 2,
|
||||
"concurrency": 16,
|
||||
"pool": 8,
|
||||
"repetitions": 2,
|
||||
"rps": 114.05,
|
||||
"p95_ms": 401.072,
|
||||
"error_ratio": 0.0
|
||||
},
|
||||
{
|
||||
"series": "fixed",
|
||||
"replicas": 2,
|
||||
"concurrency": 32,
|
||||
"pool": 8,
|
||||
"repetitions": 2,
|
||||
"rps": 122.042,
|
||||
"p95_ms": 694.255,
|
||||
"error_ratio": 0.0
|
||||
},
|
||||
{
|
||||
"series": "fixed",
|
||||
"replicas": 4,
|
||||
"concurrency": 1,
|
||||
"pool": 8,
|
||||
"repetitions": 2,
|
||||
"rps": 72.672,
|
||||
"p95_ms": 64.723,
|
||||
"error_ratio": 0.0
|
||||
},
|
||||
{
|
||||
"series": "fixed",
|
||||
"replicas": 4,
|
||||
"concurrency": 4,
|
||||
"pool": 8,
|
||||
"repetitions": 2,
|
||||
"rps": 129.416,
|
||||
"p95_ms": 127.184,
|
||||
"error_ratio": 0.0
|
||||
},
|
||||
{
|
||||
"series": "fixed",
|
||||
"replicas": 4,
|
||||
"concurrency": 16,
|
||||
"pool": 8,
|
||||
"repetitions": 2,
|
||||
"rps": 82.49,
|
||||
"p95_ms": 866.833,
|
||||
"error_ratio": 0.0
|
||||
},
|
||||
{
|
||||
"series": "fixed",
|
||||
"replicas": 4,
|
||||
"concurrency": 32,
|
||||
"pool": 8,
|
||||
"repetitions": 2,
|
||||
"rps": 76.677,
|
||||
"p95_ms": 1650.318,
|
||||
"error_ratio": 0.0
|
||||
},
|
||||
{
|
||||
"series": "growth",
|
||||
"replicas": 1,
|
||||
"concurrency": 1,
|
||||
"pool": 8,
|
||||
"repetitions": 2,
|
||||
"rps": 122.103,
|
||||
"p95_ms": 10.72,
|
||||
"error_ratio": 0.0
|
||||
},
|
||||
{
|
||||
"series": "growth",
|
||||
"replicas": 1,
|
||||
"concurrency": 4,
|
||||
"pool": 8,
|
||||
"repetitions": 2,
|
||||
"rps": 115.231,
|
||||
"p95_ms": 88.178,
|
||||
"error_ratio": 0.0
|
||||
},
|
||||
{
|
||||
"series": "growth",
|
||||
"replicas": 1,
|
||||
"concurrency": 16,
|
||||
"pool": 8,
|
||||
"repetitions": 2,
|
||||
"rps": 86.63,
|
||||
"p95_ms": 377.891,
|
||||
"error_ratio": 0.0
|
||||
},
|
||||
{
|
||||
"series": "growth",
|
||||
"replicas": 1,
|
||||
"concurrency": 32,
|
||||
"pool": 8,
|
||||
"repetitions": 2,
|
||||
"rps": 89.212,
|
||||
"p95_ms": 674.803,
|
||||
"error_ratio": 0.0
|
||||
},
|
||||
{
|
||||
"series": "growth",
|
||||
"replicas": 2,
|
||||
"concurrency": 1,
|
||||
"pool": 8,
|
||||
"repetitions": 2,
|
||||
"rps": 129.289,
|
||||
"p95_ms": 9.698,
|
||||
"error_ratio": 0.0
|
||||
},
|
||||
{
|
||||
"series": "growth",
|
||||
"replicas": 2,
|
||||
"concurrency": 4,
|
||||
"pool": 8,
|
||||
"repetitions": 2,
|
||||
"rps": 239.492,
|
||||
"p95_ms": 57.887,
|
||||
"error_ratio": 0.0
|
||||
},
|
||||
{
|
||||
"series": "growth",
|
||||
"replicas": 2,
|
||||
"concurrency": 16,
|
||||
"pool": 8,
|
||||
"repetitions": 2,
|
||||
"rps": 154.389,
|
||||
"p95_ms": 292.688,
|
||||
"error_ratio": 0.0
|
||||
},
|
||||
{
|
||||
"series": "growth",
|
||||
"replicas": 2,
|
||||
"concurrency": 32,
|
||||
"pool": 8,
|
||||
"repetitions": 2,
|
||||
"rps": 142.447,
|
||||
"p95_ms": 650.997,
|
||||
"error_ratio": 0.0
|
||||
},
|
||||
{
|
||||
"series": "growth",
|
||||
"replicas": 4,
|
||||
"concurrency": 1,
|
||||
"pool": 8,
|
||||
"repetitions": 2,
|
||||
"rps": 127.805,
|
||||
"p95_ms": 10.032,
|
||||
"error_ratio": 0.0
|
||||
},
|
||||
{
|
||||
"series": "growth",
|
||||
"replicas": 4,
|
||||
"concurrency": 4,
|
||||
"pool": 8,
|
||||
"repetitions": 2,
|
||||
"rps": 262.183,
|
||||
"p95_ms": 47.691,
|
||||
"error_ratio": 0.0
|
||||
},
|
||||
{
|
||||
"series": "growth",
|
||||
"replicas": 4,
|
||||
"concurrency": 16,
|
||||
"pool": 8,
|
||||
"repetitions": 2,
|
||||
"rps": 210.021,
|
||||
"p95_ms": 295.197,
|
||||
"error_ratio": 0.0
|
||||
},
|
||||
{
|
||||
"series": "growth",
|
||||
"replicas": 4,
|
||||
"concurrency": 32,
|
||||
"pool": 8,
|
||||
"repetitions": 2,
|
||||
"rps": 200.486,
|
||||
"p95_ms": 614.256,
|
||||
"error_ratio": 0.0
|
||||
},
|
||||
{
|
||||
"series": "pool_before",
|
||||
"replicas": 4,
|
||||
"concurrency": 32,
|
||||
"pool": 1,
|
||||
"repetitions": 3,
|
||||
"rps": 137.435,
|
||||
"p95_ms": 961.728,
|
||||
"error_ratio": 0.0
|
||||
},
|
||||
{
|
||||
"series": "pool_after",
|
||||
"replicas": 4,
|
||||
"concurrency": 32,
|
||||
"pool": 8,
|
||||
"repetitions": 3,
|
||||
"rps": 78.992,
|
||||
"p95_ms": 1493.381,
|
||||
"error_ratio": 0.0
|
||||
}
|
||||
],
|
||||
"conclusion": {
|
||||
"status": "MEASURED_IMPROVEMENT",
|
||||
"original_increase_rps_gain": -0.4252410230290683,
|
||||
"tested_change": "8_to_1",
|
||||
"recommended_pool": 1,
|
||||
"rps_gain": 0.7398597326311525,
|
||||
"p95_reduction": 0.35600627033556753,
|
||||
"paired_repetitions": 3,
|
||||
"consistent_pairs": true,
|
||||
"maximum_pool_queue_before": 31,
|
||||
"plateau": [
|
||||
{
|
||||
"series": "fixed",
|
||||
"replicas": 1,
|
||||
"clients_from": 4,
|
||||
"clients_to": 16
|
||||
},
|
||||
{
|
||||
"series": "fixed",
|
||||
"replicas": 2,
|
||||
"clients_from": 4,
|
||||
"clients_to": 16
|
||||
},
|
||||
{
|
||||
"series": "fixed",
|
||||
"replicas": 4,
|
||||
"clients_from": 4,
|
||||
"clients_to": 16
|
||||
},
|
||||
{
|
||||
"series": "growth",
|
||||
"replicas": 1,
|
||||
"clients_from": 1,
|
||||
"clients_to": 4
|
||||
},
|
||||
{
|
||||
"series": "growth",
|
||||
"replicas": 2,
|
||||
"clients_from": 4,
|
||||
"clients_to": 16
|
||||
},
|
||||
{
|
||||
"series": "growth",
|
||||
"replicas": 4,
|
||||
"clients_from": 4,
|
||||
"clients_to": 16
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
# Трек 1: фактические результаты
|
||||
|
||||
Медианы повторов; p95 считается только по успешным запросам. Ошибки показаны отдельно.
|
||||
|
||||
| Серия | API | Clients | Pool/API | RPS | p95 ms | Ошибки |
|
||||
| --- | ---: | ---: | ---: | ---: | ---: | ---: |
|
||||
| fixed | 1 | 1 | 8 | 145.511 | 8.774 | 0.00% |
|
||||
| fixed | 1 | 4 | 8 | 164.724 | 34.649 | 0.00% |
|
||||
| fixed | 1 | 16 | 8 | 133.147 | 171.69 | 0.00% |
|
||||
| fixed | 1 | 32 | 8 | 130.375 | 345.976 | 0.00% |
|
||||
| fixed | 2 | 1 | 8 | 131.016 | 9.557 | 0.00% |
|
||||
| fixed | 2 | 4 | 8 | 200.523 | 71.814 | 0.00% |
|
||||
| fixed | 2 | 16 | 8 | 114.05 | 401.072 | 0.00% |
|
||||
| fixed | 2 | 32 | 8 | 122.042 | 694.255 | 0.00% |
|
||||
| fixed | 4 | 1 | 8 | 72.672 | 64.723 | 0.00% |
|
||||
| fixed | 4 | 4 | 8 | 129.416 | 127.184 | 0.00% |
|
||||
| fixed | 4 | 16 | 8 | 82.49 | 866.833 | 0.00% |
|
||||
| fixed | 4 | 32 | 8 | 76.677 | 1650.318 | 0.00% |
|
||||
| growth | 1 | 1 | 8 | 122.103 | 10.72 | 0.00% |
|
||||
| growth | 1 | 4 | 8 | 115.231 | 88.178 | 0.00% |
|
||||
| growth | 1 | 16 | 8 | 86.63 | 377.891 | 0.00% |
|
||||
| growth | 1 | 32 | 8 | 89.212 | 674.803 | 0.00% |
|
||||
| growth | 2 | 1 | 8 | 129.289 | 9.698 | 0.00% |
|
||||
| growth | 2 | 4 | 8 | 239.492 | 57.887 | 0.00% |
|
||||
| growth | 2 | 16 | 8 | 154.389 | 292.688 | 0.00% |
|
||||
| growth | 2 | 32 | 8 | 142.447 | 650.997 | 0.00% |
|
||||
| growth | 4 | 1 | 8 | 127.805 | 10.032 | 0.00% |
|
||||
| growth | 4 | 4 | 8 | 262.183 | 47.691 | 0.00% |
|
||||
| growth | 4 | 16 | 8 | 210.021 | 295.197 | 0.00% |
|
||||
| growth | 4 | 32 | 8 | 200.486 | 614.256 | 0.00% |
|
||||
| pool_before | 4 | 32 | 1 | 137.435 | 961.728 | 0.00% |
|
||||
| pool_after | 4 | 32 | 8 | 78.992 | 1493.381 | 0.00% |
|
||||
|
||||
## Где рост нагрузки перестал давать заметный прирост RPS
|
||||
|
||||
- fixed, 1 API: clients 4 → 16, RPS 164.724 → 133.147; p95 34.649 → 171.69 ms.
|
||||
- fixed, 2 API: clients 4 → 16, RPS 200.523 → 114.05; p95 71.814 → 401.072 ms.
|
||||
- fixed, 4 API: clients 4 → 16, RPS 129.416 → 82.49; p95 127.184 → 866.833 ms.
|
||||
- growth, 1 API: clients 1 → 4, RPS 122.103 → 115.231; p95 10.72 → 88.178 ms.
|
||||
- growth, 2 API: clients 4 → 16, RPS 239.492 → 154.389; p95 57.887 → 292.688 ms.
|
||||
- growth, 4 API: clients 4 → 16, RPS 262.183 → 210.021; p95 47.691 → 295.197 ms.
|
||||
|
||||
## Проверка одного изменения
|
||||
|
||||
Одинаковые 4 API, по 0.5 CPU и 256 MiB. Сравниваются DB_POOL_MAX=1 и 8; остальные лимиты неизменны.
|
||||
Исходная гипотеза — увеличение пула 1 → 8; названия pool_before/pool_after сохранены.
|
||||
Изменение median RPS при 1 → 8: -42.5%.
|
||||
Лучший измеренный вариант: pool=1; сравнение 8 → 1.
|
||||
Median RPS: 78.992 → 137.435; изменение +74.0%.
|
||||
Median p95: 1493.381 → 961.728 ms; снижение 35.6%.
|
||||
Число пар повторов: 3; одинаковое направление RPS/p95 без роста ошибок: да.
|
||||
Максимум наблюдаемой очереди при pool=1: 31.
|
||||
|
||||
Наличие очереди не доказывает, что нужно увеличивать пул. Вывод о механизме проверяется по CPU/RAM и ожиданиям PG из monitor. Результат относится к измеренному профилю и лимитам, не к любому серверу.
|
||||
|
||||
Статус эксперимента: MEASURED_IMPROVEMENT.
|
||||
Reference in New Issue
Block a user