560 lines
21 KiB
Plaintext
560 lines
21 KiB
Plaintext
date: 2026-11-05T23:12:20Z commit: cf41f7c64dcf1dea6da0643f5793bd2e5dd1f03e
|
|
environment: {"COMPOSE_PROJECT_NAME": "hlpipe-lab4-grades-20261106", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18084", "LB_STATS_PORT": "24844", "BASE_URL": "http://127.0.0.1:18084", "EVIDENCE_DIR": "evidence/sqlalchemy-2026-11-06/grade4", "NO_PROXY": "localhost,127.0.0.1,::1"}
|
|
$ sh scripts/clean-clone.sh
|
|
date: 2026-11-05T23:12:20Z commit: cf41f7c64dcf1dea6da0643f5793bd2e5dd1f03e project: hlpipe-lab4-clean-20261105231220
|
|
HTTP=18084 stats=24845
|
|
$ git clone --quiet --no-hardlinks <repo> <repo>/.verification/hlpipe-lab4-clean-20261105231220
|
|
$ git checkout --quiet --detach cf41f7c64dcf1dea6da0643f5793bd2e5dd1f03e
|
|
$ make secrets
|
|
sh scripts/secrets.sh
|
|
создан secrets/postgres_password
|
|
создан secrets/database_url
|
|
создан secrets/cursor_secret
|
|
создан secrets/valkey_password
|
|
создан secrets/valkey.conf
|
|
создан secrets/cache_url
|
|
создан secrets/s3_root_user
|
|
создан secrets/s3_root_password
|
|
создан secrets/s3_access_key_id
|
|
создан secrets/s3_secret_access_key
|
|
создан secrets/s3_reconciler_access_key_id
|
|
создан secrets/s3_reconciler_secret_access_key
|
|
создан .env из .env.example
|
|
$ docker compose --env-file .env config --quiet
|
|
$ make up
|
|
sh scripts/secrets.sh
|
|
docker compose up -d --build --wait
|
|
#1 [internal] load local bake definitions
|
|
#1 reading from stdin 545B done
|
|
#1 DONE 0.0s
|
|
|
|
#2 [internal] load build definition from Dockerfile
|
|
#2 transferring dockerfile: 1.65kB done
|
|
#2 DONE 0.0s
|
|
|
|
#3 [internal] load metadata for ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142
|
|
#3 DONE 0.0s
|
|
|
|
#4 [internal] load metadata for docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d
|
|
#4 DONE 1.4s
|
|
|
|
#5 [internal] load .dockerignore
|
|
#5 transferring context: 453B done
|
|
#5 DONE 0.1s
|
|
|
|
#6 FROM ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142
|
|
#6 resolve ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142 0.0s done
|
|
#6 DONE 0.0s
|
|
|
|
#7 [builder 1/7] FROM docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d
|
|
#7 resolve docker.io/library/python:3.14-slim-trixie@sha256:51dafde81dbdb6ebde285137a295cf18a47ca95234fe388a343719cb97305b3d 0.0s done
|
|
#7 DONE 0.0s
|
|
|
|
#8 [internal] load build context
|
|
#8 transferring context: 483.54kB 0.0s done
|
|
#8 DONE 0.0s
|
|
|
|
#9 [builder 2/7] COPY --from=ghcr.io/astral-sh/uv:0.9.7@sha256:ba4857bf2a068e9bc0e64eed8563b065908a4cd6bfb66b531a9c424c8e25e142 /uv /usr/local/bin/uv
|
|
#9 CACHED
|
|
|
|
#10 [builder 3/7] WORKDIR /build
|
|
#10 CACHED
|
|
|
|
#11 [builder 4/7] COPY pyproject.toml uv.lock README.md ./
|
|
#11 CACHED
|
|
|
|
#12 [builder 5/7] RUN uv sync --locked --no-dev --no-install-project --no-editable
|
|
#12 CACHED
|
|
|
|
#13 [builder 6/7] COPY src ./src
|
|
#13 DONE 0.0s
|
|
|
|
#14 [builder 7/7] RUN uv sync --locked --no-dev --no-editable
|
|
#14 0.152 Resolved 78 packages in 0.39ms
|
|
#14 0.153 Building mtusi-messenger @ file:///build
|
|
#14 1.399 Built mtusi-messenger @ file:///build
|
|
#14 1.403 Prepared 1 package in 1.24s
|
|
#14 1.407 Installed 1 package in 3ms
|
|
#14 1.481 Bytecode compiled 1701 files in 74ms
|
|
#14 1.481 + mtusi-messenger==1.4.0 (from file:///build)
|
|
#14 DONE 1.5s
|
|
|
|
#15 [runtime 2/6] RUN groupadd --system --gid 10001 messenger && useradd --system --uid 10001 --gid messenger --no-create-home --shell /usr/sbin/nologin messenger
|
|
#15 CACHED
|
|
|
|
#16 [runtime 3/6] COPY --from=builder --chown=root:root /opt/venv /opt/venv
|
|
#16 DONE 0.3s
|
|
|
|
#17 [runtime 4/6] WORKDIR /app
|
|
#17 DONE 0.0s
|
|
|
|
#18 [runtime 5/6] COPY --chown=root:root alembic.ini ./
|
|
#18 DONE 0.0s
|
|
|
|
#19 [runtime 6/6] COPY --chown=root:root alembic ./alembic
|
|
#19 DONE 0.0s
|
|
|
|
#20 exporting to image
|
|
#20 exporting layers
|
|
#20 exporting layers 2.8s done
|
|
#20 exporting manifest sha256:b0f8b4f5bfdca8059b9184ca5af11b5341a64dd469a52e6daedd593b2689c003
|
|
#20 exporting manifest sha256:b0f8b4f5bfdca8059b9184ca5af11b5341a64dd469a52e6daedd593b2689c003 done
|
|
#20 exporting config sha256:07d0696b888e360b9e3e8c2cbc9105c9794a86343045cfb9e1efcc797c65d091 done
|
|
#20 exporting attestation manifest sha256:13bcaf7f8d32ec9c3b61cf342963eac3f4022a26ae7ebab90afd39ceb7cc6ca0 done
|
|
#20 exporting manifest list sha256:01a5e25934253c3377e9e2f255a54e7f958465552c70d98ca02d088176edb344 done
|
|
#20 naming to docker.io/library/mtusi-messenger:hlpipe-lab4-clean-20261105231220 done
|
|
#20 unpacking to docker.io/library/mtusi-messenger:hlpipe-lab4-clean-20261105231220
|
|
#20 unpacking to docker.io/library/mtusi-messenger:hlpipe-lab4-clean-20261105231220 0.6s done
|
|
#20 DONE 3.4s
|
|
|
|
#21 resolving provenance for metadata file
|
|
#21 DONE 0.0s
|
|
api Built
|
|
Network hlpipe-lab4-clean-20261105231220_backend Creating
|
|
Network hlpipe-lab4-clean-20261105231220_backend Created
|
|
Network hlpipe-lab4-clean-20261105231220_edge Creating
|
|
Network hlpipe-lab4-clean-20261105231220_edge Created
|
|
Volume "hlpipe-lab4-clean-20261105231220_valkeydata" Creating
|
|
Volume "hlpipe-lab4-clean-20261105231220_valkeydata" Created
|
|
Volume "hlpipe-lab4-clean-20261105231220_pgdata" Creating
|
|
Volume "hlpipe-lab4-clean-20261105231220_pgdata" Created
|
|
Volume "hlpipe-lab4-clean-20261105231220_s3data" Creating
|
|
Volume "hlpipe-lab4-clean-20261105231220_s3data" Created
|
|
Container hlpipe-lab4-clean-20261105231220-lb-1 Creating
|
|
Container hlpipe-lab4-clean-20261105231220-valkey-1 Creating
|
|
Container hlpipe-lab4-clean-20261105231220-s3-1 Creating
|
|
Container hlpipe-lab4-clean-20261105231220-postgres-1 Creating
|
|
Container hlpipe-lab4-clean-20261105231220-valkey-1 Created
|
|
Container hlpipe-lab4-clean-20261105231220-s3-1 Created
|
|
Container hlpipe-lab4-clean-20261105231220-postgres-1 Created
|
|
Container hlpipe-lab4-clean-20261105231220-s3-init-1 Creating
|
|
Container hlpipe-lab4-clean-20261105231220-migrate-1 Creating
|
|
Container hlpipe-lab4-clean-20261105231220-lb-1 Created
|
|
Container hlpipe-lab4-clean-20261105231220-s3-init-1 Created
|
|
Container hlpipe-lab4-clean-20261105231220-migrate-1 Created
|
|
Container hlpipe-lab4-clean-20261105231220-api-2 Creating
|
|
Container hlpipe-lab4-clean-20261105231220-api-1 Creating
|
|
Container hlpipe-lab4-clean-20261105231220-api-1 Created
|
|
Container hlpipe-lab4-clean-20261105231220-api-2 Created
|
|
Container hlpipe-lab4-clean-20261105231220-postgres-1 Starting
|
|
Container hlpipe-lab4-clean-20261105231220-valkey-1 Starting
|
|
Container hlpipe-lab4-clean-20261105231220-s3-1 Starting
|
|
Container hlpipe-lab4-clean-20261105231220-lb-1 Starting
|
|
Container hlpipe-lab4-clean-20261105231220-postgres-1 Started
|
|
Container hlpipe-lab4-clean-20261105231220-postgres-1 Waiting
|
|
Container hlpipe-lab4-clean-20261105231220-valkey-1 Started
|
|
Container hlpipe-lab4-clean-20261105231220-s3-1 Started
|
|
Container hlpipe-lab4-clean-20261105231220-s3-1 Waiting
|
|
Container hlpipe-lab4-clean-20261105231220-lb-1 Started
|
|
Container hlpipe-lab4-clean-20261105231220-postgres-1 Healthy
|
|
Container hlpipe-lab4-clean-20261105231220-migrate-1 Starting
|
|
Container hlpipe-lab4-clean-20261105231220-migrate-1 Started
|
|
Container hlpipe-lab4-clean-20261105231220-s3-1 Healthy
|
|
Container hlpipe-lab4-clean-20261105231220-s3-init-1 Starting
|
|
Container hlpipe-lab4-clean-20261105231220-s3-init-1 Started
|
|
Container hlpipe-lab4-clean-20261105231220-migrate-1 Waiting
|
|
Container hlpipe-lab4-clean-20261105231220-s3-init-1 Waiting
|
|
Container hlpipe-lab4-clean-20261105231220-migrate-1 Exited
|
|
Container hlpipe-lab4-clean-20261105231220-s3-init-1 Exited
|
|
Container hlpipe-lab4-clean-20261105231220-api-1 Starting
|
|
Container hlpipe-lab4-clean-20261105231220-api-1 Started
|
|
Container hlpipe-lab4-clean-20261105231220-api-2 Starting
|
|
Container hlpipe-lab4-clean-20261105231220-api-2 Started
|
|
Container hlpipe-lab4-clean-20261105231220-migrate-1 Waiting
|
|
Container hlpipe-lab4-clean-20261105231220-s3-1 Waiting
|
|
Container hlpipe-lab4-clean-20261105231220-api-1 Waiting
|
|
Container hlpipe-lab4-clean-20261105231220-api-2 Waiting
|
|
Container hlpipe-lab4-clean-20261105231220-valkey-1 Waiting
|
|
Container hlpipe-lab4-clean-20261105231220-postgres-1 Waiting
|
|
Container hlpipe-lab4-clean-20261105231220-lb-1 Waiting
|
|
Container hlpipe-lab4-clean-20261105231220-s3-init-1 Waiting
|
|
Container hlpipe-lab4-clean-20261105231220-valkey-1 Healthy
|
|
Container hlpipe-lab4-clean-20261105231220-postgres-1 Healthy
|
|
Container hlpipe-lab4-clean-20261105231220-s3-1 Healthy
|
|
Container hlpipe-lab4-clean-20261105231220-migrate-1 Exited
|
|
Container hlpipe-lab4-clean-20261105231220-s3-init-1 Exited
|
|
Container hlpipe-lab4-clean-20261105231220-api-1 Healthy
|
|
Container hlpipe-lab4-clean-20261105231220-api-2 Healthy
|
|
Container hlpipe-lab4-clean-20261105231220-lb-1 Healthy
|
|
scripts/lb-wait.sh
|
|
$ docker compose ps -a --format {{.Service}} {{.State}} {{.Status}} {{.Ports}}
|
|
api running Up 4 seconds (healthy)
|
|
api running Up 4 seconds (healthy)
|
|
lb running Up 10 seconds (healthy) 127.0.0.1:18084->8080/tcp, 127.0.0.1:24845->8404/tcp
|
|
migrate exited Exited (0) 8 seconds ago
|
|
postgres running Up 10 seconds (healthy)
|
|
s3 running Up 10 seconds (healthy)
|
|
s3-init exited Exited (0) 4 seconds ago
|
|
valkey running Up 10 seconds (healthy)
|
|
$ make test
|
|
python3 tests/smoke.py --base-url "http://127.0.0.1:18084"
|
|
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
|
|
$ make test-persistence ACTION_SCRIPT=scripts/restart.sh
|
|
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:18084"
|
|
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
|
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
|
$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh
|
|
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:18084"
|
|
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
|
{"observed_instances_before": 2, "successful_writes": 130, "failed_attempts": 0, "first_recovery_seconds": 3.119}
|
|
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
|
$ docker compose ps -a --format {{.Service}} {{.Name}} {{.State}} api
|
|
api hlpipe-lab4-clean-20261105231220-api-1 exited
|
|
api hlpipe-lab4-clean-20261105231220-api-2 running
|
|
$ make restore
|
|
scripts/restore.sh
|
|
Container hlpipe-lab4-clean-20261105231220-api-2 Running
|
|
Container hlpipe-lab4-clean-20261105231220-api-1 Starting
|
|
Container hlpipe-lab4-clean-20261105231220-api-1 Started
|
|
Container hlpipe-lab4-clean-20261105231220-api-1 Waiting
|
|
Container hlpipe-lab4-clean-20261105231220-api-2 Waiting
|
|
Container hlpipe-lab4-clean-20261105231220-api-1 Healthy
|
|
Container hlpipe-lab4-clean-20261105231220-api-2 Healthy
|
|
$ make scenario SCENARIO=failover-upload
|
|
python3 scripts/lab4_scenarios.py failover-upload --base-url "http://127.0.0.1:18084" --restore --output evidence/failover-upload.json
|
|
{
|
|
"ok": true,
|
|
"date": "2026-11-05T23:13:10Z",
|
|
"commit": "cf41f7c64dcf1dea6da0643f5793bd2e5dd1f03e",
|
|
"scenario": "failover-upload",
|
|
"upload_instance": "56788b3aeacd",
|
|
"download_instance": "cc3f04d0a6fd",
|
|
"sha256_equal": true,
|
|
"hook_seconds": 2.67,
|
|
"download_ok_after_seconds": 2.727,
|
|
"replicas_at_download": [
|
|
{
|
|
"hostname": "56788b3aeacd",
|
|
"status": "exited",
|
|
"exit_code": "0",
|
|
"started_at": "2026-11-05T23:13:08.93749347Z",
|
|
"finished_at": "2026-11-05T23:13:13.57454975Z"
|
|
},
|
|
{
|
|
"hostname": "cc3f04d0a6fd",
|
|
"status": "running",
|
|
"exit_code": "0",
|
|
"started_at": "2026-11-05T23:12:49.688416461Z",
|
|
"finished_at": "2026-11-05T23:12:43.290906014Z"
|
|
}
|
|
],
|
|
"restored": true,
|
|
"replicas_after_restore": [
|
|
{
|
|
"hostname": "56788b3aeacd",
|
|
"status": "running",
|
|
"exit_code": "0",
|
|
"started_at": "2026-11-05T23:13:14.013949083Z",
|
|
"finished_at": "2026-11-05T23:13:13.57454975Z"
|
|
},
|
|
{
|
|
"hostname": "cc3f04d0a6fd",
|
|
"status": "running",
|
|
"exit_code": "0",
|
|
"started_at": "2026-11-05T23:12:49.688416461Z",
|
|
"finished_at": "2026-11-05T23:12:43.290906014Z"
|
|
}
|
|
]
|
|
}
|
|
scripts/lb-wait.sh
|
|
$ make restore
|
|
scripts/restore.sh
|
|
Container hlpipe-lab4-clean-20261105231220-api-1 Running
|
|
Container hlpipe-lab4-clean-20261105231220-api-2 Running
|
|
Container hlpipe-lab4-clean-20261105231220-api-1 Waiting
|
|
Container hlpipe-lab4-clean-20261105231220-api-2 Waiting
|
|
Container hlpipe-lab4-clean-20261105231220-api-1 Healthy
|
|
Container hlpipe-lab4-clean-20261105231220-api-2 Healthy
|
|
$ make scenario SCENARIO=s3-outage
|
|
python3 scripts/lab4_scenarios.py s3-outage --base-url "http://127.0.0.1:18084" --restore --output evidence/s3-outage.json
|
|
{
|
|
"ok": true,
|
|
"date": "2026-11-05T23:13:18Z",
|
|
"commit": "cf41f7c64dcf1dea6da0643f5793bd2e5dd1f03e",
|
|
"scenario": "s3-outage",
|
|
"s3_container_during_outage": [
|
|
{
|
|
"hostname": "63d23d7d728d",
|
|
"status": "exited",
|
|
"exit_code": "0",
|
|
"started_at": "2026-11-05T23:12:43.658545375Z",
|
|
"finished_at": "2026-11-05T23:13:18.368174877Z"
|
|
}
|
|
],
|
|
"during_outage": {
|
|
"upload": {
|
|
"status": 503,
|
|
"seconds": 1.528,
|
|
"instance": "cc3f04d0a6fd"
|
|
},
|
|
"metadata": {
|
|
"status": 200,
|
|
"seconds": 0.02,
|
|
"instance": "56788b3aeacd"
|
|
},
|
|
"download": {
|
|
"status": 503,
|
|
"seconds": 1.889,
|
|
"instance": "cc3f04d0a6fd"
|
|
},
|
|
"text_message": {
|
|
"status": 201,
|
|
"seconds": 0.015,
|
|
"instance": "56788b3aeacd"
|
|
},
|
|
"health_ready": {
|
|
"status": 200,
|
|
"seconds": 0.004,
|
|
"instance": "cc3f04d0a6fd"
|
|
}
|
|
},
|
|
"expected": {
|
|
"upload": 503,
|
|
"download": 503,
|
|
"text_message": 201
|
|
},
|
|
"as_expected": true,
|
|
"s3_back_healthy_seconds": 5.742,
|
|
"download_after_recovery": "sha256 equal"
|
|
}
|
|
scripts/lb-wait.sh
|
|
$ sh scripts/s3-check.sh
|
|
date: 2026-11-05T23:13:28Z commit: cf41f7c64dcf1dea6da0643f5793bd2e5dd1f03e == S3 privacy and bootstrap checks
|
|
PASS s3: опубликованные host-порты: нет
|
|
PASS s3: консоль :9001 внутри контейнера: 000
|
|
PASS s3-init: повторный запуск 1: 0
|
|
PASS s3-init: повторный запуск 2: 0
|
|
PASS s3-init: состояние IAM/bucket не изменилось: same
|
|
PASS api: PutObject: allow
|
|
PASS api: HeadObject: allow
|
|
PASS api: GetObject: allow
|
|
PASS api: ListBucket: deny
|
|
PASS reconciler: ListBucket: allow
|
|
PASS reconciler: HeadObject: allow
|
|
PASS reconciler: GetObject: allow
|
|
PASS reconciler: PutObject: deny
|
|
PASS reconciler: DeleteObject: allow
|
|
PASS reconciler: CreateBucket: deny
|
|
PASS reconciler: PutBucketPolicy (public): deny
|
|
PASS reconciler: admin ListUsers: deny
|
|
PASS api: CreateBucket: deny
|
|
PASS api: DeleteBucket: deny
|
|
PASS api: PutBucketPolicy (public): deny
|
|
PASS api: PutBucketLifecycle (HeadBucket уже 403): deny
|
|
PASS api: admin ListUsers: deny
|
|
PASS api: PutObject в чужой bucket: deny
|
|
PASS api: ListBucket чужого bucket: deny
|
|
PASS anonymous: HeadObject: deny
|
|
PASS anonymous: ListBucket: deny
|
|
PASS anonymous: PutObject: deny
|
|
PASS anonymous: прямой HTTP GET объекта из отдельного контейнера: 403
|
|
PASS bucket: anonymous policy: private
|
|
PASS api: DeleteObject: allow
|
|
PASS s3: консоль :9001 из отдельного контейнера сети стенда: connection refused
|
|
== IAM/bucket snapshot (без секретов)
|
|
{
|
|
"items": [
|
|
{
|
|
"key": "messenger-attachments",
|
|
"last_modified": "2026-11-05T23:12:35Z",
|
|
"is_dir": true
|
|
}
|
|
],
|
|
"truncated": false
|
|
}
|
|
{
|
|
"path": "root/messenger-attachments",
|
|
"permission": "private"
|
|
}
|
|
{
|
|
"name": "messenger-api",
|
|
"policy": {
|
|
"policy": {
|
|
"Statement": [
|
|
{
|
|
"Action": [
|
|
"s3:GetObject",
|
|
"s3:PutObject",
|
|
"s3:DeleteObject"
|
|
],
|
|
"Effect": "Allow",
|
|
"Resource": [
|
|
"arn:aws:s3:::messenger-attachments/*"
|
|
],
|
|
"Sid": "MessengerApiObjects"
|
|
}
|
|
],
|
|
"Version": "2012-10-17"
|
|
},
|
|
"policy_name": "messenger-api"
|
|
}
|
|
}
|
|
{
|
|
"name": "messenger-reconciler",
|
|
"policy": {
|
|
"policy": {
|
|
"Statement": [
|
|
{
|
|
"Action": [
|
|
"s3:GetObject",
|
|
"s3:DeleteObject"
|
|
],
|
|
"Effect": "Allow",
|
|
"Resource": [
|
|
"arn:aws:s3:::messenger-attachments/*"
|
|
],
|
|
"Sid": "MessengerReconcilerObjects"
|
|
},
|
|
{
|
|
"Action": [
|
|
"s3:ListBucket"
|
|
],
|
|
"Effect": "Allow",
|
|
"Resource": [
|
|
"arn:aws:s3:::messenger-attachments"
|
|
],
|
|
"Sid": "MessengerReconcilerListing"
|
|
}
|
|
],
|
|
"Version": "2012-10-17"
|
|
},
|
|
"policy_name": "messenger-reconciler"
|
|
}
|
|
}
|
|
{
|
|
"accessKey": "<api-key>",
|
|
"status": "enabled",
|
|
"policies": [
|
|
"messenger-api"
|
|
],
|
|
"memberOf": []
|
|
}
|
|
{
|
|
"accessKey": "<reconciler-key>",
|
|
"status": "enabled",
|
|
"policies": [
|
|
"messenger-reconciler"
|
|
],
|
|
"memberOf": []
|
|
}
|
|
{
|
|
"rules": [
|
|
{
|
|
"id": "abort-incomplete-uploads",
|
|
"status": "Enabled",
|
|
"prefix": "",
|
|
"abortIncompleteMultipartUploadDays": 1
|
|
}
|
|
]
|
|
}
|
|
RESULT: PASS
|
|
$ make reconcile
|
|
docker compose run --rm --no-deps reconciler
|
|
{
|
|
"mode": "dry-run",
|
|
"skipped": false,
|
|
"grace_seconds": 3600,
|
|
"skew_seconds": 60,
|
|
"deep": false,
|
|
"page_size": 1000,
|
|
"scanned": {
|
|
"objects": 5,
|
|
"rows": 6
|
|
},
|
|
"found": {
|
|
"orphan_stale": 0,
|
|
"orphan_fresh": 0,
|
|
"missing": 0,
|
|
"size_mismatch": 0,
|
|
"sha_mismatch": 0,
|
|
"pending_stale": 0,
|
|
"pending_fresh": 1,
|
|
"quarantined": 0,
|
|
"healed": 0
|
|
},
|
|
"fixed": {
|
|
"orphan_stale": 0,
|
|
"missing": 0,
|
|
"size_mismatch": 0,
|
|
"sha_mismatch": 0,
|
|
"pending_stale": 0,
|
|
"healed": 0
|
|
},
|
|
"rechecked": {},
|
|
"errors": 0,
|
|
"samples": {
|
|
"pending_fresh": [
|
|
"01a1adfc-f486-7437-8860-2cc085fb3b72"
|
|
]
|
|
},
|
|
"cost": {
|
|
"seconds": 0.025,
|
|
"requests": {
|
|
"s3_list": 1,
|
|
"s3_head": 0,
|
|
"s3_get": 0,
|
|
"s3_delete": 0,
|
|
"sql": 1
|
|
},
|
|
"waited_seconds": {
|
|
"s3_list": 0.011,
|
|
"sql": 0.005
|
|
},
|
|
"hashed_bytes": 0,
|
|
"cpu_seconds": 0.557,
|
|
"max_rss_mib": 107.2
|
|
}
|
|
}
|
|
$ make migrate
|
|
docker compose run --rm migrate
|
|
Container hlpipe-lab4-clean-20261105231220-postgres-1 Running
|
|
$ make down
|
|
docker compose --profile bench --profile tools --profile reconcile down
|
|
Container hlpipe-lab4-clean-20261105231220-lb-1 Stopping
|
|
Container hlpipe-lab4-clean-20261105231220-api-2 Stopping
|
|
Container hlpipe-lab4-clean-20261105231220-api-1 Stopping
|
|
Container hlpipe-lab4-clean-20261105231220-lb-1 Stopped
|
|
Container hlpipe-lab4-clean-20261105231220-lb-1 Removing
|
|
Container hlpipe-lab4-clean-20261105231220-lb-1 Removed
|
|
Container hlpipe-lab4-clean-20261105231220-api-2 Stopped
|
|
Container hlpipe-lab4-clean-20261105231220-api-2 Removing
|
|
Container hlpipe-lab4-clean-20261105231220-api-1 Stopped
|
|
Container hlpipe-lab4-clean-20261105231220-api-1 Removing
|
|
Container hlpipe-lab4-clean-20261105231220-api-2 Removed
|
|
Container hlpipe-lab4-clean-20261105231220-api-1 Removed
|
|
Container hlpipe-lab4-clean-20261105231220-migrate-1 Stopping
|
|
Container hlpipe-lab4-clean-20261105231220-s3-init-1 Stopping
|
|
Container hlpipe-lab4-clean-20261105231220-valkey-1 Stopping
|
|
Container hlpipe-lab4-clean-20261105231220-migrate-1 Stopped
|
|
Container hlpipe-lab4-clean-20261105231220-migrate-1 Removing
|
|
Container hlpipe-lab4-clean-20261105231220-s3-init-1 Stopped
|
|
Container hlpipe-lab4-clean-20261105231220-s3-init-1 Removing
|
|
Container hlpipe-lab4-clean-20261105231220-s3-init-1 Removed
|
|
Container hlpipe-lab4-clean-20261105231220-s3-1 Stopping
|
|
Container hlpipe-lab4-clean-20261105231220-migrate-1 Removed
|
|
Container hlpipe-lab4-clean-20261105231220-postgres-1 Stopping
|
|
Container hlpipe-lab4-clean-20261105231220-s3-1 Stopped
|
|
Container hlpipe-lab4-clean-20261105231220-s3-1 Removing
|
|
Container hlpipe-lab4-clean-20261105231220-postgres-1 Stopped
|
|
Container hlpipe-lab4-clean-20261105231220-postgres-1 Removing
|
|
Container hlpipe-lab4-clean-20261105231220-s3-1 Removed
|
|
Container hlpipe-lab4-clean-20261105231220-postgres-1 Removed
|
|
Container hlpipe-lab4-clean-20261105231220-valkey-1 Stopped
|
|
Container hlpipe-lab4-clean-20261105231220-valkey-1 Removing
|
|
Container hlpipe-lab4-clean-20261105231220-valkey-1 Removed
|
|
Network hlpipe-lab4-clean-20261105231220_edge Removing
|
|
Network hlpipe-lab4-clean-20261105231220_backend Removing
|
|
Network hlpipe-lab4-clean-20261105231220_backend Removed
|
|
Network hlpipe-lab4-clean-20261105231220_edge Removed
|
|
$ docker volume ls --filter label=com.docker.compose.project=hlpipe-lab4-clean-20261105231220
|
|
DRIVER VOLUME NAME
|
|
local hlpipe-lab4-clean-20261105231220_pgdata
|
|
local hlpipe-lab4-clean-20261105231220_s3data
|
|
local hlpipe-lab4-clean-20261105231220_valkeydata
|
|
DRIVER VOLUME NAME
|
|
local hlpipe-lab4-clean-20261105231220_pgdata
|
|
local hlpipe-lab4-clean-20261105231220_s3data
|
|
local hlpipe-lab4-clean-20261105231220_valkeydata
|
|
exit_code: 0; volumes retained
|
|
exit_code: 0 elapsed_seconds: 76.866
|