Lab3: final implementation, evidence and report
This commit is contained in:
@@ -184,7 +184,7 @@ client ───────────────► HAProxy 3.0
|
||||
| Критерий README | Команда/сценарий | Наблюдаемый результат | Файл доказательства |
|
||||
| --- | --- | --- | --- |
|
||||
| Health/readiness, timeouts, SIGTERM, исключение backend | `make test-container`; failover-матрица | readiness 200/503; drain 3 с; LB исключает backend за ~2 с; 0 ошибок | `evidence/container-checks.json`, `evidence/failover/each-replica.json` |
|
||||
| Последовательно остановить каждую реплику, восстановить, собрать RPS/ошибки/recovery | `make failover-each` | 2 разных контейнера по очереди; 0 ошибок; first success 0.004–0.005 с, other replica 0.004–0.005 с; restore 0.6–0.8 с | `evidence/failover/each-replica.json` |
|
||||
| Последовательно остановить каждую реплику, восстановить, собрать RPS/ошибки/recovery | `make failover-each` | 2 разных контейнера по очереди; 0 ошибок; first success 0.002–0.003 с, other replica 0.002–0.003 с; restore 0.612–1.594 с | `evidence/failover/each-replica.json` |
|
||||
| CPU/RAM-лимиты; API не публикует порты; нет `container_name` | `make test-container` | API `docker port` пуст; LB только 127.0.0.1:8083; limits > 0; read-only/non-root | `evidence/container-checks.txt` |
|
||||
| Rolling update под нагрузкой; миграции однократно и совместимы | `make rolling` | замена по одной, old/new version в ответах, 0 5xx, `migrate` no-op | `evidence/rolling-update/rolling.json`, `evidence/rolling-update/migrate.txt` |
|
||||
|
||||
@@ -260,7 +260,7 @@ Baseline image `sha256:96a80886…` (явная транзакция + отде
|
||||
|
||||
| Воздействие | Что ожидали | Что наблюдали | Восстановление / потеря |
|
||||
| --- | --- | --- | --- |
|
||||
| Остановка каждой API-реплики по очереди под нагрузкой | другие реплики продолжают, краткие ошибки допустимы | два разных контейнера `api-1`/`api-2` (container ids `a5e18417…`, `ddf2f672…`; instance ids совпадают с hostname); 0 ошибок в каждом 16-секундном mixed-прогоне; target исчез из ответов | первый успешный запрос через другую реплику — 0.002 с; первая запись — 0.136 с и 0.004 с; target_responses_after_stop=0; остановка контейнера 3.22/3.32 с; восстановление до обслуживания LB — 1.627/0.396 с |
|
||||
| Остановка каждой API-реплики по очереди под нагрузкой | другие реплики продолжают, краткие ошибки допустимы | два разных контейнера `api-1`/`api-2` (container ids `a5e18417…`, `ddf2f672…`; instance ids совпадают с hostname); 0 ошибок в каждом 16-секундном mixed-прогоне; target исчез из ответов | первый успешный запрос через другую реплику — 0.002/0.003 с; первая запись — 0.002/0.207 с; target_responses_after_stop=0; остановка контейнера 3.22/3.32 с; восстановление до обслуживания LB — 1.594/0.612 с |
|
||||
| `docker stop` PostgreSQL | live 200, ready 503, защищённые 503, аноним 401; данные/токен целы | прямо в процессе API: live 200, ready 503, защищённый/логин/запись 503; через LB live 200 (на момент замера backend ещё не исключён), ready 503 | 5.411 с до readiness через LB; volumes сохранены; тот же токен работает, история читается |
|
||||
| `docker stop` Valkey | live 200, ready 503, защищённые 503, аноним 401; токен цел | прямо в процессе API: live 200, ready 503, защищённый/логин/запись 503; через LB live и ready 503 после исключения backend | 5.385 с до readiness; volumes и counts сохранены; тот же токен работает |
|
||||
| Rolling update 1.0.0 → 2.0.0 под нагрузкой | поочерёдная замена, старые и новые реплики совместимы | две старые реплики заменены по одной; probe: 183 848 запросов, 0 ошибок, 3676.8 RPS, p95 4.3 мс; в ответах 32 821 × 1.0.0 и 151 027 × 2.0.0; 4 разных instance id (старые и новые) | без потери запросов; повторный migrate — no-op 3.709 мс при работающих старых репликах, схема 1,2,3 до/после; финальные контейнеры на image `sha256:7b7cf471…` |
|
||||
@@ -291,7 +291,22 @@ Baseline image `sha256:96a80886…` (явная транзакция + отде
|
||||
|
||||
## Чистый clone
|
||||
|
||||
{{CLEAN_CLONE}}
|
||||
Проверено на отдельном clone commit `1a7f31e7e5ee25e5f34b7b851d068c5cce77ed43`
|
||||
(код приложения совпадает с `922a38b…`, отличаются только скрипты/отчёт) в
|
||||
`/Users/ivanmuller/Desktop/oh_my_life/.local/highload-tasks/lab3-artifacts/`.
|
||||
До тестов: `users=0`, `migrations=1,2,3` — схема поднята с нуля на пустых
|
||||
volumes. `make check`, `make validate`, `make test`, 141 black-box проверка
|
||||
на Python 3.9.6 и `make test-persistence` — PASS; persistence сохранил
|
||||
прежний токен. После проверки `make purge` удалил контейнеры, volumes, сеть
|
||||
и временный image, контейнеров/volumes проекта не осталось. Основной стенд
|
||||
на время проверки был остановлен с сохранением данных и затем поднят с теми
|
||||
же volumes.
|
||||
|
||||
Первый запуск clean clone в `/tmp` выявил ограничение Colima: VM не
|
||||
bind-mount-ит `/tmp`, поэтому `infra/haproxy.cfg` внутри контейнера оказался
|
||||
пустым. Это ограничение окружения, а не приложения; clone перенесён в
|
||||
разделяемый путь `/Users/...`, после чего проверка прошла. Для сдачи
|
||||
достаточно клонировать в домашний каталог.
|
||||
|
||||
## Защита
|
||||
|
||||
|
||||
+267
-2
@@ -1,2 +1,267 @@
|
||||
clean-clone-check: working tree is dirty; commit first
|
||||
EXIT:2
|
||||
== clean clone ==
|
||||
source revision: 1a7f31e7e5ee25e5f34b7b851d068c5cce77ed43
|
||||
clone: /Users/ivanmuller/Desktop/oh_my_life/.local/highload-tasks/lab3-artifacts/clean-clone.EazRmV
|
||||
project: mtusi-lab3-melnikov-clean; LB port: 8084
|
||||
== environment and validation ==
|
||||
wrote .env with generated local synthetic credentials (mode 600); values not printed
|
||||
/usr/bin/python3 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
WARNING: You are using pip version 21.2.4; however, version 26.0.1 is available.
|
||||
You should consider upgrading via the '/Users/ivanmuller/Desktop/oh_my_life/.local/highload-tasks/lab3-artifacts/clean-clone.EazRmV/.venv/bin/python -m pip install --upgrade pip' command.
|
||||
.venv/bin/python scripts/validate_openapi.py
|
||||
/Users/ivanmuller/Desktop/oh_my_life/.local/highload-tasks/lab3-artifacts/clean-clone.EazRmV/.venv/lib/python3.9/site-packages/urllib3/__init__.py:35: NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020
|
||||
warnings.warn(
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
== build and start from empty named volumes ==
|
||||
GIT_REVISION="1a7f31e7e5ee25e5f34b7b851d068c5cce77ed43" API_IMAGE="mtusi-lab3-melnikov-clean:local" ./scripts/compose.sh --env-file .env up -d --build
|
||||
time="2026-12-02T19:36:26+03:00" level=warning msg="Docker Compose is configured to build using Bake, but buildx isn't installed"
|
||||
#0 building with "colima" instance using docker driver
|
||||
|
||||
#1 [migrate internal] load build definition from Dockerfile
|
||||
#1 transferring dockerfile: 2.03kB done
|
||||
#1 DONE 0.0s
|
||||
|
||||
#2 [migrate] resolve image config for docker-image://docker.io/docker/dockerfile:1
|
||||
#2 DONE 0.8s
|
||||
|
||||
#3 [migrate] docker-image://docker.io/docker/dockerfile:1@sha256:572cebbc2b15e6f84c077742952674889cb63cd5e9b80abdffcbe587b6f19183
|
||||
#3 CACHED
|
||||
|
||||
#4 [migrate internal] load metadata for docker.io/library/alpine:3.22.1@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1
|
||||
#4 DONE 0.0s
|
||||
|
||||
#5 [migrate internal] load metadata for docker.io/library/golang:1.25.1-alpine3.22@sha256:b6ed3fd0452c0e9bcdef5597f29cc1418f61672e9d3a2f55bf02e7222c014abd
|
||||
#5 DONE 0.0s
|
||||
|
||||
#6 [migrate internal] load .dockerignore
|
||||
#6 transferring context: 196B done
|
||||
#6 DONE 0.0s
|
||||
|
||||
#7 [migrate build 1/7] FROM docker.io/library/golang:1.25.1-alpine3.22@sha256:b6ed3fd0452c0e9bcdef5597f29cc1418f61672e9d3a2f55bf02e7222c014abd
|
||||
#7 DONE 0.0s
|
||||
|
||||
#8 [migrate runtime 1/4] FROM docker.io/library/alpine:3.22.1@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1
|
||||
#8 DONE 0.0s
|
||||
|
||||
#9 [migrate internal] load build context
|
||||
#9 transferring context: 8.77MB 0.1s done
|
||||
#9 DONE 0.1s
|
||||
|
||||
#10 [migrate build 3/7] COPY go.mod go.sum ./
|
||||
#10 CACHED
|
||||
|
||||
#11 [migrate build 4/7] COPY vendor ./vendor
|
||||
#11 CACHED
|
||||
|
||||
#12 [migrate build 5/7] COPY cmd ./cmd
|
||||
#12 CACHED
|
||||
|
||||
#13 [migrate build 2/7] WORKDIR /src
|
||||
#13 CACHED
|
||||
|
||||
#14 [migrate build 6/7] COPY internal ./internal
|
||||
#14 CACHED
|
||||
|
||||
#15 [migrate build 7/7] RUN go build -trimpath -buildvcs=false -ldflags="-s -w -buildid= -X main.version=1.0.0 -X main.revision=1a7f31e7e5ee25e5f34b7b851d068c5cce77ed43" -o /out/messenger ./cmd/messenger && go build -trimpath -buildvcs=false -ldflags="-s -w -buildid= -X main.revision=1a7f31e7e5ee25e5f34b7b851d068c5cce77ed43" -o /out/migrate ./cmd/migrate
|
||||
#15 DONE 13.2s
|
||||
|
||||
#16 [migrate runtime 2/4] WORKDIR /app
|
||||
#16 CACHED
|
||||
|
||||
#17 [migrate runtime 3/4] COPY --from=build --chown=10001:10001 /out/messenger /app/messenger
|
||||
#17 DONE 0.0s
|
||||
|
||||
#18 [migrate runtime 4/4] COPY --from=build --chown=10001:10001 /out/migrate /app/migrate
|
||||
#18 DONE 0.0s
|
||||
|
||||
#19 [migrate] exporting to image
|
||||
#19 exporting layers 0.0s done
|
||||
#19 writing image sha256:94c56acec8dc46c66eaa238bf3a037f9826092a80c61b09df79a1e70f8e015f1 done
|
||||
#19 naming to docker.io/library/mtusi-lab3-melnikov-clean:local done
|
||||
#19 DONE 0.0s
|
||||
|
||||
#20 [migrate] resolving provenance for metadata file
|
||||
#20 DONE 0.0s
|
||||
|
||||
#21 [api internal] load build definition from Dockerfile
|
||||
#21 transferring dockerfile: 2.03kB done
|
||||
#21 DONE 0.0s
|
||||
|
||||
#2 [api] resolve image config for docker-image://docker.io/docker/dockerfile:1
|
||||
#2 DONE 1.1s
|
||||
|
||||
#3 [api] docker-image://docker.io/docker/dockerfile:1@sha256:572cebbc2b15e6f84c077742952674889cb63cd5e9b80abdffcbe587b6f19183
|
||||
#3 CACHED
|
||||
|
||||
#4 [api internal] load metadata for docker.io/library/alpine:3.22.1@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1
|
||||
#4 DONE 0.0s
|
||||
|
||||
#5 [api internal] load metadata for docker.io/library/golang:1.25.1-alpine3.22@sha256:b6ed3fd0452c0e9bcdef5597f29cc1418f61672e9d3a2f55bf02e7222c014abd
|
||||
#5 DONE 0.0s
|
||||
|
||||
#22 [api internal] load .dockerignore
|
||||
#22 transferring context: 196B done
|
||||
#22 DONE 0.0s
|
||||
|
||||
#8 [api runtime 1/4] FROM docker.io/library/alpine:3.22.1@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1
|
||||
#8 DONE 0.0s
|
||||
|
||||
#7 [api build 1/7] FROM docker.io/library/golang:1.25.1-alpine3.22@sha256:b6ed3fd0452c0e9bcdef5597f29cc1418f61672e9d3a2f55bf02e7222c014abd
|
||||
#7 DONE 0.0s
|
||||
|
||||
#23 [api internal] load build context
|
||||
#23 transferring context: 34.97kB 0.0s done
|
||||
#23 DONE 0.0s
|
||||
|
||||
#24 [api build 5/7] COPY cmd ./cmd
|
||||
#24 CACHED
|
||||
|
||||
#25 [api build 6/7] COPY internal ./internal
|
||||
#25 CACHED
|
||||
|
||||
#26 [api runtime 3/4] COPY --from=build --chown=10001:10001 /out/messenger /app/messenger
|
||||
#26 CACHED
|
||||
|
||||
#27 [api build 7/7] RUN go build -trimpath -buildvcs=false -ldflags="-s -w -buildid= -X main.version=1.0.0 -X main.revision=1a7f31e7e5ee25e5f34b7b851d068c5cce77ed43" -o /out/messenger ./cmd/messenger && go build -trimpath -buildvcs=false -ldflags="-s -w -buildid= -X main.revision=1a7f31e7e5ee25e5f34b7b851d068c5cce77ed43" -o /out/migrate ./cmd/migrate
|
||||
#27 CACHED
|
||||
|
||||
#28 [api build 4/7] COPY vendor ./vendor
|
||||
#28 CACHED
|
||||
|
||||
#29 [api build 3/7] COPY go.mod go.sum ./
|
||||
#29 CACHED
|
||||
|
||||
#16 [api runtime 2/4] WORKDIR /app
|
||||
#16 CACHED
|
||||
|
||||
#13 [api build 2/7] WORKDIR /src
|
||||
#13 CACHED
|
||||
|
||||
#30 [api runtime 4/4] COPY --from=build --chown=10001:10001 /out/migrate /app/migrate
|
||||
#30 CACHED
|
||||
|
||||
#31 [api] exporting to image
|
||||
#31 exporting layers done
|
||||
#31 writing image sha256:91fdb7b0d1c400650633c114fa6624efb4d075f57826eaf1762ecb32c8c16405 done
|
||||
#31 naming to docker.io/library/mtusi-lab3-melnikov-clean:local done
|
||||
#31 DONE 0.0s
|
||||
|
||||
#32 [api] resolving provenance for metadata file
|
||||
#32 DONE 0.0s
|
||||
api Built
|
||||
migrate Built
|
||||
Network mtusi-lab3-melnikov-clean-net Creating
|
||||
Network mtusi-lab3-melnikov-clean-net Created
|
||||
Volume "mtusi-lab3-melnikov-clean-pgdata" Creating
|
||||
Volume "mtusi-lab3-melnikov-clean-pgdata" Created
|
||||
Volume "mtusi-lab3-melnikov-clean-valkeydata" Creating
|
||||
Volume "mtusi-lab3-melnikov-clean-valkeydata" Created
|
||||
Container mtusi-lab3-melnikov-clean-lb-1 Creating
|
||||
Container mtusi-lab3-melnikov-clean-postgres-1 Creating
|
||||
Container mtusi-lab3-melnikov-clean-valkey-1 Creating
|
||||
Container mtusi-lab3-melnikov-clean-postgres-1 Created
|
||||
Container mtusi-lab3-melnikov-clean-lb-1 Created
|
||||
Container mtusi-lab3-melnikov-clean-migrate-1 Creating
|
||||
Container mtusi-lab3-melnikov-clean-valkey-1 Created
|
||||
Container mtusi-lab3-melnikov-clean-migrate-1 Created
|
||||
Container mtusi-lab3-melnikov-clean-api-2 Creating
|
||||
Container mtusi-lab3-melnikov-clean-api-1 Creating
|
||||
Container mtusi-lab3-melnikov-clean-api-1 Created
|
||||
Container mtusi-lab3-melnikov-clean-api-2 Created
|
||||
Container mtusi-lab3-melnikov-clean-valkey-1 Starting
|
||||
Container mtusi-lab3-melnikov-clean-lb-1 Starting
|
||||
Container mtusi-lab3-melnikov-clean-postgres-1 Starting
|
||||
Container mtusi-lab3-melnikov-clean-postgres-1 Started
|
||||
Container mtusi-lab3-melnikov-clean-postgres-1 Waiting
|
||||
Container mtusi-lab3-melnikov-clean-valkey-1 Started
|
||||
Container mtusi-lab3-melnikov-clean-lb-1 Started
|
||||
Container mtusi-lab3-melnikov-clean-postgres-1 Healthy
|
||||
Container mtusi-lab3-melnikov-clean-migrate-1 Starting
|
||||
Container mtusi-lab3-melnikov-clean-migrate-1 Started
|
||||
Container mtusi-lab3-melnikov-clean-valkey-1 Waiting
|
||||
Container mtusi-lab3-melnikov-clean-migrate-1 Waiting
|
||||
Container mtusi-lab3-melnikov-clean-postgres-1 Waiting
|
||||
Container mtusi-lab3-melnikov-clean-valkey-1 Healthy
|
||||
Container mtusi-lab3-melnikov-clean-migrate-1 Exited
|
||||
Container mtusi-lab3-melnikov-clean-postgres-1 Healthy
|
||||
Container mtusi-lab3-melnikov-clean-api-1 Starting
|
||||
Container mtusi-lab3-melnikov-clean-api-1 Started
|
||||
Container mtusi-lab3-melnikov-clean-api-2 Starting
|
||||
Container mtusi-lab3-melnikov-clean-api-2 Started
|
||||
./scripts/wait-ready.sh
|
||||
ready: http://127.0.0.1:8084/health/ready
|
||||
users=0
|
||||
migrations=1,2,3
|
||||
NAME STATUS
|
||||
mtusi-lab3-melnikov-clean-api-1 Up Less than a second (health: starting)
|
||||
mtusi-lab3-melnikov-clean-api-2 Up Less than a second (health: starting)
|
||||
mtusi-lab3-melnikov-clean-lb-1 Up 6 seconds (healthy)
|
||||
mtusi-lab3-melnikov-clean-postgres-1 Up 6 seconds (healthy)
|
||||
mtusi-lab3-melnikov-clean-valkey-1 Up 6 seconds (healthy)
|
||||
== public and own tests on the clean stand ==
|
||||
/usr/bin/python3 tests/smoke.py --base-url "http://127.0.0.1:8084"
|
||||
PASS: lab3 public API scenario; infrastructure and grading evidence remain separate.
|
||||
go test -count=1 ./...
|
||||
? mtusi.ru/messenger-lab3/cmd/loadgen [no test files]
|
||||
? mtusi.ru/messenger-lab3/cmd/messenger [no test files]
|
||||
? mtusi.ru/messenger-lab3/cmd/migrate [no test files]
|
||||
ok mtusi.ru/messenger-lab3/internal/api 0.462s
|
||||
ok mtusi.ru/messenger-lab3/internal/auth 0.932s
|
||||
ok mtusi.ru/messenger-lab3/internal/config 0.870s
|
||||
ok mtusi.ru/messenger-lab3/internal/cursor 0.189s
|
||||
ok mtusi.ru/messenger-lab3/internal/model 1.068s
|
||||
? mtusi.ru/messenger-lab3/internal/session [no test files]
|
||||
ok mtusi.ru/messenger-lab3/internal/store 1.252s
|
||||
ok mtusi.ru/messenger-lab3/internal/uuid 1.419s
|
||||
/usr/bin/python3 student-tests/blackbox.py --base-url "http://127.0.0.1:8084"
|
||||
PASS health
|
||||
PASS registration/auth
|
||||
PASS registration validation
|
||||
PASS chats/membership
|
||||
PASS messages
|
||||
PASS instances (2 observed)
|
||||
PASS idempotency replay/conflict/scope/validation
|
||||
PASS concurrent idempotency across 2 replicas
|
||||
PASS pagination
|
||||
PASS concurrent registration
|
||||
PASS concurrent messages
|
||||
PASS logout
|
||||
PASS: lab3 student black-box suite, 141 checks
|
||||
/usr/bin/python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:8084"
|
||||
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
== intentional cleanup of this temporary clone's resources ==
|
||||
5
|
||||
PURGE removes containers AND named volumes mtusi-lab3-melnikov-*: all synthetic data is lost.
|
||||
./scripts/compose.sh --env-file .env down -v
|
||||
Container mtusi-lab3-melnikov-clean-api-2 Stopping
|
||||
Container mtusi-lab3-melnikov-clean-lb-1 Stopping
|
||||
Container mtusi-lab3-melnikov-clean-api-1 Stopping
|
||||
Container mtusi-lab3-melnikov-clean-lb-1 Stopped
|
||||
Container mtusi-lab3-melnikov-clean-lb-1 Removing
|
||||
Container mtusi-lab3-melnikov-clean-lb-1 Removed
|
||||
Container mtusi-lab3-melnikov-clean-api-1 Stopped
|
||||
Container mtusi-lab3-melnikov-clean-api-1 Removing
|
||||
Container mtusi-lab3-melnikov-clean-api-1 Removed
|
||||
Container mtusi-lab3-melnikov-clean-api-2 Stopped
|
||||
Container mtusi-lab3-melnikov-clean-api-2 Removing
|
||||
Container mtusi-lab3-melnikov-clean-api-2 Removed
|
||||
Container mtusi-lab3-melnikov-clean-migrate-1 Stopping
|
||||
Container mtusi-lab3-melnikov-clean-valkey-1 Stopping
|
||||
Container mtusi-lab3-melnikov-clean-migrate-1 Stopped
|
||||
Container mtusi-lab3-melnikov-clean-migrate-1 Removing
|
||||
Container mtusi-lab3-melnikov-clean-migrate-1 Removed
|
||||
Container mtusi-lab3-melnikov-clean-postgres-1 Stopping
|
||||
Container mtusi-lab3-melnikov-clean-postgres-1 Stopped
|
||||
Container mtusi-lab3-melnikov-clean-postgres-1 Removing
|
||||
Container mtusi-lab3-melnikov-clean-postgres-1 Removed
|
||||
Container mtusi-lab3-melnikov-clean-valkey-1 Stopped
|
||||
Container mtusi-lab3-melnikov-clean-valkey-1 Removing
|
||||
Container mtusi-lab3-melnikov-clean-valkey-1 Removed
|
||||
Volume mtusi-lab3-melnikov-clean-valkeydata Removing
|
||||
Volume mtusi-lab3-melnikov-clean-pgdata Removing
|
||||
Volume mtusi-lab3-melnikov-clean-valkeydata Removed
|
||||
Network mtusi-lab3-melnikov-clean-net Removing
|
||||
Volume mtusi-lab3-melnikov-clean-pgdata Removed
|
||||
Network mtusi-lab3-melnikov-clean-net Removed
|
||||
PASS: clean clone built, migrated, tested and removed; main stand untouched
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
Lab3 final verification
|
||||
=======================
|
||||
timestamp_utc: 2026-12-02T16:38:47Z
|
||||
branch: solution/bvt2301-melnikov
|
||||
head_before_final_docs_commit: 1a7f31e7e5ee25e5f34b7b851d068c5cce77ed43
|
||||
worktree_status_lines_before_this_file: 3
|
||||
image: mtusi-messenger-lab3-melnikov:local
|
||||
image_id: sha256:c999351dd1ef2d2199d0bfeb73f057d80cee077afef267e97c3de9a10ef7ed48
|
||||
api_containers:
|
||||
mtusi-lab3-melnikov-api-2 mtusi-messenger-lab3-melnikov:local Up 31 seconds (healthy)
|
||||
mtusi-lab3-melnikov-api-1 mtusi-messenger-lab3-melnikov:local Up 31 seconds (healthy)
|
||||
|
||||
Commands and results:
|
||||
make test PASS (public smoke through LB 127.0.0.1:8083)
|
||||
make test-student PASS (Go tests + 141 black-box checks)
|
||||
make failover-each PASS (2 distinct API containers stopped/restored, 0 errors)
|
||||
make test-container PASS (limits, no API host ports, no container_name, shared session)
|
||||
make test-db PASS (migrations 1,2,3; 509k messages/idempotency; 0 duplicates/orphans; Argon2id)
|
||||
make test-failure PASS (direct live 200, ready/protected/login/write 503, LB exclusion, recovery 5.4 s)
|
||||
make rolling PASS (183848 requests, 0 errors, both 1.0.0/2.0.0 versions, migrate no-op)
|
||||
scripts/track1.py PASS (24 runs; see evidence/track1/summary.json)
|
||||
scripts/clean-clone-check.sh PASS (users=0, migrations=1,2,3; public/student/persistence; purge clean)
|
||||
|
||||
Track 1 medians (fixed total API 0.8 vCPU / 512 MiB):
|
||||
1 replica: 1228.8 RPS, DB util 0.960, pool waits 0.997
|
||||
2 replicas: 1542.0 RPS, DB util 0.978, pool waits 0.900
|
||||
4 replicas: 1585.9 RPS, DB util 0.982, pool waits 0.159
|
||||
improvement (one atomic CTE vs baseline): +46.9% RPS median (paired +96.1/+48.3/+9.1%)
|
||||
|
||||
Clean clone source revision: 1a7f31e7e5ee25e5f34b7b851d068c5cce77ed43
|
||||
Main stand after clean-clone check: two api-1/api-2 local-image containers serving; same named volumes.
|
||||
Reference in New Issue
Block a user