Implement lab3 grade 4: balanced API replicas, shared idempotency and failure tests
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
# Исходный прогон
|
||||
|
||||
Результаты первого прогона 02.11.2026, приведённые в основной таблице REPORT.md.
|
||||
Сохранены отдельно, поскольку повторные запуски перезаписывают файлы в evidence/.
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,216 @@
|
||||
{
|
||||
"before": [
|
||||
{
|
||||
"id": "0700f348645b5bd3a8b3f4a68230f6fb02ad423271cc7397039d3adae960252f",
|
||||
"name": "mtusi-lab3-osokin-api-1",
|
||||
"service": "api",
|
||||
"number": 1,
|
||||
"hostname": "0700f348645b",
|
||||
"pid": 12364,
|
||||
"started_at": "2026-11-02T13:30:01.426804291Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:0e84db5e71b3243fb1788ca5681dac9ed806ce4ffcb80fd4fa59672ecb4668b3",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "e91ca53a67f8494106c6d014999693c2cbb3f4ec79db94d9a019668fdb24634a",
|
||||
"name": "mtusi-lab3-osokin-api-2",
|
||||
"service": "api",
|
||||
"number": 2,
|
||||
"hostname": "e91ca53a67f8",
|
||||
"pid": 12419,
|
||||
"started_at": "2026-11-02T13:30:01.726545444Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:0e84db5e71b3243fb1788ca5681dac9ed806ce4ffcb80fd4fa59672ecb4668b3",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "071b123e1f8c4e837ae997c8403efff92674321f2ccadef8714d4c8e38bc4ee8",
|
||||
"name": "mtusi-lab3-osokin-db-1",
|
||||
"service": "db",
|
||||
"number": 1,
|
||||
"hostname": "071b123e1f8c",
|
||||
"pid": 766,
|
||||
"started_at": "2026-11-02T13:25:24.897109157Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:f3bd19c606e442c3d7bdfa8002e03fe260a1023351e0ea4598032022b68dd6e3",
|
||||
"memory_limit": 536870912,
|
||||
"cpu_limit": 2.0,
|
||||
"published_ports": {
|
||||
"5432/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"name": "mtusi-lab3-osokin_pgdata",
|
||||
"destination": "/var/lib/postgresql/data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "c30f4b49ac01fc1f6072e0a477f471e195c61bded9a5fc41c9f8ad3064f9022e",
|
||||
"name": "mtusi-lab3-osokin-lb-1",
|
||||
"service": "lb",
|
||||
"number": 1,
|
||||
"hostname": "c30f4b49ac01",
|
||||
"pid": 1375,
|
||||
"started_at": "2026-11-02T13:25:38.353420209Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:0e310ea3294f7854692c37898920fd2c04ea6abdb89724092e93280a2b85b4cf",
|
||||
"memory_limit": 134217728,
|
||||
"cpu_limit": 0.5,
|
||||
"published_ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "8080"
|
||||
}
|
||||
]
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "5184c3c05e75d5c59b414c876840215b913b830992f29e5e3b00f097b3af28d0",
|
||||
"name": "mtusi-lab3-osokin-redis-1",
|
||||
"service": "redis",
|
||||
"number": 1,
|
||||
"hostname": "5184c3c05e75",
|
||||
"pid": 696,
|
||||
"started_at": "2026-11-02T13:25:24.294225064Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:90e7a336d044f1abc9e9dbc05d65566850896d11453bbd1dd0fb7e5059f0e8fb",
|
||||
"memory_limit": 134217728,
|
||||
"cpu_limit": 0.5,
|
||||
"published_ports": {
|
||||
"6379/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"name": "mtusi-lab3-osokin_redisdata",
|
||||
"destination": "/data"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"after": [
|
||||
{
|
||||
"id": "0700f348645b5bd3a8b3f4a68230f6fb02ad423271cc7397039d3adae960252f",
|
||||
"name": "mtusi-lab3-osokin-api-1",
|
||||
"service": "api",
|
||||
"number": 1,
|
||||
"hostname": "0700f348645b",
|
||||
"pid": 23269,
|
||||
"started_at": "2026-11-02T13:34:14.511777506Z",
|
||||
"status": "running",
|
||||
"health": "starting",
|
||||
"image": "sha256:0e84db5e71b3243fb1788ca5681dac9ed806ce4ffcb80fd4fa59672ecb4668b3",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "e91ca53a67f8494106c6d014999693c2cbb3f4ec79db94d9a019668fdb24634a",
|
||||
"name": "mtusi-lab3-osokin-api-2",
|
||||
"service": "api",
|
||||
"number": 2,
|
||||
"hostname": "e91ca53a67f8",
|
||||
"pid": 23303,
|
||||
"started_at": "2026-11-02T13:34:14.576732298Z",
|
||||
"status": "running",
|
||||
"health": "starting",
|
||||
"image": "sha256:0e84db5e71b3243fb1788ca5681dac9ed806ce4ffcb80fd4fa59672ecb4668b3",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "071b123e1f8c4e837ae997c8403efff92674321f2ccadef8714d4c8e38bc4ee8",
|
||||
"name": "mtusi-lab3-osokin-db-1",
|
||||
"service": "db",
|
||||
"number": 1,
|
||||
"hostname": "071b123e1f8c",
|
||||
"pid": 23212,
|
||||
"started_at": "2026-11-02T13:34:14.441800497Z",
|
||||
"status": "running",
|
||||
"health": "starting",
|
||||
"image": "sha256:f3bd19c606e442c3d7bdfa8002e03fe260a1023351e0ea4598032022b68dd6e3",
|
||||
"memory_limit": 536870912,
|
||||
"cpu_limit": 2.0,
|
||||
"published_ports": {
|
||||
"5432/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"name": "mtusi-lab3-osokin_pgdata",
|
||||
"destination": "/var/lib/postgresql/data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "c30f4b49ac01fc1f6072e0a477f471e195c61bded9a5fc41c9f8ad3064f9022e",
|
||||
"name": "mtusi-lab3-osokin-lb-1",
|
||||
"service": "lb",
|
||||
"number": 1,
|
||||
"hostname": "c30f4b49ac01",
|
||||
"pid": 23378,
|
||||
"started_at": "2026-11-02T13:34:14.739292592Z",
|
||||
"status": "running",
|
||||
"health": "starting",
|
||||
"image": "sha256:0e310ea3294f7854692c37898920fd2c04ea6abdb89724092e93280a2b85b4cf",
|
||||
"memory_limit": 134217728,
|
||||
"cpu_limit": 0.5,
|
||||
"published_ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "8080"
|
||||
}
|
||||
]
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "5184c3c05e75d5c59b414c876840215b913b830992f29e5e3b00f097b3af28d0",
|
||||
"name": "mtusi-lab3-osokin-redis-1",
|
||||
"service": "redis",
|
||||
"number": 1,
|
||||
"hostname": "5184c3c05e75",
|
||||
"pid": 23247,
|
||||
"started_at": "2026-11-02T13:34:14.484264122Z",
|
||||
"status": "running",
|
||||
"health": "starting",
|
||||
"image": "sha256:90e7a336d044f1abc9e9dbc05d65566850896d11453bbd1dd0fb7e5059f0e8fb",
|
||||
"memory_limit": 134217728,
|
||||
"cpu_limit": 0.5,
|
||||
"published_ports": {
|
||||
"6379/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"name": "mtusi-lab3-osokin_redisdata",
|
||||
"destination": "/data"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,196 @@
|
||||
{
|
||||
"before": [
|
||||
{
|
||||
"id": "0700f348645b5bd3a8b3f4a68230f6fb02ad423271cc7397039d3adae960252f",
|
||||
"name": "mtusi-lab3-osokin-api-1",
|
||||
"service": "api",
|
||||
"number": 1,
|
||||
"hostname": "0700f348645b",
|
||||
"pid": 25766,
|
||||
"started_at": "2026-11-02T13:35:13.89817575Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:0e84db5e71b3243fb1788ca5681dac9ed806ce4ffcb80fd4fa59672ecb4668b3",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "e91ca53a67f8494106c6d014999693c2cbb3f4ec79db94d9a019668fdb24634a",
|
||||
"name": "mtusi-lab3-osokin-api-2",
|
||||
"service": "api",
|
||||
"number": 2,
|
||||
"hostname": "e91ca53a67f8",
|
||||
"pid": 27229,
|
||||
"started_at": "2026-11-02T13:35:53.034956399Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:0e84db5e71b3243fb1788ca5681dac9ed806ce4ffcb80fd4fa59672ecb4668b3",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
}
|
||||
],
|
||||
"replacements": [
|
||||
{
|
||||
"old": {
|
||||
"id": "0700f348645b5bd3a8b3f4a68230f6fb02ad423271cc7397039d3adae960252f",
|
||||
"name": "mtusi-lab3-osokin-api-1",
|
||||
"service": "api",
|
||||
"number": 1,
|
||||
"hostname": "0700f348645b",
|
||||
"pid": 25766,
|
||||
"started_at": "2026-11-02T13:35:13.89817575Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:0e84db5e71b3243fb1788ca5681dac9ed806ce4ffcb80fd4fa59672ecb4668b3",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
"after": [
|
||||
{
|
||||
"id": "e91ca53a67f8494106c6d014999693c2cbb3f4ec79db94d9a019668fdb24634a",
|
||||
"name": "mtusi-lab3-osokin-api-2",
|
||||
"service": "api",
|
||||
"number": 2,
|
||||
"hostname": "e91ca53a67f8",
|
||||
"pid": 27229,
|
||||
"started_at": "2026-11-02T13:35:53.034956399Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:0e84db5e71b3243fb1788ca5681dac9ed806ce4ffcb80fd4fa59672ecb4668b3",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "e77746bad0b9b0b63ea6e1f91df2108906611b4af7a98f19f734f1339b540e0d",
|
||||
"name": "mtusi-lab3-osokin-api-3",
|
||||
"service": "api",
|
||||
"number": 3,
|
||||
"hostname": "e77746bad0b9",
|
||||
"pid": 28336,
|
||||
"started_at": "2026-11-02T13:36:21.512813258Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:0e84db5e71b3243fb1788ca5681dac9ed806ce4ffcb80fd4fa59672ecb4668b3",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"old": {
|
||||
"id": "e91ca53a67f8494106c6d014999693c2cbb3f4ec79db94d9a019668fdb24634a",
|
||||
"name": "mtusi-lab3-osokin-api-2",
|
||||
"service": "api",
|
||||
"number": 2,
|
||||
"hostname": "e91ca53a67f8",
|
||||
"pid": 27229,
|
||||
"started_at": "2026-11-02T13:35:53.034956399Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:0e84db5e71b3243fb1788ca5681dac9ed806ce4ffcb80fd4fa59672ecb4668b3",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
"after": [
|
||||
{
|
||||
"id": "e77746bad0b9b0b63ea6e1f91df2108906611b4af7a98f19f734f1339b540e0d",
|
||||
"name": "mtusi-lab3-osokin-api-3",
|
||||
"service": "api",
|
||||
"number": 3,
|
||||
"hostname": "e77746bad0b9",
|
||||
"pid": 28336,
|
||||
"started_at": "2026-11-02T13:36:21.512813258Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:0e84db5e71b3243fb1788ca5681dac9ed806ce4ffcb80fd4fa59672ecb4668b3",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "bace794949d524e5daf3b1feb390cee1ed39e13f5d793157b692d3b71559b8bf",
|
||||
"name": "mtusi-lab3-osokin-api-4",
|
||||
"service": "api",
|
||||
"number": 4,
|
||||
"hostname": "bace794949d5",
|
||||
"pid": 28914,
|
||||
"started_at": "2026-11-02T13:36:35.917178941Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:0e84db5e71b3243fb1788ca5681dac9ed806ce4ffcb80fd4fa59672ecb4668b3",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"after": [
|
||||
{
|
||||
"id": "e77746bad0b9b0b63ea6e1f91df2108906611b4af7a98f19f734f1339b540e0d",
|
||||
"name": "mtusi-lab3-osokin-api-3",
|
||||
"service": "api",
|
||||
"number": 3,
|
||||
"hostname": "e77746bad0b9",
|
||||
"pid": 28336,
|
||||
"started_at": "2026-11-02T13:36:21.512813258Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:0e84db5e71b3243fb1788ca5681dac9ed806ce4ffcb80fd4fa59672ecb4668b3",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "bace794949d524e5daf3b1feb390cee1ed39e13f5d793157b692d3b71559b8bf",
|
||||
"name": "mtusi-lab3-osokin-api-4",
|
||||
"service": "api",
|
||||
"number": 4,
|
||||
"hostname": "bace794949d5",
|
||||
"pid": 28914,
|
||||
"started_at": "2026-11-02T13:36:35.917178941Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:0e84db5e71b3243fb1788ca5681dac9ed806ce4ffcb80fd4fa59672ecb4668b3",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"target_instance": "0700f348645b-f5a34903e39b",
|
||||
"stopped": {
|
||||
"id": "0700f348645b5bd3a8b3f4a68230f6fb02ad423271cc7397039d3adae960252f",
|
||||
"name": "mtusi-lab3-osokin-api-1",
|
||||
"service": "api",
|
||||
"number": 1,
|
||||
"hostname": "0700f348645b",
|
||||
"pid": 23269,
|
||||
"started_at": "2026-11-02T13:34:14.511777506Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:0e84db5e71b3243fb1788ca5681dac9ed806ce4ffcb80fd4fa59672ecb4668b3",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
"after": [
|
||||
{
|
||||
"id": "0700f348645b5bd3a8b3f4a68230f6fb02ad423271cc7397039d3adae960252f",
|
||||
"name": "mtusi-lab3-osokin-api-1",
|
||||
"service": "api",
|
||||
"number": 1,
|
||||
"hostname": "0700f348645b",
|
||||
"pid": 0,
|
||||
"started_at": "2026-11-02T13:34:14.511777506Z",
|
||||
"status": "exited",
|
||||
"health": "unhealthy",
|
||||
"image": "sha256:0e84db5e71b3243fb1788ca5681dac9ed806ce4ffcb80fd4fa59672ecb4668b3",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "e91ca53a67f8494106c6d014999693c2cbb3f4ec79db94d9a019668fdb24634a",
|
||||
"name": "mtusi-lab3-osokin-api-2",
|
||||
"service": "api",
|
||||
"number": 2,
|
||||
"hostname": "e91ca53a67f8",
|
||||
"pid": 23303,
|
||||
"started_at": "2026-11-02T13:34:14.576732298Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:0e84db5e71b3243fb1788ca5681dac9ed806ce4ffcb80fd4fa59672ecb4668b3",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
}
|
||||
],
|
||||
"hook_seconds": 0.9716456001624465
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
$ python scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
@@ -0,0 +1,198 @@
|
||||
Cloning into 'C:\Users\blobb\OneDrive\Документи\ChatGPT\высоконагружноут\lab3\output\clean-check'...
|
||||
Local .env and secrets ready (existing values preserved).
|
||||
Image mtusi-messenger:lab3 Building
|
||||
Image mtusi-messenger:lab3 Building
|
||||
#1 [internal] load local bake definitions
|
||||
#1 reading from stdin 1.32kB 0.1s done
|
||||
#1 DONE 0.1s
|
||||
|
||||
#2 [migrate internal] load build definition from Dockerfile
|
||||
#2 transferring dockerfile: 723B 0.0s done
|
||||
#2 DONE 0.1s
|
||||
|
||||
#3 [api internal] load metadata for docker.io/library/python:3.13.7-slim-bookworm
|
||||
#3 DONE 1.3s
|
||||
|
||||
#4 [api internal] load .dockerignore
|
||||
#4 transferring context: 224B 0.0s done
|
||||
#4 DONE 0.1s
|
||||
|
||||
#5 [migrate 1/11] FROM docker.io/library/python:3.13.7-slim-bookworm@sha256:adafcc17694d715c905b4c7bebd96907a1fd5cf183395f0ebc4d3428bd22d92d
|
||||
#5 resolve docker.io/library/python:3.13.7-slim-bookworm@sha256:adafcc17694d715c905b4c7bebd96907a1fd5cf183395f0ebc4d3428bd22d92d 0.1s done
|
||||
#5 DONE 0.1s
|
||||
|
||||
#6 [api internal] load build context
|
||||
#6 transferring context: 214.97kB 0.2s done
|
||||
#6 DONE 0.3s
|
||||
|
||||
#7 [api 2/11] WORKDIR /app
|
||||
#7 CACHED
|
||||
|
||||
#8 [api 3/11] COPY requirements.txt .
|
||||
#8 CACHED
|
||||
|
||||
#9 [api 4/11] RUN pip install --no-cache-dir -r requirements.txt && useradd --uid 10001 --create-home app
|
||||
#9 CACHED
|
||||
|
||||
#7 [migrate 2/11] WORKDIR /app
|
||||
#7 CACHED
|
||||
|
||||
#8 [migrate 3/11] COPY requirements.txt .
|
||||
#8 CACHED
|
||||
|
||||
#9 [migrate 4/11] RUN pip install --no-cache-dir -r requirements.txt && useradd --uid 10001 --create-home app
|
||||
#9 CACHED
|
||||
|
||||
#10 [migrate 5/11] COPY src ./src
|
||||
#10 DONE 0.1s
|
||||
|
||||
#11 [migrate 6/11] COPY migrations ./migrations
|
||||
#11 DONE 0.1s
|
||||
|
||||
#12 [migrate 7/11] COPY contracts ./contracts
|
||||
#12 DONE 0.1s
|
||||
|
||||
#13 [api 8/11] COPY tests ./tests
|
||||
#13 DONE 0.1s
|
||||
|
||||
#14 [migrate 9/11] COPY student-tests ./student-tests
|
||||
#14 DONE 0.1s
|
||||
|
||||
#15 [api 10/11] COPY scripts ./scripts
|
||||
#15 DONE 0.1s
|
||||
|
||||
#16 [migrate 11/11] COPY lab.json requirements-dev.txt ./
|
||||
#16 DONE 0.1s
|
||||
|
||||
#17 [migrate] exporting to image
|
||||
#17 exporting layers
|
||||
#17 exporting layers 0.9s done
|
||||
#17 exporting manifest sha256:3beed57d1d3b67ec2fa74e6e9f6d13f6da86c52be76c15dcd2030881cb9bbdfb 0.1s done
|
||||
#17 exporting config sha256:fc0421d9ce68e7a2ca3e540ea36a1aca4df51c6042d6c05876867fa4291b17f3
|
||||
#17 exporting config sha256:fc0421d9ce68e7a2ca3e540ea36a1aca4df51c6042d6c05876867fa4291b17f3 0.1s done
|
||||
#17 exporting attestation manifest sha256:65e1bb3a9940d30bccf64bde2e9f573ec47670040de09ed6f38f9448e4db0c7e
|
||||
#17 exporting attestation manifest sha256:65e1bb3a9940d30bccf64bde2e9f573ec47670040de09ed6f38f9448e4db0c7e 0.1s done
|
||||
#17 exporting manifest list sha256:a92127e2f508e2d482561d8fffe63c9555365d992c82e22f999751cb19ef3b8f 0.0s done
|
||||
#17 naming to docker.io/library/mtusi-messenger:lab3
|
||||
#17 naming to docker.io/library/mtusi-messenger:lab3 0.0s done
|
||||
#17 unpacking to docker.io/library/mtusi-messenger:lab3
|
||||
#17 unpacking to docker.io/library/mtusi-messenger:lab3 0.8s done
|
||||
#17 DONE 2.1s
|
||||
|
||||
#18 [api] exporting to image
|
||||
#18 exporting layers 0.9s done
|
||||
#18 exporting manifest sha256:b8cd4b1a86d1cd3715a6cbfdf1c34ea16a0f4389abc389f36d1adfe2d642f099 0.1s done
|
||||
#18 exporting config sha256:1648fa82582d101839573d78abf6dab6de8882b316b398f6c04e7a36cf9c3605 0.1s done
|
||||
#18 exporting attestation manifest sha256:4f1e8c8f70eaccc53915c6c217a0ab1df09129141451ee64ede06ea52c9b7e29 0.1s done
|
||||
#18 exporting manifest list sha256:2366ffcea5e3af49173d51e00d561f12a1f894b02fea72318d4d379a766f77a2 0.0s done
|
||||
#18 naming to docker.io/library/mtusi-messenger:lab3 done
|
||||
#18 unpacking to docker.io/library/mtusi-messenger:lab3 0.8s done
|
||||
#18 DONE 2.3s
|
||||
|
||||
#19 [migrate] resolving provenance for metadata file
|
||||
#19 DONE 0.0s
|
||||
|
||||
#20 [api] resolving provenance for metadata file
|
||||
#20 DONE 0.0s
|
||||
Image mtusi-messenger:lab3 Built
|
||||
Image mtusi-messenger:lab3 Built
|
||||
Network mtusi-lab3-osokin-clean_backend Creating
|
||||
Network mtusi-lab3-osokin-clean_frontend Creating
|
||||
Network mtusi-lab3-osokin-clean_frontend Creating
|
||||
Volume mtusi-lab3-osokin-clean_pgdata Creating
|
||||
Volume mtusi-lab3-osokin-clean_pgdata Creating
|
||||
Network mtusi-lab3-osokin-clean_backend Creating
|
||||
Volume mtusi-lab3-osokin-clean_redisdata Creating
|
||||
Volume mtusi-lab3-osokin-clean_redisdata Creating
|
||||
Volume mtusi-lab3-osokin-clean_pgdata Created
|
||||
Volume mtusi-lab3-osokin-clean_pgdata Created
|
||||
Volume mtusi-lab3-osokin-clean_redisdata Created
|
||||
Volume mtusi-lab3-osokin-clean_redisdata Created
|
||||
Network mtusi-lab3-osokin-clean_frontend Created
|
||||
Network mtusi-lab3-osokin-clean_frontend Created
|
||||
Network mtusi-lab3-osokin-clean_backend Created
|
||||
Network mtusi-lab3-osokin-clean_backend Created
|
||||
Container mtusi-lab3-osokin-clean-db-1 Creating
|
||||
Container mtusi-lab3-osokin-clean-redis-1 Creating
|
||||
Container mtusi-lab3-osokin-clean-redis-1 Created
|
||||
Container mtusi-lab3-osokin-clean-db-1 Created
|
||||
Container mtusi-lab3-osokin-clean-migrate-1 Creating
|
||||
Container mtusi-lab3-osokin-clean-migrate-1 Created
|
||||
Container mtusi-lab3-osokin-clean-api-2 Creating
|
||||
Container mtusi-lab3-osokin-clean-api-1 Creating
|
||||
Container mtusi-lab3-osokin-clean-api-1 Created
|
||||
Container mtusi-lab3-osokin-clean-api-2 Created
|
||||
Container mtusi-lab3-osokin-clean-lb-1 Creating
|
||||
Container mtusi-lab3-osokin-clean-lb-1 Created
|
||||
Container mtusi-lab3-osokin-clean-redis-1 Starting
|
||||
Container mtusi-lab3-osokin-clean-db-1 Starting
|
||||
Container mtusi-lab3-osokin-clean-redis-1 Started
|
||||
Container mtusi-lab3-osokin-clean-db-1 Started
|
||||
Container mtusi-lab3-osokin-clean-db-1 Waiting
|
||||
Container mtusi-lab3-osokin-clean-db-1 Healthy
|
||||
Container mtusi-lab3-osokin-clean-migrate-1 Starting
|
||||
Container mtusi-lab3-osokin-clean-migrate-1 Started
|
||||
Container mtusi-lab3-osokin-clean-migrate-1 Waiting
|
||||
Container mtusi-lab3-osokin-clean-redis-1 Waiting
|
||||
Container mtusi-lab3-osokin-clean-redis-1 Healthy
|
||||
Container mtusi-lab3-osokin-clean-migrate-1 Exited
|
||||
Container mtusi-lab3-osokin-clean-api-2 Starting
|
||||
Container mtusi-lab3-osokin-clean-api-2 Started
|
||||
Container mtusi-lab3-osokin-clean-api-1 Starting
|
||||
Container mtusi-lab3-osokin-clean-api-1 Started
|
||||
Container mtusi-lab3-osokin-clean-api-2 Waiting
|
||||
Container mtusi-lab3-osokin-clean-api-1 Waiting
|
||||
Container mtusi-lab3-osokin-clean-api-2 Healthy
|
||||
Container mtusi-lab3-osokin-clean-api-1 Healthy
|
||||
Container mtusi-lab3-osokin-clean-lb-1 Starting
|
||||
Container mtusi-lab3-osokin-clean-lb-1 Started
|
||||
Container mtusi-lab3-osokin-clean-api-2 Waiting
|
||||
Container mtusi-lab3-osokin-clean-api-1 Waiting
|
||||
Container mtusi-lab3-osokin-clean-lb-1 Waiting
|
||||
Container mtusi-lab3-osokin-clean-db-1 Waiting
|
||||
Container mtusi-lab3-osokin-clean-redis-1 Waiting
|
||||
Container mtusi-lab3-osokin-clean-migrate-1 Waiting
|
||||
Container mtusi-lab3-osokin-clean-db-1 Healthy
|
||||
Container mtusi-lab3-osokin-clean-migrate-1 Exited
|
||||
Container mtusi-lab3-osokin-clean-redis-1 Healthy
|
||||
Container mtusi-lab3-osokin-clean-api-2 Healthy
|
||||
Container mtusi-lab3-osokin-clean-api-1 Healthy
|
||||
Container mtusi-lab3-osokin-clean-lb-1 Healthy
|
||||
PASS: lab3 public API scenario; infrastructure and grading evidence remain separate.
|
||||
{"result": "PASS", "parallel_requests": 16, "api_instances": ["9ac6846ff6f9-a8e7510753d6", "c4dd0a2e02eb-13ddbadaf451"], "unique_messages": 1, "scope_conflict_logout": "PASS"}
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi-lab3-osokin-clean-api-1 mtusi-messenger:lab3 "python -m messenger…" api 22 seconds ago Up 13 seconds (healthy) 8080/tcp
|
||||
mtusi-lab3-osokin-clean-api-2 mtusi-messenger:lab3 "python -m messenger…" api 22 seconds ago Up 13 seconds (healthy) 8080/tcp
|
||||
mtusi-lab3-osokin-clean-db-1 postgres:17.6-bookworm "docker-entrypoint.s…" db 23 seconds ago Up 21 seconds (healthy) 5432/tcp
|
||||
mtusi-lab3-osokin-clean-lb-1 haproxy:3.0.16-alpine "docker-entrypoint.s…" lb 22 seconds ago Up 7 seconds (healthy) 127.0.0.1:8081->8080/tcp
|
||||
mtusi-lab3-osokin-clean-migrate-1 mtusi-messenger:lab3 "python -m messenger…" migrate 23 seconds ago Exited (0) 14 seconds ago
|
||||
mtusi-lab3-osokin-clean-redis-1 redis:7.4.5-bookworm "docker-entrypoint.s…" redis 23 seconds ago Up 21 seconds (healthy) 6379/tcp
|
||||
PASS: committed clean clone, new secrets, fresh project volumes, smoke and concurrent replay.
|
||||
Container mtusi-lab3-osokin-clean-lb-1 Stopping
|
||||
Container mtusi-lab3-osokin-clean-lb-1 Stopped
|
||||
Container mtusi-lab3-osokin-clean-lb-1 Removing
|
||||
Container mtusi-lab3-osokin-clean-lb-1 Removed
|
||||
Container mtusi-lab3-osokin-clean-api-1 Stopping
|
||||
Container mtusi-lab3-osokin-clean-api-2 Stopping
|
||||
Container mtusi-lab3-osokin-clean-api-1 Stopped
|
||||
Container mtusi-lab3-osokin-clean-api-1 Removing
|
||||
Container mtusi-lab3-osokin-clean-api-2 Stopped
|
||||
Container mtusi-lab3-osokin-clean-api-2 Removing
|
||||
Container mtusi-lab3-osokin-clean-api-1 Removed
|
||||
Container mtusi-lab3-osokin-clean-api-2 Removed
|
||||
Container mtusi-lab3-osokin-clean-migrate-1 Stopping
|
||||
Container mtusi-lab3-osokin-clean-redis-1 Stopping
|
||||
Container mtusi-lab3-osokin-clean-migrate-1 Stopped
|
||||
Container mtusi-lab3-osokin-clean-migrate-1 Removing
|
||||
Container mtusi-lab3-osokin-clean-migrate-1 Removed
|
||||
Container mtusi-lab3-osokin-clean-db-1 Stopping
|
||||
Container mtusi-lab3-osokin-clean-redis-1 Stopped
|
||||
Container mtusi-lab3-osokin-clean-redis-1 Removing
|
||||
Container mtusi-lab3-osokin-clean-redis-1 Removed
|
||||
Container mtusi-lab3-osokin-clean-db-1 Stopped
|
||||
Container mtusi-lab3-osokin-clean-db-1 Removing
|
||||
Container mtusi-lab3-osokin-clean-db-1 Removed
|
||||
Network mtusi-lab3-osokin-clean_backend Removing
|
||||
Network mtusi-lab3-osokin-clean_frontend Removing
|
||||
Network mtusi-lab3-osokin-clean_backend Removed
|
||||
Network mtusi-lab3-osokin-clean_frontend Removed
|
||||
@@ -0,0 +1 @@
|
||||
$ docker compose --env-file .env config --quiet
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"verified_at_utc": "2026-11-02T13:36:55.726875+00:00",
|
||||
"host_os": "Windows-10-10.0.19045-SP0",
|
||||
"client_python": "3.14.3",
|
||||
"docker": {
|
||||
"ServerVersion": "29.8.2",
|
||||
"OperatingSystem": "Docker Desktop",
|
||||
"KernelVersion": "6.18.54.1-microsoft-standard-WSL2",
|
||||
"NCPU": 8,
|
||||
"MemTotal": 8275038208,
|
||||
"Architecture": "x86_64"
|
||||
},
|
||||
"images": {
|
||||
"postgres:17.6-bookworm": [
|
||||
"postgres@sha256:f3bd19c606e442c3d7bdfa8002e03fe260a1023351e0ea4598032022b68dd6e3"
|
||||
],
|
||||
"redis:7.4.5-bookworm": [
|
||||
"redis@sha256:90e7a336d044f1abc9e9dbc05d65566850896d11453bbd1dd0fb7e5059f0e8fb"
|
||||
],
|
||||
"haproxy:3.0.16-alpine": [
|
||||
"haproxy@sha256:0e310ea3294f7854692c37898920fd2c04ea6abdb89724092e93280a2b85b4cf"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
$ python tests/resilience.py --mode failover --base-url http://127.0.0.1:8080 --action-script scripts/stop-one.cmd
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 112, "failed_attempts": 2, "first_recovery_seconds": 1.852}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
@@ -0,0 +1,2 @@
|
||||
$ docker compose exec -T api python student-tests/test_idempotency.py
|
||||
{"result": "PASS", "parallel_requests": 16, "api_instances": ["0700f348645b-b7e352b8d6c8", "e91ca53a67f8-3f2d443c13b7"], "unique_messages": 1, "scope_conflict_logout": "PASS"}
|
||||
@@ -0,0 +1,24 @@
|
||||
$ python student-tests/test_recovery.py
|
||||
Container mtusi-lab3-osokin-api-2 Running
|
||||
Container mtusi-lab3-osokin-api-1 Starting
|
||||
Container mtusi-lab3-osokin-api-1 Started
|
||||
{"mode": "stop", "target": "mtusi-lab3-osokin-api-1", "at_utc": "2026-11-02T13:35:33.921725+00:00", "duration_seconds": 32.253, "warmup_seconds": 5, "concurrency": 4, "profile": "each worker: POST + GET, then 30ms pause; closed loop", "initial_messages": 1, "final_messages": 945, "confirmations": 944, "operations": 1910, "successful_operations": 1887, "errors": 23, "error_percent": 1.204, "successful_rps": 58.506, "latency_success_ms": {"p50": 32.614, "p95": 129.246, "p99": 235.578}, "instances_before": ["0700f348645b-8f809d1e50c5", "e91ca53a67f8-c1d5fe30dae7"], "confirmed_data_lost": 0, "duplicate_messages": 0, "first_success_after_stop_seconds_from_action_start": {"read": 1.86, "write": 1.861}, "last_error_seconds_from_action_start": 1.963, "successful_rps_8s_after_stop": 52.25}
|
||||
Evidence: evidence/load-mtusi-lab3-osokin-api-1.json
|
||||
Container mtusi-lab3-osokin-api-1 Running
|
||||
Container mtusi-lab3-osokin-api-2 Starting
|
||||
Container mtusi-lab3-osokin-api-2 Started
|
||||
{"mode": "stop", "target": "mtusi-lab3-osokin-api-2", "at_utc": "2026-11-02T13:36:11.301910+00:00", "duration_seconds": 32.316, "warmup_seconds": 5, "concurrency": 4, "profile": "each worker: POST + GET, then 30ms pause; closed loop", "initial_messages": 1, "final_messages": 853, "confirmations": 852, "operations": 1722, "successful_operations": 1698, "errors": 24, "error_percent": 1.394, "successful_rps": 52.544, "latency_success_ms": {"p50": 40.295, "p95": 144.47, "p99": 205.802}, "instances_before": ["0700f348645b-1fa55a5631e0", "e91ca53a67f8-c1d5fe30dae7"], "confirmed_data_lost": 0, "duplicate_messages": 0, "first_success_after_stop_seconds_from_action_start": {"read": 1.651, "write": 1.625}, "last_error_seconds_from_action_start": 1.62, "successful_rps_8s_after_stop": 37.125}
|
||||
Evidence: evidence/load-mtusi-lab3-osokin-api-2.json
|
||||
Container mtusi-lab3-osokin-api-2 Running
|
||||
Container mtusi-lab3-osokin-api-3 Creating
|
||||
Container mtusi-lab3-osokin-api-3 Created
|
||||
Container mtusi-lab3-osokin-api-3 Starting
|
||||
Container mtusi-lab3-osokin-api-3 Started
|
||||
Container mtusi-lab3-osokin-api-3 Running
|
||||
Container mtusi-lab3-osokin-api-4 Creating
|
||||
Container mtusi-lab3-osokin-api-4 Created
|
||||
Container mtusi-lab3-osokin-api-4 Starting
|
||||
Container mtusi-lab3-osokin-api-4 Started
|
||||
{"mode": "rolling", "target": null, "at_utc": "2026-11-02T13:36:51.491875+00:00", "duration_seconds": 32.262, "warmup_seconds": 5, "concurrency": 4, "profile": "each worker: POST + GET, then 30ms pause; closed loop", "initial_messages": 1, "final_messages": 766, "confirmations": 765, "operations": 1604, "successful_operations": 1538, "errors": 66, "error_percent": 4.115, "successful_rps": 47.672, "latency_success_ms": {"p50": 40.72, "p95": 167.009, "p99": 249.067}, "instances_before": ["0700f348645b-1fa55a5631e0", "e91ca53a67f8-bfb725dd79c4"], "confirmed_data_lost": 0, "duplicate_messages": 0}
|
||||
Evidence: evidence/load-rolling.json
|
||||
PASS: grade 4 load scenarios; no scale or multi-node research track.
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,6 @@
|
||||
$ docker compose run --rm --no-deps migrate
|
||||
Container mtusi-lab3-osokin-migrate-run-edf517c23d72 Creating
|
||||
Container mtusi-lab3-osokin-migrate-run-edf517c23d72 Created
|
||||
Already applied: 001_initial.sql
|
||||
Already applied: 002_idempotency.sql
|
||||
Migrations committed.
|
||||
@@ -0,0 +1,3 @@
|
||||
$ python tests/resilience.py --mode persistence --base-url http://127.0.0.1:8080 --action-script scripts/restart.cmd
|
||||
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,124 @@
|
||||
$ python scripts/labctl.py state
|
||||
[
|
||||
{
|
||||
"id": "e77746bad0b9b0b63ea6e1f91df2108906611b4af7a98f19f734f1339b540e0d",
|
||||
"name": "mtusi-lab3-osokin-api-3",
|
||||
"service": "api",
|
||||
"number": 3,
|
||||
"hostname": "e77746bad0b9",
|
||||
"pid": 28336,
|
||||
"started_at": "2026-11-02T13:36:21.512813258Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:0e84db5e71b3243fb1788ca5681dac9ed806ce4ffcb80fd4fa59672ecb4668b3",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "bace794949d524e5daf3b1feb390cee1ed39e13f5d793157b692d3b71559b8bf",
|
||||
"name": "mtusi-lab3-osokin-api-4",
|
||||
"service": "api",
|
||||
"number": 4,
|
||||
"hostname": "bace794949d5",
|
||||
"pid": 28914,
|
||||
"started_at": "2026-11-02T13:36:35.917178941Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:0e84db5e71b3243fb1788ca5681dac9ed806ce4ffcb80fd4fa59672ecb4668b3",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "071b123e1f8c4e837ae997c8403efff92674321f2ccadef8714d4c8e38bc4ee8",
|
||||
"name": "mtusi-lab3-osokin-db-1",
|
||||
"service": "db",
|
||||
"number": 1,
|
||||
"hostname": "071b123e1f8c",
|
||||
"pid": 23212,
|
||||
"started_at": "2026-11-02T13:34:14.441800497Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:f3bd19c606e442c3d7bdfa8002e03fe260a1023351e0ea4598032022b68dd6e3",
|
||||
"memory_limit": 536870912,
|
||||
"cpu_limit": 2.0,
|
||||
"published_ports": {
|
||||
"5432/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"name": "mtusi-lab3-osokin_pgdata",
|
||||
"destination": "/var/lib/postgresql/data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "c30f4b49ac01fc1f6072e0a477f471e195c61bded9a5fc41c9f8ad3064f9022e",
|
||||
"name": "mtusi-lab3-osokin-lb-1",
|
||||
"service": "lb",
|
||||
"number": 1,
|
||||
"hostname": "c30f4b49ac01",
|
||||
"pid": 23378,
|
||||
"started_at": "2026-11-02T13:34:14.739292592Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:0e310ea3294f7854692c37898920fd2c04ea6abdb89724092e93280a2b85b4cf",
|
||||
"memory_limit": 134217728,
|
||||
"cpu_limit": 0.5,
|
||||
"published_ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "8080"
|
||||
}
|
||||
]
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "82311c8061080b390b484b4bd841b2cdae56c5b50d1972fa2923fe9311c8f7fa",
|
||||
"name": "mtusi-lab3-osokin-migrate-1",
|
||||
"service": "migrate",
|
||||
"number": 1,
|
||||
"hostname": "82311c806108",
|
||||
"pid": 0,
|
||||
"started_at": "2026-11-02T13:29:59.621073044Z",
|
||||
"status": "exited",
|
||||
"health": null,
|
||||
"image": "sha256:0e84db5e71b3243fb1788ca5681dac9ed806ce4ffcb80fd4fa59672ecb4668b3",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "5184c3c05e75d5c59b414c876840215b913b830992f29e5e3b00f097b3af28d0",
|
||||
"name": "mtusi-lab3-osokin-redis-1",
|
||||
"service": "redis",
|
||||
"number": 1,
|
||||
"hostname": "5184c3c05e75",
|
||||
"pid": 23247,
|
||||
"started_at": "2026-11-02T13:34:14.484264122Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:90e7a336d044f1abc9e9dbc05d65566850896d11453bbd1dd0fb7e5059f0e8fb",
|
||||
"memory_limit": 134217728,
|
||||
"cpu_limit": 0.5,
|
||||
"published_ports": {
|
||||
"6379/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"name": "mtusi-lab3-osokin_redisdata",
|
||||
"destination": "/data"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,216 @@
|
||||
{
|
||||
"before": [
|
||||
{
|
||||
"id": "32ed9304362f418c78806b66482ea7b642b83fff81dbed6f33b66174f5c14a59",
|
||||
"name": "mtusi-lab3-osokin-api-3",
|
||||
"service": "api",
|
||||
"number": 3,
|
||||
"hostname": "32ed9304362f",
|
||||
"pid": 36331,
|
||||
"started_at": "2026-11-02T17:35:37.246585773Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:60edae93ffe5cfb7aa028391005ca54aaa1b3f5ca75ae2db56820930297bc593",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "6a9d2dc65303943669653bdaa5c660593d0e8760c1ccadd2fbad2d0571112a7a",
|
||||
"name": "mtusi-lab3-osokin-api-4",
|
||||
"service": "api",
|
||||
"number": 4,
|
||||
"hostname": "6a9d2dc65303",
|
||||
"pid": 37833,
|
||||
"started_at": "2026-11-02T17:36:16.924518378Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:60edae93ffe5cfb7aa028391005ca54aaa1b3f5ca75ae2db56820930297bc593",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "071b123e1f8c4e837ae997c8403efff92674321f2ccadef8714d4c8e38bc4ee8",
|
||||
"name": "mtusi-lab3-osokin-db-1",
|
||||
"service": "db",
|
||||
"number": 1,
|
||||
"hostname": "071b123e1f8c",
|
||||
"pid": 23212,
|
||||
"started_at": "2026-11-02T13:34:14.441800497Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:f3bd19c606e442c3d7bdfa8002e03fe260a1023351e0ea4598032022b68dd6e3",
|
||||
"memory_limit": 536870912,
|
||||
"cpu_limit": 2.0,
|
||||
"published_ports": {
|
||||
"5432/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"name": "mtusi-lab3-osokin_pgdata",
|
||||
"destination": "/var/lib/postgresql/data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "c30f4b49ac01fc1f6072e0a477f471e195c61bded9a5fc41c9f8ad3064f9022e",
|
||||
"name": "mtusi-lab3-osokin-lb-1",
|
||||
"service": "lb",
|
||||
"number": 1,
|
||||
"hostname": "c30f4b49ac01",
|
||||
"pid": 23378,
|
||||
"started_at": "2026-11-02T13:34:14.739292592Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:0e310ea3294f7854692c37898920fd2c04ea6abdb89724092e93280a2b85b4cf",
|
||||
"memory_limit": 134217728,
|
||||
"cpu_limit": 0.5,
|
||||
"published_ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "8080"
|
||||
}
|
||||
]
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "5184c3c05e75d5c59b414c876840215b913b830992f29e5e3b00f097b3af28d0",
|
||||
"name": "mtusi-lab3-osokin-redis-1",
|
||||
"service": "redis",
|
||||
"number": 1,
|
||||
"hostname": "5184c3c05e75",
|
||||
"pid": 23247,
|
||||
"started_at": "2026-11-02T13:34:14.484264122Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:90e7a336d044f1abc9e9dbc05d65566850896d11453bbd1dd0fb7e5059f0e8fb",
|
||||
"memory_limit": 134217728,
|
||||
"cpu_limit": 0.5,
|
||||
"published_ports": {
|
||||
"6379/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"name": "mtusi-lab3-osokin_redisdata",
|
||||
"destination": "/data"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"after": [
|
||||
{
|
||||
"id": "32ed9304362f418c78806b66482ea7b642b83fff81dbed6f33b66174f5c14a59",
|
||||
"name": "mtusi-lab3-osokin-api-3",
|
||||
"service": "api",
|
||||
"number": 3,
|
||||
"hostname": "32ed9304362f",
|
||||
"pid": 39964,
|
||||
"started_at": "2026-11-02T17:37:03.681246278Z",
|
||||
"status": "running",
|
||||
"health": "starting",
|
||||
"image": "sha256:60edae93ffe5cfb7aa028391005ca54aaa1b3f5ca75ae2db56820930297bc593",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "6a9d2dc65303943669653bdaa5c660593d0e8760c1ccadd2fbad2d0571112a7a",
|
||||
"name": "mtusi-lab3-osokin-api-4",
|
||||
"service": "api",
|
||||
"number": 4,
|
||||
"hostname": "6a9d2dc65303",
|
||||
"pid": 40009,
|
||||
"started_at": "2026-11-02T17:37:03.736590611Z",
|
||||
"status": "running",
|
||||
"health": "starting",
|
||||
"image": "sha256:60edae93ffe5cfb7aa028391005ca54aaa1b3f5ca75ae2db56820930297bc593",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "071b123e1f8c4e837ae997c8403efff92674321f2ccadef8714d4c8e38bc4ee8",
|
||||
"name": "mtusi-lab3-osokin-db-1",
|
||||
"service": "db",
|
||||
"number": 1,
|
||||
"hostname": "071b123e1f8c",
|
||||
"pid": 39911,
|
||||
"started_at": "2026-11-02T17:37:03.571308856Z",
|
||||
"status": "running",
|
||||
"health": "starting",
|
||||
"image": "sha256:f3bd19c606e442c3d7bdfa8002e03fe260a1023351e0ea4598032022b68dd6e3",
|
||||
"memory_limit": 536870912,
|
||||
"cpu_limit": 2.0,
|
||||
"published_ports": {
|
||||
"5432/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"name": "mtusi-lab3-osokin_pgdata",
|
||||
"destination": "/var/lib/postgresql/data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "c30f4b49ac01fc1f6072e0a477f471e195c61bded9a5fc41c9f8ad3064f9022e",
|
||||
"name": "mtusi-lab3-osokin-lb-1",
|
||||
"service": "lb",
|
||||
"number": 1,
|
||||
"hostname": "c30f4b49ac01",
|
||||
"pid": 40127,
|
||||
"started_at": "2026-11-02T17:37:04.129257642Z",
|
||||
"status": "running",
|
||||
"health": "starting",
|
||||
"image": "sha256:0e310ea3294f7854692c37898920fd2c04ea6abdb89724092e93280a2b85b4cf",
|
||||
"memory_limit": 134217728,
|
||||
"cpu_limit": 0.5,
|
||||
"published_ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "8080"
|
||||
}
|
||||
]
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "5184c3c05e75d5c59b414c876840215b913b830992f29e5e3b00f097b3af28d0",
|
||||
"name": "mtusi-lab3-osokin-redis-1",
|
||||
"service": "redis",
|
||||
"number": 1,
|
||||
"hostname": "5184c3c05e75",
|
||||
"pid": 39869,
|
||||
"started_at": "2026-11-02T17:37:03.412252585Z",
|
||||
"status": "running",
|
||||
"health": "starting",
|
||||
"image": "sha256:90e7a336d044f1abc9e9dbc05d65566850896d11453bbd1dd0fb7e5059f0e8fb",
|
||||
"memory_limit": 134217728,
|
||||
"cpu_limit": 0.5,
|
||||
"published_ports": {
|
||||
"6379/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"name": "mtusi-lab3-osokin_redisdata",
|
||||
"destination": "/data"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
$ python scripts/labctl.py restore
|
||||
Container mtusi-lab3-osokin-api-2 Running
|
||||
Container mtusi-lab3-osokin-api-1 Starting
|
||||
Container mtusi-lab3-osokin-api-1 Started
|
||||
@@ -0,0 +1,3 @@
|
||||
$ python scripts/labctl.py restore
|
||||
Container mtusi-lab3-osokin-api-1 Running
|
||||
Container mtusi-lab3-osokin-api-2 Running
|
||||
@@ -0,0 +1,196 @@
|
||||
{
|
||||
"before": [
|
||||
{
|
||||
"id": "32ed9304362f418c78806b66482ea7b642b83fff81dbed6f33b66174f5c14a59",
|
||||
"name": "mtusi-lab3-osokin-api-3",
|
||||
"service": "api",
|
||||
"number": 3,
|
||||
"hostname": "32ed9304362f",
|
||||
"pid": 39964,
|
||||
"started_at": "2026-11-02T17:37:03.681246278Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:60edae93ffe5cfb7aa028391005ca54aaa1b3f5ca75ae2db56820930297bc593",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "6a9d2dc65303943669653bdaa5c660593d0e8760c1ccadd2fbad2d0571112a7a",
|
||||
"name": "mtusi-lab3-osokin-api-4",
|
||||
"service": "api",
|
||||
"number": 4,
|
||||
"hostname": "6a9d2dc65303",
|
||||
"pid": 40009,
|
||||
"started_at": "2026-11-02T17:37:03.736590611Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:60edae93ffe5cfb7aa028391005ca54aaa1b3f5ca75ae2db56820930297bc593",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
}
|
||||
],
|
||||
"replacements": [
|
||||
{
|
||||
"old": {
|
||||
"id": "32ed9304362f418c78806b66482ea7b642b83fff81dbed6f33b66174f5c14a59",
|
||||
"name": "mtusi-lab3-osokin-api-3",
|
||||
"service": "api",
|
||||
"number": 3,
|
||||
"hostname": "32ed9304362f",
|
||||
"pid": 39964,
|
||||
"started_at": "2026-11-02T17:37:03.681246278Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:60edae93ffe5cfb7aa028391005ca54aaa1b3f5ca75ae2db56820930297bc593",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
"after": [
|
||||
{
|
||||
"id": "6a9d2dc65303943669653bdaa5c660593d0e8760c1ccadd2fbad2d0571112a7a",
|
||||
"name": "mtusi-lab3-osokin-api-4",
|
||||
"service": "api",
|
||||
"number": 4,
|
||||
"hostname": "6a9d2dc65303",
|
||||
"pid": 40009,
|
||||
"started_at": "2026-11-02T17:37:03.736590611Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:60edae93ffe5cfb7aa028391005ca54aaa1b3f5ca75ae2db56820930297bc593",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "43b4dbfa36eb4a10834498e26b20b2860e942f833cd44d1572d299415539a7cf",
|
||||
"name": "mtusi-lab3-osokin-api-5",
|
||||
"service": "api",
|
||||
"number": 5,
|
||||
"hostname": "43b4dbfa36eb",
|
||||
"pid": 42435,
|
||||
"started_at": "2026-11-02T17:37:57.758591108Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:60edae93ffe5cfb7aa028391005ca54aaa1b3f5ca75ae2db56820930297bc593",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"old": {
|
||||
"id": "6a9d2dc65303943669653bdaa5c660593d0e8760c1ccadd2fbad2d0571112a7a",
|
||||
"name": "mtusi-lab3-osokin-api-4",
|
||||
"service": "api",
|
||||
"number": 4,
|
||||
"hostname": "6a9d2dc65303",
|
||||
"pid": 40009,
|
||||
"started_at": "2026-11-02T17:37:03.736590611Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:60edae93ffe5cfb7aa028391005ca54aaa1b3f5ca75ae2db56820930297bc593",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
"after": [
|
||||
{
|
||||
"id": "43b4dbfa36eb4a10834498e26b20b2860e942f833cd44d1572d299415539a7cf",
|
||||
"name": "mtusi-lab3-osokin-api-5",
|
||||
"service": "api",
|
||||
"number": 5,
|
||||
"hostname": "43b4dbfa36eb",
|
||||
"pid": 42435,
|
||||
"started_at": "2026-11-02T17:37:57.758591108Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:60edae93ffe5cfb7aa028391005ca54aaa1b3f5ca75ae2db56820930297bc593",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "dcf5930418702b4ecc629d16661e4f616d7c2a4caa5290517d203fa7a493e728",
|
||||
"name": "mtusi-lab3-osokin-api-6",
|
||||
"service": "api",
|
||||
"number": 6,
|
||||
"hostname": "dcf593041870",
|
||||
"pid": 42989,
|
||||
"started_at": "2026-11-02T17:38:10.934268194Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:60edae93ffe5cfb7aa028391005ca54aaa1b3f5ca75ae2db56820930297bc593",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"after": [
|
||||
{
|
||||
"id": "43b4dbfa36eb4a10834498e26b20b2860e942f833cd44d1572d299415539a7cf",
|
||||
"name": "mtusi-lab3-osokin-api-5",
|
||||
"service": "api",
|
||||
"number": 5,
|
||||
"hostname": "43b4dbfa36eb",
|
||||
"pid": 42435,
|
||||
"started_at": "2026-11-02T17:37:57.758591108Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:60edae93ffe5cfb7aa028391005ca54aaa1b3f5ca75ae2db56820930297bc593",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "dcf5930418702b4ecc629d16661e4f616d7c2a4caa5290517d203fa7a493e728",
|
||||
"name": "mtusi-lab3-osokin-api-6",
|
||||
"service": "api",
|
||||
"number": 6,
|
||||
"hostname": "dcf593041870",
|
||||
"pid": 42989,
|
||||
"started_at": "2026-11-02T17:38:10.934268194Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:60edae93ffe5cfb7aa028391005ca54aaa1b3f5ca75ae2db56820930297bc593",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
$ python tests/smoke.py --base-url http://127.0.0.1:8080
|
||||
PASS: lab3 public API scenario; infrastructure and grading evidence remain separate.
|
||||
@@ -0,0 +1,2 @@
|
||||
$ python tests/smoke.py --base-url http://127.0.0.1:8080
|
||||
PASS: lab3 public API scenario; infrastructure and grading evidence remain separate.
|
||||
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"target_instance": "32ed9304362f-4dd4aebce562",
|
||||
"stopped": {
|
||||
"id": "32ed9304362f418c78806b66482ea7b642b83fff81dbed6f33b66174f5c14a59",
|
||||
"name": "mtusi-lab3-osokin-api-3",
|
||||
"service": "api",
|
||||
"number": 3,
|
||||
"hostname": "32ed9304362f",
|
||||
"pid": 27569,
|
||||
"started_at": "2026-11-02T17:31:47.728388242Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:60edae93ffe5cfb7aa028391005ca54aaa1b3f5ca75ae2db56820930297bc593",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
},
|
||||
"after": [
|
||||
{
|
||||
"id": "32ed9304362f418c78806b66482ea7b642b83fff81dbed6f33b66174f5c14a59",
|
||||
"name": "mtusi-lab3-osokin-api-3",
|
||||
"service": "api",
|
||||
"number": 3,
|
||||
"hostname": "32ed9304362f",
|
||||
"pid": 0,
|
||||
"started_at": "2026-11-02T17:31:47.728388242Z",
|
||||
"status": "exited",
|
||||
"health": "unhealthy",
|
||||
"image": "sha256:60edae93ffe5cfb7aa028391005ca54aaa1b3f5ca75ae2db56820930297bc593",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {},
|
||||
"mounts": []
|
||||
},
|
||||
{
|
||||
"id": "6a9d2dc65303943669653bdaa5c660593d0e8760c1ccadd2fbad2d0571112a7a",
|
||||
"name": "mtusi-lab3-osokin-api-4",
|
||||
"service": "api",
|
||||
"number": 4,
|
||||
"hostname": "6a9d2dc65303",
|
||||
"pid": 27645,
|
||||
"started_at": "2026-11-02T17:31:48.008601983Z",
|
||||
"status": "running",
|
||||
"health": "healthy",
|
||||
"image": "sha256:60edae93ffe5cfb7aa028391005ca54aaa1b3f5ca75ae2db56820930297bc593",
|
||||
"memory_limit": 268435456,
|
||||
"cpu_limit": 1.0,
|
||||
"published_ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": []
|
||||
}
|
||||
],
|
||||
"hook_seconds": 1.0964262997731566
|
||||
}
|
||||
Reference in New Issue
Block a user