forked from mtusi2026/mtusi2026lab5
ЛР 5: outbox, retry и versioned pipeline — Майорова БВТ2301
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
Image mtusi-messenger:lab5 Building
|
||||
#1 [internal] load local bake definitions
|
||||
#1 reading from stdin 650B done
|
||||
#1 DONE 0.0s
|
||||
|
||||
#2 [internal] load build definition from Dockerfile
|
||||
#2 transferring dockerfile: 739B done
|
||||
#2 DONE 0.0s
|
||||
|
||||
#3 [internal] load metadata for docker.io/library/python:3.12.8-slim-bookworm@sha256:2199a62885a12290dc9c5be3ca0681d367576ab7bf037da120e564723292a2f0
|
||||
#3 DONE 0.0s
|
||||
|
||||
#4 [internal] load .dockerignore
|
||||
#4 transferring context: 196B done
|
||||
#4 DONE 0.0s
|
||||
|
||||
#5 [internal] load build context
|
||||
#5 transferring context: 15.97kB done
|
||||
#5 DONE 0.0s
|
||||
|
||||
#6 [1/7] FROM docker.io/library/python:3.12.8-slim-bookworm@sha256:2199a62885a12290dc9c5be3ca0681d367576ab7bf037da120e564723292a2f0
|
||||
#6 resolve docker.io/library/python:3.12.8-slim-bookworm@sha256:2199a62885a12290dc9c5be3ca0681d367576ab7bf037da120e564723292a2f0 done
|
||||
#6 DONE 0.0s
|
||||
|
||||
#7 [3/7] RUN groupadd --gid 10001 app && useradd --uid 10001 --gid app --no-create-home app
|
||||
#7 CACHED
|
||||
|
||||
#8 [2/7] WORKDIR /app
|
||||
#8 CACHED
|
||||
|
||||
#9 [4/7] COPY requirements.txt ./
|
||||
#9 CACHED
|
||||
|
||||
#10 [5/7] RUN pip install --no-cache-dir -r requirements.txt
|
||||
#10 CACHED
|
||||
|
||||
#11 [6/7] COPY src/ ./src/
|
||||
#11 DONE 0.0s
|
||||
|
||||
#12 [7/7] COPY migrations/ ./migrations/
|
||||
#12 DONE 0.0s
|
||||
|
||||
#13 exporting to image
|
||||
#13 exporting layers 0.0s done
|
||||
#13 exporting manifest sha256:7e99f0c6a7ac94b85161817ff88967106e59e98d4e7dd9de3938b1135e0b12cd done
|
||||
#13 exporting config sha256:0e7c28f3d856890d8caee1ac1cdc0b496010b55a4e1f60fd6b733acc575f7f2e done
|
||||
#13 exporting attestation manifest sha256:f9c54687679fe921dd39dde4f93898025e671dd4d91f692ffb6ec14f50df16c6 done
|
||||
#13 exporting manifest list sha256:14afbe72a221379a2e0438f88629275c862f8347151aee0a33ac60708793d1c2 done
|
||||
#13 naming to docker.io/library/mtusi-messenger:lab5 done
|
||||
#13 unpacking to docker.io/library/mtusi-messenger:lab5 0.0s done
|
||||
#13 DONE 0.1s
|
||||
|
||||
#14 resolving provenance for metadata file
|
||||
#14 DONE 0.0s
|
||||
Image mtusi-messenger:lab5 Built
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,27 @@
|
||||
Container mtusi-lab5-worker-1 Stopping
|
||||
Container mtusi-lab5-dispatcher-1 Stopping
|
||||
Container mtusi-lab5-dispatcher-1 Stopped
|
||||
Container mtusi-lab5-worker-1 Stopped
|
||||
Container mtusi-lab5-api-1 Starting
|
||||
Container mtusi-lab5-api-1 Started
|
||||
Container mtusi-lab5-api-2 Starting
|
||||
Container mtusi-lab5-api-2 Started
|
||||
Container mtusi-lab5-api-1 Waiting
|
||||
Container mtusi-lab5-api-2 Waiting
|
||||
Container mtusi-lab5-api-1 Healthy
|
||||
Container mtusi-lab5-api-2 Healthy
|
||||
Container mtusi-lab5-dispatcher-1 Starting
|
||||
Container mtusi-lab5-dispatcher-1 Started
|
||||
Container mtusi-lab5-dispatcher-1 Stopping
|
||||
Container mtusi-lab5-dispatcher-1 Stopped
|
||||
Container mtusi-lab5-broker-1 Restarting
|
||||
Container mtusi-lab5-broker-1 Started
|
||||
Container mtusi-lab5-broker-1 Running
|
||||
Container mtusi-lab5-broker-1 Waiting
|
||||
Container mtusi-lab5-broker-1 Healthy
|
||||
Container mtusi-lab5-dispatcher-1 Starting
|
||||
Container mtusi-lab5-worker-1 Starting
|
||||
Container mtusi-lab5-worker-1 Started
|
||||
Container mtusi-lab5-dispatcher-1 Started
|
||||
Container mtusi-lab5-dispatcher-1 Running
|
||||
Container mtusi-lab5-worker-1 Running
|
||||
@@ -0,0 +1,766 @@
|
||||
{
|
||||
"killed_api_containers": [
|
||||
"e22e0a3894effd8ff3990a11ba75247f5fdb8eb5fe4272518d2b4c591e7b9efa",
|
||||
"e2f2b66d9b090b1b7f131e218514621b3e76cc35a1d93e39faacd01d0a609df3"
|
||||
],
|
||||
"stream_entries_before_after_broker_restart": [
|
||||
1,
|
||||
1
|
||||
],
|
||||
"attachment_id": "06570cf0-e36c-4403-b10d-c216f92d9696",
|
||||
"original_sha256": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75",
|
||||
"status": "ready",
|
||||
"variants": [
|
||||
"thumbnail",
|
||||
"crop",
|
||||
"optimized"
|
||||
],
|
||||
"old_bearer_survived": true,
|
||||
"message_attachment_retained": true,
|
||||
"before": [
|
||||
{
|
||||
"container": "e22e0a3894effd8ff3990a11ba75247f5fdb8eb5fe4272518d2b4c591e7b9efa",
|
||||
"name": "/mtusi-lab5-api-1",
|
||||
"service": "api",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"user": "10001:10001",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:06:02.475559008Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 268435456,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/database_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/cache_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_api_key",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_api_secret",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "e2f2b66d9b090b1b7f131e218514621b3e76cc35a1d93e39faacd01d0a609df3",
|
||||
"name": "/mtusi-lab5-api-2",
|
||||
"service": "api",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"user": "10001:10001",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:06:02.552220082Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 268435456,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/cache_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_api_key",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_api_secret",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/database_url",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "13917ee79bcae97792ff30f5bedba828db9b14c50717c4234a201a2ecfd31c97",
|
||||
"name": "/mtusi-lab5-broker-1",
|
||||
"service": "broker",
|
||||
"image": "redis:7.4.1-bookworm@sha256:bb142a9c18ac18a16713c1491d779697b4e107c22a97266616099d288237ef47",
|
||||
"user": "",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:05:54.074661473Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 201326592,
|
||||
"nano_cpus": 500000000,
|
||||
"ports": {
|
||||
"6379/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "volume",
|
||||
"destination": "/data",
|
||||
"name": "mtusi-lab5_broker_data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "468675e8e8d12872e5ea7cc119ab039c32b512ca21c468c1df036f4b73e3cf86",
|
||||
"name": "/mtusi-lab5-bucket-bootstrap-1",
|
||||
"service": "bucket-bootstrap",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"user": "10001:10001",
|
||||
"running": false,
|
||||
"started_at": "2026-10-27T15:06:01.893110991Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 268435456,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_admin_key",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_admin_secret",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "6575f9ad27a284222d9b0766ff1be89f488896c84734d1c5743750707b8bae30",
|
||||
"name": "/mtusi-lab5-dispatcher-1",
|
||||
"service": "dispatcher",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"user": "10001:10001",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:06:01.993890605Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 268435456,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/database_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/broker_url",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "f0aa92b6b1dba892cab16f26d319c1950477ec0070bd7b873b7e9b748cb9b86d",
|
||||
"name": "/mtusi-lab5-lb-1",
|
||||
"service": "lb",
|
||||
"image": "haproxy:3.0.5-alpine@sha256:43a2591a6a62a41dd22edb4452880e9c70de489fbd7c54ffb52d035cccbfe949",
|
||||
"user": "haproxy",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:06:08.145248456Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 67108864,
|
||||
"nano_cpus": 500000000,
|
||||
"ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "18091"
|
||||
}
|
||||
]
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/usr/local/etc/haproxy/haproxy.cfg",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "ccc5e4696faed219bd5ba8c93d1aa014be96aa67a7261aded25b1d1a859076d4",
|
||||
"name": "/mtusi-lab5-migrate-1",
|
||||
"service": "migrate",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"user": "10001:10001",
|
||||
"running": false,
|
||||
"started_at": "2026-10-27T15:06:01.411588564Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 268435456,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_api_key",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_api_secret",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/database_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/cache_url",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "b8c6c2aa716d884daad1773dec95f7e401ec39be531423a88b87b173c86e67e3",
|
||||
"name": "/mtusi-lab5-postgres-1",
|
||||
"service": "postgres",
|
||||
"image": "postgres:17.2-bookworm@sha256:3267c505060a0052e5aa6e5175a7b41ab6b04da2f8c4540fc6e98a37210aa2d3",
|
||||
"user": "",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:05:54.049832274Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {
|
||||
"5432/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "volume",
|
||||
"destination": "/var/lib/postgresql/data",
|
||||
"name": "mtusi-lab5_postgres_data"
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/postgres_password",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "9cc0501477a884cf8a8640e7c1bf586044408032f540ead3a79ada1a37b3f010",
|
||||
"name": "/mtusi-lab5-redis-1",
|
||||
"service": "redis",
|
||||
"image": "redis:7.4.1-bookworm@sha256:bb142a9c18ac18a16713c1491d779697b4e107c22a97266616099d288237ef47",
|
||||
"user": "",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:05:54.007675374Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 67108864,
|
||||
"nano_cpus": 250000000,
|
||||
"ports": {
|
||||
"6379/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "volume",
|
||||
"destination": "/data",
|
||||
"name": "f7abb66b7f4b85950f0cf389d52ad8ef0d6ba4596c5e96f1b356359d0e0ab011"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "99e7c7f261870f281f7b9185e5a12c752e4e77d9890288e73f66628db5967106",
|
||||
"name": "/mtusi-lab5-s3-1",
|
||||
"service": "s3",
|
||||
"image": "chrislusf/seaweedfs:4.51@sha256:f7a49e3f3972ebed5be2ed4befa4a0c68eb7bdddba6e692d42729ceb545134b8",
|
||||
"user": "",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:07:19.59007169Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 536870912,
|
||||
"nano_cpus": 500000000,
|
||||
"ports": {
|
||||
"18080/tcp": null,
|
||||
"18888/tcp": null,
|
||||
"19333/tcp": null,
|
||||
"7333/tcp": null,
|
||||
"8080/tcp": null,
|
||||
"8333/tcp": null,
|
||||
"8888/tcp": null,
|
||||
"9333/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "volume",
|
||||
"destination": "/data",
|
||||
"name": "f9ce12d80744156c70300c64c852f61c875e0e39bfa06be3f8aeb18c42d4fd21"
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_config",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "99b00792fe5c4fcdfc13198c140b2aface58a7d5715cef89f6065a2b336f07a7",
|
||||
"name": "/mtusi-lab5-s3-store-1",
|
||||
"service": "s3-store",
|
||||
"image": "chrislusf/seaweedfs:4.51@sha256:f7a49e3f3972ebed5be2ed4befa4a0c68eb7bdddba6e692d42729ceb545134b8",
|
||||
"user": "",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:05:55.491841572Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {
|
||||
"18080/tcp": null,
|
||||
"18888/tcp": null,
|
||||
"19333/tcp": null,
|
||||
"7333/tcp": null,
|
||||
"8080/tcp": null,
|
||||
"8333/tcp": null,
|
||||
"8888/tcp": null,
|
||||
"9333/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "volume",
|
||||
"destination": "/data",
|
||||
"name": "mtusi-lab5_s3_data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "8253cc88993d62bf5f7d20c9f7d7291933cb12a1b08d1b4416ee9729901deaed",
|
||||
"name": "/mtusi-lab5-worker-1",
|
||||
"service": "worker",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"user": "10001:10001",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:06:02.475268543Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 805306368,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/database_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/broker_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_worker_key",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_worker_secret",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"after": [
|
||||
{
|
||||
"container": "e22e0a3894effd8ff3990a11ba75247f5fdb8eb5fe4272518d2b4c591e7b9efa",
|
||||
"name": "/mtusi-lab5-api-1",
|
||||
"service": "api",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"user": "10001:10001",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:07:57.608120136Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 268435456,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/database_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/cache_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_api_key",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_api_secret",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "e2f2b66d9b090b1b7f131e218514621b3e76cc35a1d93e39faacd01d0a609df3",
|
||||
"name": "/mtusi-lab5-api-2",
|
||||
"service": "api",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"user": "10001:10001",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:07:57.67064591Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 268435456,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_api_key",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_api_secret",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/database_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/cache_url",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "13917ee79bcae97792ff30f5bedba828db9b14c50717c4234a201a2ecfd31c97",
|
||||
"name": "/mtusi-lab5-broker-1",
|
||||
"service": "broker",
|
||||
"image": "redis:7.4.1-bookworm@sha256:bb142a9c18ac18a16713c1491d779697b4e107c22a97266616099d288237ef47",
|
||||
"user": "",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:08:06.296755178Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 201326592,
|
||||
"nano_cpus": 500000000,
|
||||
"ports": {
|
||||
"6379/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "volume",
|
||||
"destination": "/data",
|
||||
"name": "mtusi-lab5_broker_data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "468675e8e8d12872e5ea7cc119ab039c32b512ca21c468c1df036f4b73e3cf86",
|
||||
"name": "/mtusi-lab5-bucket-bootstrap-1",
|
||||
"service": "bucket-bootstrap",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"user": "10001:10001",
|
||||
"running": false,
|
||||
"started_at": "2026-10-27T15:06:01.893110991Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 268435456,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_admin_key",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_admin_secret",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "6575f9ad27a284222d9b0766ff1be89f488896c84734d1c5743750707b8bae30",
|
||||
"name": "/mtusi-lab5-dispatcher-1",
|
||||
"service": "dispatcher",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"user": "10001:10001",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:08:08.679298033Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 268435456,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/database_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/broker_url",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "f0aa92b6b1dba892cab16f26d319c1950477ec0070bd7b873b7e9b748cb9b86d",
|
||||
"name": "/mtusi-lab5-lb-1",
|
||||
"service": "lb",
|
||||
"image": "haproxy:3.0.5-alpine@sha256:43a2591a6a62a41dd22edb4452880e9c70de489fbd7c54ffb52d035cccbfe949",
|
||||
"user": "haproxy",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:06:08.145248456Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 67108864,
|
||||
"nano_cpus": 500000000,
|
||||
"ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "18091"
|
||||
}
|
||||
]
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/usr/local/etc/haproxy/haproxy.cfg",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "ccc5e4696faed219bd5ba8c93d1aa014be96aa67a7261aded25b1d1a859076d4",
|
||||
"name": "/mtusi-lab5-migrate-1",
|
||||
"service": "migrate",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"user": "10001:10001",
|
||||
"running": false,
|
||||
"started_at": "2026-10-27T15:06:01.411588564Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 268435456,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_api_key",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_api_secret",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/database_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/cache_url",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "b8c6c2aa716d884daad1773dec95f7e401ec39be531423a88b87b173c86e67e3",
|
||||
"name": "/mtusi-lab5-postgres-1",
|
||||
"service": "postgres",
|
||||
"image": "postgres:17.2-bookworm@sha256:3267c505060a0052e5aa6e5175a7b41ab6b04da2f8c4540fc6e98a37210aa2d3",
|
||||
"user": "",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:05:54.049832274Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {
|
||||
"5432/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "volume",
|
||||
"destination": "/var/lib/postgresql/data",
|
||||
"name": "mtusi-lab5_postgres_data"
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/postgres_password",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "9cc0501477a884cf8a8640e7c1bf586044408032f540ead3a79ada1a37b3f010",
|
||||
"name": "/mtusi-lab5-redis-1",
|
||||
"service": "redis",
|
||||
"image": "redis:7.4.1-bookworm@sha256:bb142a9c18ac18a16713c1491d779697b4e107c22a97266616099d288237ef47",
|
||||
"user": "",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:05:54.007675374Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 67108864,
|
||||
"nano_cpus": 250000000,
|
||||
"ports": {
|
||||
"6379/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "volume",
|
||||
"destination": "/data",
|
||||
"name": "f7abb66b7f4b85950f0cf389d52ad8ef0d6ba4596c5e96f1b356359d0e0ab011"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "99e7c7f261870f281f7b9185e5a12c752e4e77d9890288e73f66628db5967106",
|
||||
"name": "/mtusi-lab5-s3-1",
|
||||
"service": "s3",
|
||||
"image": "chrislusf/seaweedfs:4.51@sha256:f7a49e3f3972ebed5be2ed4befa4a0c68eb7bdddba6e692d42729ceb545134b8",
|
||||
"user": "",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:07:19.59007169Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 536870912,
|
||||
"nano_cpus": 500000000,
|
||||
"ports": {
|
||||
"18080/tcp": null,
|
||||
"18888/tcp": null,
|
||||
"19333/tcp": null,
|
||||
"7333/tcp": null,
|
||||
"8080/tcp": null,
|
||||
"8333/tcp": null,
|
||||
"8888/tcp": null,
|
||||
"9333/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "volume",
|
||||
"destination": "/data",
|
||||
"name": "f9ce12d80744156c70300c64c852f61c875e0e39bfa06be3f8aeb18c42d4fd21"
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_config",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "99b00792fe5c4fcdfc13198c140b2aface58a7d5715cef89f6065a2b336f07a7",
|
||||
"name": "/mtusi-lab5-s3-store-1",
|
||||
"service": "s3-store",
|
||||
"image": "chrislusf/seaweedfs:4.51@sha256:f7a49e3f3972ebed5be2ed4befa4a0c68eb7bdddba6e692d42729ceb545134b8",
|
||||
"user": "",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:05:55.491841572Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {
|
||||
"18080/tcp": null,
|
||||
"18888/tcp": null,
|
||||
"19333/tcp": null,
|
||||
"7333/tcp": null,
|
||||
"8080/tcp": null,
|
||||
"8333/tcp": null,
|
||||
"8888/tcp": null,
|
||||
"9333/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "volume",
|
||||
"destination": "/data",
|
||||
"name": "mtusi-lab5_s3_data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "8253cc88993d62bf5f7d20c9f7d7291933cb12a1b08d1b4416ee9729901deaed",
|
||||
"name": "/mtusi-lab5-worker-1",
|
||||
"service": "worker",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"user": "10001:10001",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:08:08.679577406Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 805306368,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/database_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/broker_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_worker_key",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_worker_secret",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:18091"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 114, "failed_attempts": 2, "first_recovery_seconds": 2.534}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
@@ -0,0 +1,28 @@
|
||||
python3 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
python3 tests/smoke.py --base-url "http://127.0.0.1:18091"
|
||||
PASS: lab5 public API scenario; infrastructure and grading evidence remain separate.
|
||||
BASE_URL="http://127.0.0.1:18091" python3 -m unittest discover -s student-tests -p 'test_*.py' -v
|
||||
test_concurrent_messages_and_pagination (test_api.APIContract) ... ok
|
||||
test_cursor_scope_and_validation (test_api.APIContract) ... ok
|
||||
test_foreign_chat (test_api.APIContract) ... ok
|
||||
test_idempotency_concurrent_replicas (test_api.APIContract) ... ok
|
||||
test_idempotency_conflicting_race (test_api.APIContract) ... ok
|
||||
test_idempotency_invalid_keys (test_api.APIContract) ... ok
|
||||
test_idempotency_scope (test_api.APIContract) ... ok
|
||||
test_idempotency_semantic_body (test_api.APIContract) ... ok
|
||||
test_invalid_chat_creation (test_api.APIContract) ... ok
|
||||
test_malformed_json_and_extra_fields (test_api.APIContract) ... ok
|
||||
test_protocol_error_headers (test_api.APIContract) ... ok
|
||||
test_registration_race (test_api.APIContract) ... ok
|
||||
test_unicode_limits (test_api.APIContract) ... ok
|
||||
test_unicode_nul_round_trip (test_api.APIContract) ... ok
|
||||
test_unicode_password_basic_and_logout (test_api.APIContract) ... ok
|
||||
test_async_variants_and_replay (test_images.Images) ... ok
|
||||
test_mime_bytes_pixels_and_filename (test_images.Images) ... ok
|
||||
test_private_and_cross_chat (test_images.Images) ... ok
|
||||
|
||||
----------------------------------------------------------------------
|
||||
Ran 18 tests in 5.344s
|
||||
|
||||
OK
|
||||
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"attachments_by_state": [
|
||||
{
|
||||
"state": "failed",
|
||||
"count": 3
|
||||
},
|
||||
{
|
||||
"state": "ready",
|
||||
"count": 85
|
||||
}
|
||||
],
|
||||
"ready_without_three_variants": 0,
|
||||
"stream_length": 0,
|
||||
"pending_deliveries": 0,
|
||||
"job_events": [
|
||||
{
|
||||
"event": "claimed",
|
||||
"count": 107
|
||||
},
|
||||
{
|
||||
"event": "duplicate_or_early_noop",
|
||||
"count": 3
|
||||
},
|
||||
{
|
||||
"event": "failed:invalid_image",
|
||||
"count": 3
|
||||
},
|
||||
{
|
||||
"event": "failed:retry_exhausted",
|
||||
"count": 2
|
||||
},
|
||||
{
|
||||
"event": "failed:source_missing",
|
||||
"count": 3
|
||||
},
|
||||
{
|
||||
"event": "fenced_noop",
|
||||
"count": 3
|
||||
},
|
||||
{
|
||||
"event": "operator_replay",
|
||||
"count": 5
|
||||
},
|
||||
{
|
||||
"event": "operator_supersede",
|
||||
"count": 3
|
||||
},
|
||||
{
|
||||
"event": "published",
|
||||
"count": 74
|
||||
},
|
||||
{
|
||||
"event": "ready",
|
||||
"count": 85
|
||||
},
|
||||
{
|
||||
"event": "retry:lease_expired",
|
||||
"count": 9
|
||||
},
|
||||
{
|
||||
"event": "retry:storage_unavailable",
|
||||
"count": 2
|
||||
},
|
||||
{
|
||||
"event": "stale_noop",
|
||||
"count": 3
|
||||
},
|
||||
{
|
||||
"event": "terminal_noop",
|
||||
"count": 30
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
@@ -0,0 +1,3 @@
|
||||
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:18091"
|
||||
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 @@
|
||||
Container mtusi-lab5-audit-run-b338f8a5a02a Creating
|
||||
Container mtusi-lab5-audit-run-b338f8a5a02a Created
|
||||
@@ -0,0 +1,119 @@
|
||||
{
|
||||
"invariants": {
|
||||
"commit_before_publish_recovered": true,
|
||||
"publish_before_marker_duplicate_safe": true,
|
||||
"crashes_before_after_side_effect_and_commit": true,
|
||||
"invalid_envelope_observable_dlq": true,
|
||||
"duplicate_and_reorder_no_second_effect": true,
|
||||
"concurrent_duplicate_single_claim": true,
|
||||
"stale_running_version_fenced": true,
|
||||
"old_delivery_after_new_ready_no_overwrite": true,
|
||||
"failed_registry_explicit_replay_and_ready_refusal": true,
|
||||
"transient_backoff_exhaustion_then_replay": true,
|
||||
"invalid_decode_permanent_failed": true,
|
||||
"cleanup_preserves_current_and_fresh_failed": true,
|
||||
"ready_staging_cleanup_idempotent": true
|
||||
},
|
||||
"faults": [
|
||||
{
|
||||
"point": "before_side_effect",
|
||||
"exit_code": 77,
|
||||
"state_at_crash": "processing",
|
||||
"recovered": "ready",
|
||||
"attempts": 2,
|
||||
"result_objects": 4
|
||||
},
|
||||
{
|
||||
"point": "after_original",
|
||||
"exit_code": 77,
|
||||
"state_at_crash": "processing",
|
||||
"recovered": "ready",
|
||||
"attempts": 2,
|
||||
"result_objects": 4
|
||||
},
|
||||
{
|
||||
"point": "after_objects",
|
||||
"exit_code": 77,
|
||||
"state_at_crash": "processing",
|
||||
"recovered": "ready",
|
||||
"attempts": 2,
|
||||
"result_objects": 4
|
||||
},
|
||||
{
|
||||
"point": "after_commit",
|
||||
"exit_code": 77,
|
||||
"state_at_crash": "ready",
|
||||
"recovered": "ready",
|
||||
"attempts": 1,
|
||||
"result_objects": 4
|
||||
}
|
||||
],
|
||||
"retry": {
|
||||
"transitions": [
|
||||
{
|
||||
"state": "queued",
|
||||
"attempt": 1,
|
||||
"error_code": "storage_unavailable"
|
||||
},
|
||||
{
|
||||
"state": "failed",
|
||||
"attempt": 2,
|
||||
"error_code": "retry_exhausted"
|
||||
}
|
||||
],
|
||||
"seconds": 1.941,
|
||||
"replayed_attempt": 3
|
||||
},
|
||||
"transforms": [
|
||||
{
|
||||
"kind": "alpha",
|
||||
"size": [
|
||||
20,
|
||||
10
|
||||
],
|
||||
"exif_removed": true
|
||||
},
|
||||
{
|
||||
"kind": "exif",
|
||||
"size": [
|
||||
256,
|
||||
160
|
||||
],
|
||||
"exif_removed": true
|
||||
},
|
||||
{
|
||||
"kind": "small",
|
||||
"size": [
|
||||
5,
|
||||
3
|
||||
],
|
||||
"exif_removed": true
|
||||
}
|
||||
],
|
||||
"cleanup": [
|
||||
{
|
||||
"apply": false,
|
||||
"retention_seconds": 86400,
|
||||
"counts": {
|
||||
"ready_staging": 46,
|
||||
"expired_staging": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"apply": true,
|
||||
"retention_seconds": 86400,
|
||||
"counts": {
|
||||
"ready_staging": 46,
|
||||
"expired_staging": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"apply": true,
|
||||
"retention_seconds": 86400,
|
||||
"counts": {
|
||||
"ready_staging": 0,
|
||||
"expired_staging": 0
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 66 KiB |
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 66 KiB |
@@ -0,0 +1,2 @@
|
||||
python3 tests/smoke.py --base-url "http://127.0.0.1:18091"
|
||||
PASS: lab5 public API scenario; infrastructure and grading evidence remain separate.
|
||||
@@ -0,0 +1,6 @@
|
||||
Container mtusi-lab5-worker-1 Restarting
|
||||
Container mtusi-lab5-worker-1 Started
|
||||
Container mtusi-lab5-worker-1 Restarting
|
||||
Container mtusi-lab5-worker-1 Started
|
||||
Container mtusi-lab5-worker-1 Restarting
|
||||
Container mtusi-lab5-worker-1 Started
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,373 @@
|
||||
[
|
||||
{
|
||||
"container": "e22e0a3894effd8ff3990a11ba75247f5fdb8eb5fe4272518d2b4c591e7b9efa",
|
||||
"name": "/mtusi-lab5-api-1",
|
||||
"service": "api",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"user": "10001:10001",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:06:02.475559008Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 268435456,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_api_secret",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/database_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/cache_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_api_key",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "e2f2b66d9b090b1b7f131e218514621b3e76cc35a1d93e39faacd01d0a609df3",
|
||||
"name": "/mtusi-lab5-api-2",
|
||||
"service": "api",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"user": "10001:10001",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:06:02.552220082Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 268435456,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/database_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/cache_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_api_key",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_api_secret",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "13917ee79bcae97792ff30f5bedba828db9b14c50717c4234a201a2ecfd31c97",
|
||||
"name": "/mtusi-lab5-broker-1",
|
||||
"service": "broker",
|
||||
"image": "redis:7.4.1-bookworm@sha256:bb142a9c18ac18a16713c1491d779697b4e107c22a97266616099d288237ef47",
|
||||
"user": "",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:05:54.074661473Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 201326592,
|
||||
"nano_cpus": 500000000,
|
||||
"ports": {
|
||||
"6379/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "volume",
|
||||
"destination": "/data",
|
||||
"name": "mtusi-lab5_broker_data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "468675e8e8d12872e5ea7cc119ab039c32b512ca21c468c1df036f4b73e3cf86",
|
||||
"name": "/mtusi-lab5-bucket-bootstrap-1",
|
||||
"service": "bucket-bootstrap",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"user": "10001:10001",
|
||||
"running": false,
|
||||
"started_at": "2026-10-27T15:06:01.893110991Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 268435456,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_admin_key",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_admin_secret",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "6575f9ad27a284222d9b0766ff1be89f488896c84734d1c5743750707b8bae30",
|
||||
"name": "/mtusi-lab5-dispatcher-1",
|
||||
"service": "dispatcher",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"user": "10001:10001",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:06:01.993890605Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 268435456,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/database_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/broker_url",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "f0aa92b6b1dba892cab16f26d319c1950477ec0070bd7b873b7e9b748cb9b86d",
|
||||
"name": "/mtusi-lab5-lb-1",
|
||||
"service": "lb",
|
||||
"image": "haproxy:3.0.5-alpine@sha256:43a2591a6a62a41dd22edb4452880e9c70de489fbd7c54ffb52d035cccbfe949",
|
||||
"user": "haproxy",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:06:08.145248456Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 67108864,
|
||||
"nano_cpus": 500000000,
|
||||
"ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "18091"
|
||||
}
|
||||
]
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/usr/local/etc/haproxy/haproxy.cfg",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "ccc5e4696faed219bd5ba8c93d1aa014be96aa67a7261aded25b1d1a859076d4",
|
||||
"name": "/mtusi-lab5-migrate-1",
|
||||
"service": "migrate",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"user": "10001:10001",
|
||||
"running": false,
|
||||
"started_at": "2026-10-27T15:06:01.411588564Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 268435456,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/database_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/cache_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_api_key",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_api_secret",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "b8c6c2aa716d884daad1773dec95f7e401ec39be531423a88b87b173c86e67e3",
|
||||
"name": "/mtusi-lab5-postgres-1",
|
||||
"service": "postgres",
|
||||
"image": "postgres:17.2-bookworm@sha256:3267c505060a0052e5aa6e5175a7b41ab6b04da2f8c4540fc6e98a37210aa2d3",
|
||||
"user": "",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:05:54.049832274Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {
|
||||
"5432/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "volume",
|
||||
"destination": "/var/lib/postgresql/data",
|
||||
"name": "mtusi-lab5_postgres_data"
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/postgres_password",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "9cc0501477a884cf8a8640e7c1bf586044408032f540ead3a79ada1a37b3f010",
|
||||
"name": "/mtusi-lab5-redis-1",
|
||||
"service": "redis",
|
||||
"image": "redis:7.4.1-bookworm@sha256:bb142a9c18ac18a16713c1491d779697b4e107c22a97266616099d288237ef47",
|
||||
"user": "",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:05:54.007675374Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 67108864,
|
||||
"nano_cpus": 250000000,
|
||||
"ports": {
|
||||
"6379/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "volume",
|
||||
"destination": "/data",
|
||||
"name": "f7abb66b7f4b85950f0cf389d52ad8ef0d6ba4596c5e96f1b356359d0e0ab011"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "b8d84d132c21a7d1d44afe270bce5beef0c9f2ecf28e4fa9e88efe83c04660d3",
|
||||
"name": "/mtusi-lab5-s3-1",
|
||||
"service": "s3",
|
||||
"image": "chrislusf/seaweedfs:4.51@sha256:f7a49e3f3972ebed5be2ed4befa4a0c68eb7bdddba6e692d42729ceb545134b8",
|
||||
"user": "",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:05:54.087804668Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 536870912,
|
||||
"nano_cpus": 500000000,
|
||||
"ports": {
|
||||
"18080/tcp": null,
|
||||
"18888/tcp": null,
|
||||
"19333/tcp": null,
|
||||
"7333/tcp": null,
|
||||
"8080/tcp": null,
|
||||
"8333/tcp": null,
|
||||
"8888/tcp": null,
|
||||
"9333/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_config",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "volume",
|
||||
"destination": "/data",
|
||||
"name": "f9ce12d80744156c70300c64c852f61c875e0e39bfa06be3f8aeb18c42d4fd21"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "99b00792fe5c4fcdfc13198c140b2aface58a7d5715cef89f6065a2b336f07a7",
|
||||
"name": "/mtusi-lab5-s3-store-1",
|
||||
"service": "s3-store",
|
||||
"image": "chrislusf/seaweedfs:4.51@sha256:f7a49e3f3972ebed5be2ed4befa4a0c68eb7bdddba6e692d42729ceb545134b8",
|
||||
"user": "",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:05:55.491841572Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {
|
||||
"18080/tcp": null,
|
||||
"18888/tcp": null,
|
||||
"19333/tcp": null,
|
||||
"7333/tcp": null,
|
||||
"8080/tcp": null,
|
||||
"8333/tcp": null,
|
||||
"8888/tcp": null,
|
||||
"9333/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "volume",
|
||||
"destination": "/data",
|
||||
"name": "mtusi-lab5_s3_data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "8253cc88993d62bf5f7d20c9f7d7291933cb12a1b08d1b4416ee9729901deaed",
|
||||
"name": "/mtusi-lab5-worker-1",
|
||||
"service": "worker",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"user": "10001:10001",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:06:02.475268543Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 805306368,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/database_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/broker_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_worker_key",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_worker_secret",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,373 @@
|
||||
[
|
||||
{
|
||||
"container": "e22e0a3894effd8ff3990a11ba75247f5fdb8eb5fe4272518d2b4c591e7b9efa",
|
||||
"name": "/mtusi-lab5-api-1",
|
||||
"service": "api",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"user": "10001:10001",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:05:46.437791821Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 268435456,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/database_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/cache_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_api_key",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_api_secret",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "e2f2b66d9b090b1b7f131e218514621b3e76cc35a1d93e39faacd01d0a609df3",
|
||||
"name": "/mtusi-lab5-api-2",
|
||||
"service": "api",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"user": "10001:10001",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:03:32.37188016Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 268435456,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/cache_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_api_key",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_api_secret",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/database_url",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "13917ee79bcae97792ff30f5bedba828db9b14c50717c4234a201a2ecfd31c97",
|
||||
"name": "/mtusi-lab5-broker-1",
|
||||
"service": "broker",
|
||||
"image": "redis:7.4.1-bookworm@sha256:bb142a9c18ac18a16713c1491d779697b4e107c22a97266616099d288237ef47",
|
||||
"user": "",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:03:41.154830662Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 201326592,
|
||||
"nano_cpus": 500000000,
|
||||
"ports": {
|
||||
"6379/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "volume",
|
||||
"destination": "/data",
|
||||
"name": "mtusi-lab5_broker_data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "468675e8e8d12872e5ea7cc119ab039c32b512ca21c468c1df036f4b73e3cf86",
|
||||
"name": "/mtusi-lab5-bucket-bootstrap-1",
|
||||
"service": "bucket-bootstrap",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"user": "10001:10001",
|
||||
"running": false,
|
||||
"started_at": "2026-10-27T15:03:24.364562897Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 268435456,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_admin_key",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_admin_secret",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "6575f9ad27a284222d9b0766ff1be89f488896c84734d1c5743750707b8bae30",
|
||||
"name": "/mtusi-lab5-dispatcher-1",
|
||||
"service": "dispatcher",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"user": "10001:10001",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:05:23.350954361Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 268435456,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/broker_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/database_url",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "f0aa92b6b1dba892cab16f26d319c1950477ec0070bd7b873b7e9b748cb9b86d",
|
||||
"name": "/mtusi-lab5-lb-1",
|
||||
"service": "lb",
|
||||
"image": "haproxy:3.0.5-alpine@sha256:43a2591a6a62a41dd22edb4452880e9c70de489fbd7c54ffb52d035cccbfe949",
|
||||
"user": "haproxy",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T14:56:14.79412711Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 67108864,
|
||||
"nano_cpus": 500000000,
|
||||
"ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "18091"
|
||||
}
|
||||
]
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/usr/local/etc/haproxy/haproxy.cfg",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "ccc5e4696faed219bd5ba8c93d1aa014be96aa67a7261aded25b1d1a859076d4",
|
||||
"name": "/mtusi-lab5-migrate-1",
|
||||
"service": "migrate",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"user": "10001:10001",
|
||||
"running": false,
|
||||
"started_at": "2026-10-27T15:03:23.874882274Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 268435456,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/database_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/cache_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_api_key",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_api_secret",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "b8c6c2aa716d884daad1773dec95f7e401ec39be531423a88b87b173c86e67e3",
|
||||
"name": "/mtusi-lab5-postgres-1",
|
||||
"service": "postgres",
|
||||
"image": "postgres:17.2-bookworm@sha256:3267c505060a0052e5aa6e5175a7b41ab6b04da2f8c4540fc6e98a37210aa2d3",
|
||||
"user": "",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T14:56:01.375415684Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {
|
||||
"5432/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "volume",
|
||||
"destination": "/var/lib/postgresql/data",
|
||||
"name": "mtusi-lab5_postgres_data"
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/postgres_password",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "9cc0501477a884cf8a8640e7c1bf586044408032f540ead3a79ada1a37b3f010",
|
||||
"name": "/mtusi-lab5-redis-1",
|
||||
"service": "redis",
|
||||
"image": "redis:7.4.1-bookworm@sha256:bb142a9c18ac18a16713c1491d779697b4e107c22a97266616099d288237ef47",
|
||||
"user": "",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T14:56:01.375672543Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 67108864,
|
||||
"nano_cpus": 250000000,
|
||||
"ports": {
|
||||
"6379/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "volume",
|
||||
"destination": "/data",
|
||||
"name": "f7abb66b7f4b85950f0cf389d52ad8ef0d6ba4596c5e96f1b356359d0e0ab011"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "b8d84d132c21a7d1d44afe270bce5beef0c9f2ecf28e4fa9e88efe83c04660d3",
|
||||
"name": "/mtusi-lab5-s3-1",
|
||||
"service": "s3",
|
||||
"image": "chrislusf/seaweedfs:4.51@sha256:f7a49e3f3972ebed5be2ed4befa4a0c68eb7bdddba6e692d42729ceb545134b8",
|
||||
"user": "",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T14:56:05.95436716Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 536870912,
|
||||
"nano_cpus": 500000000,
|
||||
"ports": {
|
||||
"18080/tcp": null,
|
||||
"18888/tcp": null,
|
||||
"19333/tcp": null,
|
||||
"7333/tcp": null,
|
||||
"8080/tcp": null,
|
||||
"8333/tcp": null,
|
||||
"8888/tcp": null,
|
||||
"9333/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_config",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "volume",
|
||||
"destination": "/data",
|
||||
"name": "f9ce12d80744156c70300c64c852f61c875e0e39bfa06be3f8aeb18c42d4fd21"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "99b00792fe5c4fcdfc13198c140b2aface58a7d5715cef89f6065a2b336f07a7",
|
||||
"name": "/mtusi-lab5-s3-store-1",
|
||||
"service": "s3-store",
|
||||
"image": "chrislusf/seaweedfs:4.51@sha256:f7a49e3f3972ebed5be2ed4befa4a0c68eb7bdddba6e692d42729ceb545134b8",
|
||||
"user": "",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T14:56:01.374203439Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {
|
||||
"18080/tcp": null,
|
||||
"18888/tcp": null,
|
||||
"19333/tcp": null,
|
||||
"7333/tcp": null,
|
||||
"8080/tcp": null,
|
||||
"8333/tcp": null,
|
||||
"8888/tcp": null,
|
||||
"9333/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "volume",
|
||||
"destination": "/data",
|
||||
"name": "mtusi-lab5_s3_data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "8253cc88993d62bf5f7d20c9f7d7291933cb12a1b08d1b4416ee9729901deaed",
|
||||
"name": "/mtusi-lab5-worker-1",
|
||||
"service": "worker",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"user": "10001:10001",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:05:23.351252982Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 805306368,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_worker_secret",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/database_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/broker_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_worker_key",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,373 @@
|
||||
[
|
||||
{
|
||||
"container": "e22e0a3894effd8ff3990a11ba75247f5fdb8eb5fe4272518d2b4c591e7b9efa",
|
||||
"name": "/mtusi-lab5-api-1",
|
||||
"service": "api",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"user": "10001:10001",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:07:57.608120136Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 268435456,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_api_secret",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/database_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/cache_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_api_key",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "e2f2b66d9b090b1b7f131e218514621b3e76cc35a1d93e39faacd01d0a609df3",
|
||||
"name": "/mtusi-lab5-api-2",
|
||||
"service": "api",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"user": "10001:10001",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:07:57.67064591Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 268435456,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/database_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/cache_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_api_key",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_api_secret",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "13917ee79bcae97792ff30f5bedba828db9b14c50717c4234a201a2ecfd31c97",
|
||||
"name": "/mtusi-lab5-broker-1",
|
||||
"service": "broker",
|
||||
"image": "redis:7.4.1-bookworm@sha256:bb142a9c18ac18a16713c1491d779697b4e107c22a97266616099d288237ef47",
|
||||
"user": "",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:08:06.296755178Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 201326592,
|
||||
"nano_cpus": 500000000,
|
||||
"ports": {
|
||||
"6379/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "volume",
|
||||
"destination": "/data",
|
||||
"name": "mtusi-lab5_broker_data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "468675e8e8d12872e5ea7cc119ab039c32b512ca21c468c1df036f4b73e3cf86",
|
||||
"name": "/mtusi-lab5-bucket-bootstrap-1",
|
||||
"service": "bucket-bootstrap",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"user": "10001:10001",
|
||||
"running": false,
|
||||
"started_at": "2026-10-27T15:06:01.893110991Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 268435456,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_admin_key",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_admin_secret",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "6575f9ad27a284222d9b0766ff1be89f488896c84734d1c5743750707b8bae30",
|
||||
"name": "/mtusi-lab5-dispatcher-1",
|
||||
"service": "dispatcher",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"user": "10001:10001",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:08:08.679298033Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 268435456,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/database_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/broker_url",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "f0aa92b6b1dba892cab16f26d319c1950477ec0070bd7b873b7e9b748cb9b86d",
|
||||
"name": "/mtusi-lab5-lb-1",
|
||||
"service": "lb",
|
||||
"image": "haproxy:3.0.5-alpine@sha256:43a2591a6a62a41dd22edb4452880e9c70de489fbd7c54ffb52d035cccbfe949",
|
||||
"user": "haproxy",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:06:08.145248456Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 67108864,
|
||||
"nano_cpus": 500000000,
|
||||
"ports": {
|
||||
"8080/tcp": [
|
||||
{
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "18091"
|
||||
}
|
||||
]
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/usr/local/etc/haproxy/haproxy.cfg",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "ccc5e4696faed219bd5ba8c93d1aa014be96aa67a7261aded25b1d1a859076d4",
|
||||
"name": "/mtusi-lab5-migrate-1",
|
||||
"service": "migrate",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"user": "10001:10001",
|
||||
"running": false,
|
||||
"started_at": "2026-10-27T15:06:01.411588564Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 268435456,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_api_secret",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/database_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/cache_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_api_key",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "b8c6c2aa716d884daad1773dec95f7e401ec39be531423a88b87b173c86e67e3",
|
||||
"name": "/mtusi-lab5-postgres-1",
|
||||
"service": "postgres",
|
||||
"image": "postgres:17.2-bookworm@sha256:3267c505060a0052e5aa6e5175a7b41ab6b04da2f8c4540fc6e98a37210aa2d3",
|
||||
"user": "",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:05:54.049832274Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {
|
||||
"5432/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/postgres_password",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "volume",
|
||||
"destination": "/var/lib/postgresql/data",
|
||||
"name": "mtusi-lab5_postgres_data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "9cc0501477a884cf8a8640e7c1bf586044408032f540ead3a79ada1a37b3f010",
|
||||
"name": "/mtusi-lab5-redis-1",
|
||||
"service": "redis",
|
||||
"image": "redis:7.4.1-bookworm@sha256:bb142a9c18ac18a16713c1491d779697b4e107c22a97266616099d288237ef47",
|
||||
"user": "",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:05:54.007675374Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 67108864,
|
||||
"nano_cpus": 250000000,
|
||||
"ports": {
|
||||
"6379/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "volume",
|
||||
"destination": "/data",
|
||||
"name": "f7abb66b7f4b85950f0cf389d52ad8ef0d6ba4596c5e96f1b356359d0e0ab011"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "99e7c7f261870f281f7b9185e5a12c752e4e77d9890288e73f66628db5967106",
|
||||
"name": "/mtusi-lab5-s3-1",
|
||||
"service": "s3",
|
||||
"image": "chrislusf/seaweedfs:4.51@sha256:f7a49e3f3972ebed5be2ed4befa4a0c68eb7bdddba6e692d42729ceb545134b8",
|
||||
"user": "",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:07:19.59007169Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 536870912,
|
||||
"nano_cpus": 500000000,
|
||||
"ports": {
|
||||
"18080/tcp": null,
|
||||
"18888/tcp": null,
|
||||
"19333/tcp": null,
|
||||
"7333/tcp": null,
|
||||
"8080/tcp": null,
|
||||
"8333/tcp": null,
|
||||
"8888/tcp": null,
|
||||
"9333/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "volume",
|
||||
"destination": "/data",
|
||||
"name": "f9ce12d80744156c70300c64c852f61c875e0e39bfa06be3f8aeb18c42d4fd21"
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_config",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "99b00792fe5c4fcdfc13198c140b2aface58a7d5715cef89f6065a2b336f07a7",
|
||||
"name": "/mtusi-lab5-s3-store-1",
|
||||
"service": "s3-store",
|
||||
"image": "chrislusf/seaweedfs:4.51@sha256:f7a49e3f3972ebed5be2ed4befa4a0c68eb7bdddba6e692d42729ceb545134b8",
|
||||
"user": "",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:05:55.491841572Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 536870912,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {
|
||||
"18080/tcp": null,
|
||||
"18888/tcp": null,
|
||||
"19333/tcp": null,
|
||||
"7333/tcp": null,
|
||||
"8080/tcp": null,
|
||||
"8333/tcp": null,
|
||||
"8888/tcp": null,
|
||||
"9333/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "volume",
|
||||
"destination": "/data",
|
||||
"name": "mtusi-lab5_s3_data"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"container": "8253cc88993d62bf5f7d20c9f7d7291933cb12a1b08d1b4416ee9729901deaed",
|
||||
"name": "/mtusi-lab5-worker-1",
|
||||
"service": "worker",
|
||||
"image": "mtusi-messenger:lab5",
|
||||
"user": "10001:10001",
|
||||
"running": true,
|
||||
"started_at": "2026-10-27T15:08:08.679577406Z",
|
||||
"exit_code": 0,
|
||||
"oom_killed": false,
|
||||
"memory_limit": 805306368,
|
||||
"nano_cpus": 1000000000,
|
||||
"ports": {
|
||||
"8080/tcp": null
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/database_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/broker_url",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_worker_key",
|
||||
"name": null
|
||||
},
|
||||
{
|
||||
"type": "bind",
|
||||
"destination": "/run/secrets/s3_worker_secret",
|
||||
"name": null
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,2 @@
|
||||
Container mtusi-lab5-audit-run-790369e3d6e4 Creating
|
||||
Container mtusi-lab5-audit-run-790369e3d6e4 Created
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"anonymous_object_and_list_403": true,
|
||||
"job_fields": [
|
||||
"attachment_id",
|
||||
"attempt",
|
||||
"created_at",
|
||||
"job_id",
|
||||
"pipeline_version",
|
||||
"schema_version",
|
||||
"type"
|
||||
],
|
||||
"job_bytes": 243,
|
||||
"no_source_bytes_or_credentials_in_envelope": true,
|
||||
"strict_invalid_envelope_checks": true
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"trickle_seconds": 14.998, "http_status": 400, "absolute_deadline_enforced": true}
|
||||
@@ -0,0 +1,80 @@
|
||||
Container mtusi-lab5-broker-1 Running
|
||||
Container mtusi-lab5-s3-store-1 Running
|
||||
Container mtusi-lab5-postgres-1 Running
|
||||
Container mtusi-lab5-redis-1 Running
|
||||
Container mtusi-lab5-s3-1 Running
|
||||
Container mtusi-lab5-bucket-bootstrap-1 Recreate
|
||||
Container mtusi-lab5-migrate-1 Recreate
|
||||
Container mtusi-lab5-bucket-bootstrap-1 Recreated
|
||||
Container mtusi-lab5-migrate-1 Recreated
|
||||
Container mtusi-lab5-worker-1 Recreate
|
||||
Container mtusi-lab5-api-1 Recreate
|
||||
Container mtusi-lab5-dispatcher-1 Recreate
|
||||
Container mtusi-lab5-api-2 Recreate
|
||||
Container mtusi-lab5-dispatcher-1 Recreated
|
||||
Container mtusi-lab5-api-1 Recreated
|
||||
Container mtusi-lab5-api-2 Recreated
|
||||
Container mtusi-lab5-lb-1 Running
|
||||
Container mtusi-lab5-worker-1 Recreated
|
||||
Container mtusi-lab5-s3-store-1 Waiting
|
||||
Container mtusi-lab5-postgres-1 Waiting
|
||||
Container mtusi-lab5-s3-store-1 Healthy
|
||||
Container mtusi-lab5-postgres-1 Healthy
|
||||
Container mtusi-lab5-migrate-1 Starting
|
||||
Container mtusi-lab5-s3-1 Waiting
|
||||
Container mtusi-lab5-migrate-1 Started
|
||||
Container mtusi-lab5-broker-1 Waiting
|
||||
Container mtusi-lab5-migrate-1 Waiting
|
||||
Container mtusi-lab5-s3-1 Healthy
|
||||
Container mtusi-lab5-bucket-bootstrap-1 Starting
|
||||
Container mtusi-lab5-bucket-bootstrap-1 Started
|
||||
Container mtusi-lab5-bucket-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-migrate-1 Waiting
|
||||
Container mtusi-lab5-redis-1 Waiting
|
||||
Container mtusi-lab5-bucket-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-broker-1 Waiting
|
||||
Container mtusi-lab5-migrate-1 Waiting
|
||||
Container mtusi-lab5-migrate-1 Exited
|
||||
Container mtusi-lab5-broker-1 Healthy
|
||||
Container mtusi-lab5-dispatcher-1 Starting
|
||||
Container mtusi-lab5-dispatcher-1 Started
|
||||
Container mtusi-lab5-broker-1 Healthy
|
||||
Container mtusi-lab5-migrate-1 Exited
|
||||
Container mtusi-lab5-redis-1 Healthy
|
||||
Container mtusi-lab5-migrate-1 Exited
|
||||
Container mtusi-lab5-bucket-bootstrap-1 Exited
|
||||
Container mtusi-lab5-bucket-bootstrap-1 Exited
|
||||
Container mtusi-lab5-worker-1 Starting
|
||||
Container mtusi-lab5-api-1 Starting
|
||||
Container mtusi-lab5-worker-1 Started
|
||||
Container mtusi-lab5-api-1 Started
|
||||
Container mtusi-lab5-api-2 Starting
|
||||
Container mtusi-lab5-api-2 Started
|
||||
Container mtusi-lab5-api-1 Waiting
|
||||
Container mtusi-lab5-api-2 Waiting
|
||||
Container mtusi-lab5-api-1 Healthy
|
||||
Container mtusi-lab5-api-2 Healthy
|
||||
Container mtusi-lab5-broker-1 Waiting
|
||||
Container mtusi-lab5-s3-1 Waiting
|
||||
Container mtusi-lab5-redis-1 Waiting
|
||||
Container mtusi-lab5-dispatcher-1 Waiting
|
||||
Container mtusi-lab5-api-1 Waiting
|
||||
Container mtusi-lab5-api-2 Waiting
|
||||
Container mtusi-lab5-migrate-1 Waiting
|
||||
Container mtusi-lab5-lb-1 Waiting
|
||||
Container mtusi-lab5-bucket-bootstrap-1 Waiting
|
||||
Container mtusi-lab5-s3-store-1 Waiting
|
||||
Container mtusi-lab5-postgres-1 Waiting
|
||||
Container mtusi-lab5-worker-1 Waiting
|
||||
Container mtusi-lab5-redis-1 Healthy
|
||||
Container mtusi-lab5-migrate-1 Exited
|
||||
Container mtusi-lab5-postgres-1 Healthy
|
||||
Container mtusi-lab5-s3-store-1 Healthy
|
||||
Container mtusi-lab5-lb-1 Healthy
|
||||
Container mtusi-lab5-broker-1 Healthy
|
||||
Container mtusi-lab5-dispatcher-1 Healthy
|
||||
Container mtusi-lab5-s3-1 Healthy
|
||||
Container mtusi-lab5-worker-1 Healthy
|
||||
Container mtusi-lab5-bucket-bootstrap-1 Exited
|
||||
Container mtusi-lab5-api-1 Healthy
|
||||
Container mtusi-lab5-api-2 Healthy
|
||||
@@ -0,0 +1 @@
|
||||
{"instance": "e4901b6a601a4dd094235d4dfcb0591c", "container": "e22e0a3894effd8ff3990a11ba75247f5fdb8eb5fe4272518d2b4c591e7b9efa", "running": false, "exit_code": 0, "seconds": 0.445}
|
||||
@@ -0,0 +1,26 @@
|
||||
python3 tests/smoke.py --base-url "http://127.0.0.1:18091"
|
||||
PASS: lab5 public API scenario; infrastructure and grading evidence remain separate.
|
||||
BASE_URL="http://127.0.0.1:18091" python3 -m unittest discover -s student-tests -p 'test_*.py' -v
|
||||
test_concurrent_messages_and_pagination (test_api.APIContract) ... ok
|
||||
test_cursor_scope_and_validation (test_api.APIContract) ... ok
|
||||
test_foreign_chat (test_api.APIContract) ... ok
|
||||
test_idempotency_concurrent_replicas (test_api.APIContract) ... ok
|
||||
test_idempotency_conflicting_race (test_api.APIContract) ... ok
|
||||
test_idempotency_invalid_keys (test_api.APIContract) ... ok
|
||||
test_idempotency_scope (test_api.APIContract) ... ok
|
||||
test_idempotency_semantic_body (test_api.APIContract) ... ok
|
||||
test_invalid_chat_creation (test_api.APIContract) ... ok
|
||||
test_malformed_json_and_extra_fields (test_api.APIContract) ... ok
|
||||
test_protocol_error_headers (test_api.APIContract) ... ok
|
||||
test_registration_race (test_api.APIContract) ... ok
|
||||
test_unicode_limits (test_api.APIContract) ... ok
|
||||
test_unicode_nul_round_trip (test_api.APIContract) ... ok
|
||||
test_unicode_password_basic_and_logout (test_api.APIContract) ... ok
|
||||
test_async_variants_and_replay (test_images.Images) ... ok
|
||||
test_mime_bytes_pixels_and_filename (test_images.Images) ... ok
|
||||
test_private_and_cross_chat (test_images.Images) ... ok
|
||||
|
||||
----------------------------------------------------------------------
|
||||
Ran 18 tests in 5.184s
|
||||
|
||||
OK
|
||||
Reference in New Issue
Block a user