lab3: haproxy, replicas, idempotency, automated failover tests

This commit is contained in:
2026-10-26 23:45:32 +03:00
parent 0ab3a341aa
commit dd06261d75
42 changed files with 1569 additions and 45 deletions
+71
View File
@@ -0,0 +1,71 @@
{
"compose_cli": "2.40.3",
"configuration": "valid",
"runtime": "not executed: no Docker daemon",
"services": {
"api1": {
"image": "mtusi-lab3-api:local",
"cpus": 0.5,
"mem_limit": "268435456",
"ports": null,
"networks": {
"data": null,
"front": null
}
},
"api2": {
"image": "mtusi-lab3-api:local",
"cpus": 0.5,
"mem_limit": "268435456",
"ports": null,
"networks": {
"data": null,
"front": null
}
},
"db": {
"image": "postgres:16.4-alpine",
"cpus": 1,
"mem_limit": "536870912",
"ports": null,
"networks": {
"data": null
}
},
"lb": {
"image": "haproxy:3.0.5-alpine",
"cpus": 0.25,
"mem_limit": "134217728",
"ports": [
{
"mode": "ingress",
"host_ip": "127.0.0.1",
"target": 8080,
"published": "8080",
"protocol": "tcp"
}
],
"networks": {
"front": null
}
},
"migrate": {
"image": "mtusi-lab3-api:local",
"cpus": 0.5,
"mem_limit": "268435456",
"ports": null,
"networks": {
"data": null
}
},
"redis": {
"image": "redis:7.4.1-alpine",
"cpus": 0.25,
"mem_limit": "134217728",
"ports": null,
"networks": {
"data": null
}
}
}
}