forked from mtusi2026/mtusi2026lab5
ЛР 5: асинхронная обработка изображений, уровень 5
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
# Доказательства
|
||||
|
||||
Храните небольшие обезличенные результаты: команды и stdout проверок, JSON/CSV агрегатов нагрузки, EXPLAIN, dashboard JSON, текст разбора отказа. Укажите дату, commit, аппаратные лимиты и профиль нагрузки.
|
||||
|
||||
Не добавляйте .env, session tokens, cookies, приватные ключи, credentials, реальные сообщения, raw dumps и signed URLs. Для скриншотов скрывайте секреты. Большие логи/бинарные traces сохраняйте отдельно по правилам преподавателя; одного скриншота без методики недостаточно.
|
||||
@@ -0,0 +1,263 @@
|
||||
Image lab5-audit-api Building
|
||||
Image lab5-audit-s3-init Building
|
||||
Image lab5-audit-migrate Building
|
||||
Image lab5-audit-worker Building
|
||||
#1 [internal] load local bake definitions
|
||||
#1 reading from stdin 2.07kB done
|
||||
#1 DONE 0.0s
|
||||
|
||||
#2 [migrate internal] load build definition from Dockerfile
|
||||
#2 transferring dockerfile: 5.40kB done
|
||||
#2 DONE 0.0s
|
||||
|
||||
#3 [migrate] resolve image config for docker-image://docker.io/docker/dockerfile:1.7
|
||||
#3 DONE 1.5s
|
||||
|
||||
#4 [api] docker-image://docker.io/docker/dockerfile:1.7@sha256:a57df69d0ea827fb7266491f2813635de6f17269be881f696fbfdf2d83dda33e
|
||||
#4 CACHED
|
||||
|
||||
#5 [s3-init internal] load build definition from Dockerfile
|
||||
#5 transferring dockerfile: 5.40kB done
|
||||
#5 DONE 0.0s
|
||||
|
||||
#6 [worker internal] load build definition from Dockerfile
|
||||
#6 transferring dockerfile: 5.40kB done
|
||||
#6 DONE 0.0s
|
||||
|
||||
#7 [api internal] load build definition from Dockerfile
|
||||
#7 transferring dockerfile: 5.40kB done
|
||||
#7 DONE 0.0s
|
||||
|
||||
#8 [migrate internal] load build definition from Dockerfile
|
||||
#8 transferring dockerfile: 5.40kB done
|
||||
#8 DONE 0.0s
|
||||
|
||||
#9 [migrate internal] load metadata for docker.io/library/golang:1.26.10-alpine3.24
|
||||
#9 DONE 0.8s
|
||||
|
||||
#10 [worker internal] load metadata for docker.io/library/alpine:3.24.3
|
||||
#10 DONE 0.9s
|
||||
|
||||
#11 [s3-init internal] load .dockerignore
|
||||
#11 transferring context: 210B done
|
||||
#11 DONE 0.0s
|
||||
|
||||
#12 [api internal] load .dockerignore
|
||||
#12 transferring context: 210B done
|
||||
#12 DONE 0.0s
|
||||
|
||||
#13 [worker internal] load .dockerignore
|
||||
#13 transferring context: 210B done
|
||||
#13 DONE 0.0s
|
||||
|
||||
#14 [migrate internal] load .dockerignore
|
||||
#14 transferring context: 210B done
|
||||
#14 DONE 0.0s
|
||||
|
||||
#15 [migrate builder 1/8] FROM docker.io/library/golang:1.26.10-alpine3.24@sha256:87c65a688975c0b1d4585d204874c45ca78354670e3a5f11368c5a492303d696
|
||||
#15 DONE 0.0s
|
||||
|
||||
#16 [migrate worker 1/3] FROM docker.io/library/alpine:3.24.3@sha256:be2656061b536c1883c4034790e21d0a09c5aaaf51968b89368a3c0371ea2c9a
|
||||
#16 DONE 0.0s
|
||||
|
||||
#17 [worker internal] load build context
|
||||
#17 transferring context: 5.08kB done
|
||||
#17 DONE 0.0s
|
||||
|
||||
#18 [s3-init internal] load build context
|
||||
#18 transferring context: 5.08kB done
|
||||
#18 DONE 0.0s
|
||||
|
||||
#19 [api internal] load build context
|
||||
#19 transferring context: 206.78kB 0.0s done
|
||||
#19 DONE 0.0s
|
||||
|
||||
#20 [migrate internal] load build context
|
||||
#20 transferring context: 15.36kB done
|
||||
#20 DONE 0.0s
|
||||
|
||||
#21 [worker worker 2/3] RUN apk add --no-cache ca-certificates libwebp-tools
|
||||
#21 CACHED
|
||||
|
||||
#22 [worker builder 6/8] RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -trimpath -o /out/messenger ./cmd/messenger
|
||||
#22 CACHED
|
||||
|
||||
#23 [worker builder 8/8] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -o /out/worker ./cmd/worker
|
||||
#23 CACHED
|
||||
|
||||
#24 [worker builder 7/8] RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -trimpath -o /out/s3init ./cmd/s3init
|
||||
#24 CACHED
|
||||
|
||||
#25 [worker builder 3/8] COPY app/go.mod app/go.sum ./
|
||||
#25 CACHED
|
||||
|
||||
#26 [worker builder 5/8] COPY app/ ./
|
||||
#26 CACHED
|
||||
|
||||
#27 [worker builder 4/8] RUN go mod download
|
||||
#27 CACHED
|
||||
|
||||
#28 [worker worker 3/3] COPY --from=builder /out/worker /usr/local/bin/worker
|
||||
#28 CACHED
|
||||
|
||||
#29 [migrate migrate 2/3] COPY --from=goose-builder /go/bin/goose /usr/local/bin/goose
|
||||
#29 CACHED
|
||||
|
||||
#30 [migrate goose-builder 2/2] RUN CGO_ENABLED=0 go install -trimpath -ldflags="-s -w" -tags='no_clickhouse no_libsql no_mssql no_mysql no_sqlite3 no_vertica no_ydb' github.com/pressly/goose/v3/cmd/goose@v3.26.0
|
||||
#30 CACHED
|
||||
|
||||
#31 [migrate migrate 3/3] COPY migrations /migrations
|
||||
#31 CACHED
|
||||
|
||||
#32 [s3-init builder 8/8] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -o /out/worker ./cmd/worker
|
||||
#32 CACHED
|
||||
|
||||
#33 [s3-init builder 5/8] COPY app/ ./
|
||||
#33 CACHED
|
||||
|
||||
#34 [s3-init builder 7/8] RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -trimpath -o /out/s3init ./cmd/s3init
|
||||
#34 CACHED
|
||||
|
||||
#35 [s3-init builder 3/8] COPY app/go.mod app/go.sum ./
|
||||
#35 CACHED
|
||||
|
||||
#36 [s3-init builder 6/8] RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -trimpath -o /out/messenger ./cmd/messenger
|
||||
#36 CACHED
|
||||
|
||||
#37 [s3-init builder 4/8] RUN go mod download
|
||||
#37 CACHED
|
||||
|
||||
#38 [s3-init s3init 2/2] COPY --from=builder /out/s3init /usr/local/bin/s3init
|
||||
#38 CACHED
|
||||
|
||||
#39 [api builder 8/8] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -o /out/worker ./cmd/worker
|
||||
#39 CACHED
|
||||
|
||||
#40 [api builder 2/8] WORKDIR /src
|
||||
#40 CACHED
|
||||
|
||||
#41 [api builder 6/8] RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -trimpath -o /out/messenger ./cmd/messenger
|
||||
#41 CACHED
|
||||
|
||||
#42 [api builder 5/8] COPY app/ ./
|
||||
#42 CACHED
|
||||
|
||||
#43 [api stage-6 3/4] WORKDIR /app
|
||||
#43 CACHED
|
||||
|
||||
#44 [api builder 4/8] RUN go mod download
|
||||
#44 CACHED
|
||||
|
||||
#45 [api builder 7/8] RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -trimpath -o /out/s3init ./cmd/s3init
|
||||
#45 CACHED
|
||||
|
||||
#46 [api stage-6 2/4] RUN apk add --no-cache ca-certificates && addgroup -S app && adduser -S -G app -H app
|
||||
#46 CACHED
|
||||
|
||||
#47 [api builder 3/8] COPY app/go.mod app/go.sum ./
|
||||
#47 CACHED
|
||||
|
||||
#48 [api stage-6 4/4] COPY --from=builder /out/messenger /app/messenger
|
||||
#48 CACHED
|
||||
|
||||
#49 [worker] exporting to image
|
||||
#49 exporting layers done
|
||||
#49 writing image sha256:aed260f2cecf3ca2f1de52b91a14cc1992760730573d938a57e1a59022fc63f3 done
|
||||
#49 naming to docker.io/library/lab5-audit-worker done
|
||||
#49 DONE 0.0s
|
||||
|
||||
#50 [migrate] exporting to image
|
||||
#50 exporting layers done
|
||||
#50 writing image sha256:69dc79f5f2cb7f1c467058eaf74aa6583867eb87ab973d4b86320e219545b073 done
|
||||
#50 naming to docker.io/library/lab5-audit-migrate done
|
||||
#50 DONE 0.0s
|
||||
|
||||
#51 [s3-init] exporting to image
|
||||
#51 exporting layers done
|
||||
#51 writing image sha256:f3eb20bfdff75ffe153b5274962f38a9602bfd2e5a2a3ce3457ff7f95b886a6b done
|
||||
#51 naming to docker.io/library/lab5-audit-s3-init done
|
||||
#51 DONE 0.0s
|
||||
|
||||
#52 [api] exporting to image
|
||||
#52 exporting layers done
|
||||
#52 writing image sha256:95da3517484aabb8f82598d2c078ea2d1e1bad49511daf941fac61fc5e7e915e 0.0s done
|
||||
#52 naming to docker.io/library/lab5-audit-api done
|
||||
#52 DONE 0.0s
|
||||
|
||||
#53 [migrate] resolving provenance for metadata file
|
||||
#53 DONE 0.0s
|
||||
|
||||
#54 [worker] resolving provenance for metadata file
|
||||
#54 DONE 0.0s
|
||||
|
||||
#55 [api] resolving provenance for metadata file
|
||||
#55 DONE 0.0s
|
||||
|
||||
#56 [s3-init] resolving provenance for metadata file
|
||||
#56 DONE 0.0s
|
||||
Image lab5-audit-worker Built
|
||||
Image lab5-audit-s3-init Built
|
||||
Image lab5-audit-migrate Built
|
||||
Image lab5-audit-api Built
|
||||
Container lab5-audit-s3-1 Starting
|
||||
Container lab5-audit-postgres-1 Starting
|
||||
Container lab5-audit-valkey-1 Starting
|
||||
Container lab5-audit-broker-1 Starting
|
||||
Container lab5-audit-s3-gateway-1 Starting
|
||||
Container lab5-audit-broker-1 Started
|
||||
Container lab5-audit-s3-1 Started
|
||||
Container lab5-audit-postgres-1 Started
|
||||
Container lab5-audit-postgres-1 Waiting
|
||||
Container lab5-audit-valkey-1 Started
|
||||
Container lab5-audit-s3-gateway-1 Started
|
||||
Container lab5-audit-s3-1 Waiting
|
||||
Container lab5-audit-s3-gateway-1 Waiting
|
||||
Container lab5-audit-postgres-1 Healthy
|
||||
Container lab5-audit-migrate-1 Starting
|
||||
Container lab5-audit-s3-gateway-1 Healthy
|
||||
Container lab5-audit-migrate-1 Started
|
||||
Container lab5-audit-s3-1 Healthy
|
||||
Container lab5-audit-s3-init-1 Starting
|
||||
Container lab5-audit-s3-init-1 Started
|
||||
Container lab5-audit-s3-init-1 Waiting
|
||||
Container lab5-audit-migrate-1 Waiting
|
||||
Container lab5-audit-valkey-1 Waiting
|
||||
Container lab5-audit-migrate-1 Waiting
|
||||
Container lab5-audit-s3-init-1 Waiting
|
||||
Container lab5-audit-postgres-1 Waiting
|
||||
Container lab5-audit-s3-init-1 Exited
|
||||
Container lab5-audit-migrate-1 Exited
|
||||
Container lab5-audit-s3-init-1 Exited
|
||||
Container lab5-audit-valkey-1 Healthy
|
||||
Container lab5-audit-postgres-1 Healthy
|
||||
Container lab5-audit-api-1 Starting
|
||||
Container lab5-audit-migrate-1 Exited
|
||||
Container lab5-audit-worker-1 Starting
|
||||
Container lab5-audit-api-1 Started
|
||||
Container lab5-audit-api-2 Starting
|
||||
Container lab5-audit-worker-1 Started
|
||||
Container lab5-audit-api-2 Started
|
||||
Container lab5-audit-lb-1 Starting
|
||||
Container lab5-audit-lb-1 Started
|
||||
Container lab5-audit-lb-1 Waiting
|
||||
Container lab5-audit-api-1 Waiting
|
||||
Container lab5-audit-api-2 Waiting
|
||||
Container lab5-audit-worker-1 Waiting
|
||||
Container lab5-audit-postgres-1 Waiting
|
||||
Container lab5-audit-migrate-1 Waiting
|
||||
Container lab5-audit-s3-gateway-1 Waiting
|
||||
Container lab5-audit-s3-init-1 Waiting
|
||||
Container lab5-audit-broker-1 Waiting
|
||||
Container lab5-audit-valkey-1 Waiting
|
||||
Container lab5-audit-s3-1 Waiting
|
||||
Container lab5-audit-broker-1 Healthy
|
||||
Container lab5-audit-s3-init-1 Exited
|
||||
Container lab5-audit-migrate-1 Exited
|
||||
Container lab5-audit-valkey-1 Healthy
|
||||
Container lab5-audit-s3-gateway-1 Healthy
|
||||
Container lab5-audit-worker-1 Healthy
|
||||
Container lab5-audit-postgres-1 Healthy
|
||||
Container lab5-audit-s3-1 Healthy
|
||||
Container lab5-audit-api-1 Healthy
|
||||
Container lab5-audit-api-2 Healthy
|
||||
Container lab5-audit-lb-1 Healthy
|
||||
@@ -0,0 +1,2 @@
|
||||
python3 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"checked_at_utc": "2026-11-12T16:51:11.187813+00:00",
|
||||
"host": "Darwin arm64",
|
||||
"compose_project": "lab5-audit",
|
||||
"docker": {
|
||||
"Architecture": "aarch64",
|
||||
"NCPU": 12,
|
||||
"MemTotal": 8216776704,
|
||||
"OperatingSystem": "Docker Desktop",
|
||||
"ServerVersion": "29.2.1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
? gitflic.ru/project/relationskatie/mtusi2026lab1-ashchkl/cmd/messenger [no test files]
|
||||
? gitflic.ru/project/relationskatie/mtusi2026lab1-ashchkl/cmd/s3init [no test files]
|
||||
=== RUN TestImageContract
|
||||
--- PASS: TestImageContract (0.00s)
|
||||
=== RUN TestRetryDelayBounds
|
||||
--- PASS: TestRetryDelayBounds (0.00s)
|
||||
=== RUN TestRealVariants
|
||||
--- PASS: TestRealVariants (0.01s)
|
||||
PASS
|
||||
ok gitflic.ru/project/relationskatie/mtusi2026lab1-ashchkl/cmd/worker 0.009s
|
||||
? gitflic.ru/project/relationskatie/mtusi2026lab1-ashchkl/internal/api/http [no test files]
|
||||
? gitflic.ru/project/relationskatie/mtusi2026lab1-ashchkl/internal/api/http/dto [no test files]
|
||||
? gitflic.ru/project/relationskatie/mtusi2026lab1-ashchkl/internal/api/http/middleware [no test files]
|
||||
? gitflic.ru/project/relationskatie/mtusi2026lab1-ashchkl/internal/cache [no test files]
|
||||
? gitflic.ru/project/relationskatie/mtusi2026lab1-ashchkl/internal/config [no test files]
|
||||
? gitflic.ru/project/relationskatie/mtusi2026lab1-ashchkl/internal/domain [no test files]
|
||||
? gitflic.ru/project/relationskatie/mtusi2026lab1-ashchkl/internal/imagecheck [no test files]
|
||||
? gitflic.ru/project/relationskatie/mtusi2026lab1-ashchkl/internal/logging [no test files]
|
||||
? gitflic.ru/project/relationskatie/mtusi2026lab1-ashchkl/internal/objectstore [no test files]
|
||||
? gitflic.ru/project/relationskatie/mtusi2026lab1-ashchkl/internal/password [no test files]
|
||||
? gitflic.ru/project/relationskatie/mtusi2026lab1-ashchkl/internal/pipeline [no test files]
|
||||
? gitflic.ru/project/relationskatie/mtusi2026lab1-ashchkl/internal/service [no test files]
|
||||
? gitflic.ru/project/relationskatie/mtusi2026lab1-ashchkl/internal/session [no test files]
|
||||
? gitflic.ru/project/relationskatie/mtusi2026lab1-ashchkl/internal/store [no test files]
|
||||
? gitflic.ru/project/relationskatie/mtusi2026lab1-ashchkl/internal/store/db [no test files]
|
||||
? gitflic.ru/project/relationskatie/mtusi2026lab1-ashchkl/internal/token [no test files]
|
||||
? gitflic.ru/project/relationskatie/mtusi2026lab1-ashchkl/internal/validate [no test files]
|
||||
@@ -0,0 +1,8 @@
|
||||
{"concurrency": 1, "prefetch": 1, "dimensions": [320, 200], "bytes": 32702, "accepted": 12, "rejected_429": 4, "admission_s": 1.136, "drain_s": 1.694, "throughput_jobs_s": 7.084, "queue_lag_p95_s": 2.765, "ready_p95_s": 2.791, "peak_rss_mib": 29.39, "peak_active": 1, "final_queue": [0, 0], "recovery_probe_ready": true}
|
||||
{"concurrency": 1, "prefetch": 1, "dimensions": [2000, 1400], "bytes": 8404018, "accepted": 12, "rejected_429": 4, "admission_s": 2.05, "drain_s": 7.412, "throughput_jobs_s": 1.619, "queue_lag_p95_s": 7.776, "ready_p95_s": 8.119, "peak_rss_mib": 86.66, "peak_active": 1, "final_queue": [0, 0], "recovery_probe_ready": true}
|
||||
{"concurrency": 2, "prefetch": 2, "dimensions": [320, 200], "bytes": 32702, "accepted": 12, "rejected_429": 4, "admission_s": 0.835, "drain_s": 1.513, "throughput_jobs_s": 7.933, "queue_lag_p95_s": 2.302, "ready_p95_s": 2.33, "peak_rss_mib": 13.96, "peak_active": 0, "final_queue": [0, 0], "recovery_probe_ready": true}
|
||||
{"concurrency": 2, "prefetch": 2, "dimensions": [2000, 1400], "bytes": 8404018, "accepted": 12, "rejected_429": 4, "admission_s": 1.567, "drain_s": 5.12, "throughput_jobs_s": 2.344, "queue_lag_p95_s": 4.588, "ready_p95_s": 5.963, "peak_rss_mib": 151.33, "peak_active": 2, "final_queue": [0, 0], "recovery_probe_ready": true}
|
||||
{"concurrency": 4, "prefetch": 8, "dimensions": [320, 200], "bytes": 32702, "accepted": 12, "rejected_429": 4, "admission_s": 1.086, "drain_s": 1.451, "throughput_jobs_s": 8.27, "queue_lag_p95_s": 2.489, "ready_p95_s": 2.52, "peak_rss_mib": 81.05, "peak_active": 0, "final_queue": [0, 0], "recovery_probe_ready": true}
|
||||
{"concurrency": 4, "prefetch": 8, "dimensions": [2000, 1400], "bytes": 8404018, "accepted": 12, "rejected_429": 4, "admission_s": 1.187, "drain_s": 3.379, "throughput_jobs_s": 3.551, "queue_lag_p95_s": 3.197, "ready_p95_s": 3.802, "peak_rss_mib": 236.79, "peak_active": 8, "final_queue": [0, 0], "recovery_probe_ready": true}
|
||||
PASS: six batches drained; accepted work preserved; cap and prefetch enforced
|
||||
PASS live overload: {"offered": 32, "clients": 8, "accepted": 16, "rejected_429": 16, "max_unfinished": 12, "elapsed_s": 7.84, "all_accepted_ready": true, "recovery_probe_ready": true, "concurrency": 4, "prefetch": 8}
|
||||
@@ -0,0 +1,528 @@
|
||||
{
|
||||
"started_utc": "2026-11-12T16:52:03.496180+00:00",
|
||||
"configs": [
|
||||
[
|
||||
1,
|
||||
1
|
||||
],
|
||||
[
|
||||
2,
|
||||
2
|
||||
],
|
||||
[
|
||||
4,
|
||||
8
|
||||
]
|
||||
],
|
||||
"cap": 12,
|
||||
"offered_per_batch": 16,
|
||||
"samples_interval_s": 0.25,
|
||||
"results": [
|
||||
{
|
||||
"concurrency": 1,
|
||||
"prefetch": 1,
|
||||
"dimensions": [
|
||||
320,
|
||||
200
|
||||
],
|
||||
"bytes": 32702,
|
||||
"accepted": 12,
|
||||
"rejected_429": 4,
|
||||
"admission_s": 1.136,
|
||||
"drain_s": 1.694,
|
||||
"throughput_jobs_s": 7.084,
|
||||
"queue_lag_p95_s": 2.765,
|
||||
"ready_p95_s": 2.791,
|
||||
"peak_rss_mib": 29.39,
|
||||
"peak_active": 1,
|
||||
"final_queue": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"recovery_probe_ready": true,
|
||||
"attempts": [
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
],
|
||||
"samples": [
|
||||
{
|
||||
"t_s": 1.531,
|
||||
"rss_kib": 30092,
|
||||
"pending": 7,
|
||||
"active": 1
|
||||
},
|
||||
{
|
||||
"t_s": 2.024,
|
||||
"rss_kib": 13248,
|
||||
"pending": 0,
|
||||
"active": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"concurrency": 1,
|
||||
"prefetch": 1,
|
||||
"dimensions": [
|
||||
2000,
|
||||
1400
|
||||
],
|
||||
"bytes": 8404018,
|
||||
"accepted": 12,
|
||||
"rejected_429": 4,
|
||||
"admission_s": 2.05,
|
||||
"drain_s": 7.412,
|
||||
"throughput_jobs_s": 1.619,
|
||||
"queue_lag_p95_s": 7.776,
|
||||
"ready_p95_s": 8.119,
|
||||
"peak_rss_mib": 86.66,
|
||||
"peak_active": 1,
|
||||
"final_queue": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"recovery_probe_ready": true,
|
||||
"attempts": [
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
],
|
||||
"samples": [
|
||||
{
|
||||
"t_s": 1.599,
|
||||
"rss_kib": 59164,
|
||||
"pending": 11,
|
||||
"active": 1
|
||||
},
|
||||
{
|
||||
"t_s": 2.051,
|
||||
"rss_kib": 76372,
|
||||
"pending": 10,
|
||||
"active": 1
|
||||
},
|
||||
{
|
||||
"t_s": 2.497,
|
||||
"rss_kib": 75212,
|
||||
"pending": 8,
|
||||
"active": 1
|
||||
},
|
||||
{
|
||||
"t_s": 2.943,
|
||||
"rss_kib": 61904,
|
||||
"pending": 7,
|
||||
"active": 1
|
||||
},
|
||||
{
|
||||
"t_s": 3.43,
|
||||
"rss_kib": 88736,
|
||||
"pending": 6,
|
||||
"active": 1
|
||||
},
|
||||
{
|
||||
"t_s": 3.894,
|
||||
"rss_kib": 63688,
|
||||
"pending": 4,
|
||||
"active": 1
|
||||
},
|
||||
{
|
||||
"t_s": 4.351,
|
||||
"rss_kib": 73552,
|
||||
"pending": 3,
|
||||
"active": 1
|
||||
},
|
||||
{
|
||||
"t_s": 4.815,
|
||||
"rss_kib": 70504,
|
||||
"pending": 1,
|
||||
"active": 1
|
||||
},
|
||||
{
|
||||
"t_s": 5.308,
|
||||
"rss_kib": 66720,
|
||||
"pending": 1,
|
||||
"active": 1
|
||||
},
|
||||
{
|
||||
"t_s": 5.788,
|
||||
"rss_kib": 66784,
|
||||
"pending": 1,
|
||||
"active": 1
|
||||
},
|
||||
{
|
||||
"t_s": 6.267,
|
||||
"rss_kib": 66780,
|
||||
"pending": 1,
|
||||
"active": 1
|
||||
},
|
||||
{
|
||||
"t_s": 6.737,
|
||||
"rss_kib": 66784,
|
||||
"pending": 1,
|
||||
"active": 1
|
||||
},
|
||||
{
|
||||
"t_s": 7.231,
|
||||
"rss_kib": 66844,
|
||||
"pending": 0,
|
||||
"active": 1
|
||||
},
|
||||
{
|
||||
"t_s": 7.68,
|
||||
"rss_kib": 13236,
|
||||
"pending": 0,
|
||||
"active": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"concurrency": 2,
|
||||
"prefetch": 2,
|
||||
"dimensions": [
|
||||
320,
|
||||
200
|
||||
],
|
||||
"bytes": 32702,
|
||||
"accepted": 12,
|
||||
"rejected_429": 4,
|
||||
"admission_s": 0.835,
|
||||
"drain_s": 1.513,
|
||||
"throughput_jobs_s": 7.933,
|
||||
"queue_lag_p95_s": 2.302,
|
||||
"ready_p95_s": 2.33,
|
||||
"peak_rss_mib": 13.96,
|
||||
"peak_active": 0,
|
||||
"final_queue": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"recovery_probe_ready": true,
|
||||
"attempts": [
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
],
|
||||
"samples": [
|
||||
{
|
||||
"t_s": 1.532,
|
||||
"rss_kib": 14196,
|
||||
"pending": 3,
|
||||
"active": 0
|
||||
},
|
||||
{
|
||||
"t_s": 2.015,
|
||||
"rss_kib": 14296,
|
||||
"pending": 0,
|
||||
"active": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"concurrency": 2,
|
||||
"prefetch": 2,
|
||||
"dimensions": [
|
||||
2000,
|
||||
1400
|
||||
],
|
||||
"bytes": 8404018,
|
||||
"accepted": 12,
|
||||
"rejected_429": 4,
|
||||
"admission_s": 1.567,
|
||||
"drain_s": 5.12,
|
||||
"throughput_jobs_s": 2.344,
|
||||
"queue_lag_p95_s": 4.588,
|
||||
"ready_p95_s": 5.963,
|
||||
"peak_rss_mib": 151.33,
|
||||
"peak_active": 2,
|
||||
"final_queue": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"recovery_probe_ready": true,
|
||||
"attempts": [
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
],
|
||||
"samples": [
|
||||
{
|
||||
"t_s": 1.589,
|
||||
"rss_kib": 95660,
|
||||
"pending": 10,
|
||||
"active": 2
|
||||
},
|
||||
{
|
||||
"t_s": 2.045,
|
||||
"rss_kib": 119908,
|
||||
"pending": 10,
|
||||
"active": 2
|
||||
},
|
||||
{
|
||||
"t_s": 2.536,
|
||||
"rss_kib": 149884,
|
||||
"pending": 8,
|
||||
"active": 2
|
||||
},
|
||||
{
|
||||
"t_s": 3.355,
|
||||
"rss_kib": 154964,
|
||||
"pending": 4,
|
||||
"active": 1
|
||||
},
|
||||
{
|
||||
"t_s": 3.821,
|
||||
"rss_kib": 115940,
|
||||
"pending": 2,
|
||||
"active": 2
|
||||
},
|
||||
{
|
||||
"t_s": 4.328,
|
||||
"rss_kib": 111748,
|
||||
"pending": 0,
|
||||
"active": 2
|
||||
},
|
||||
{
|
||||
"t_s": 4.821,
|
||||
"rss_kib": 111828,
|
||||
"pending": 0,
|
||||
"active": 2
|
||||
},
|
||||
{
|
||||
"t_s": 5.293,
|
||||
"rss_kib": 13312,
|
||||
"pending": 0,
|
||||
"active": 0
|
||||
},
|
||||
{
|
||||
"t_s": 5.733,
|
||||
"rss_kib": 13312,
|
||||
"pending": 0,
|
||||
"active": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"concurrency": 4,
|
||||
"prefetch": 8,
|
||||
"dimensions": [
|
||||
320,
|
||||
200
|
||||
],
|
||||
"bytes": 32702,
|
||||
"accepted": 12,
|
||||
"rejected_429": 4,
|
||||
"admission_s": 1.086,
|
||||
"drain_s": 1.451,
|
||||
"throughput_jobs_s": 8.27,
|
||||
"queue_lag_p95_s": 2.489,
|
||||
"ready_p95_s": 2.52,
|
||||
"peak_rss_mib": 81.05,
|
||||
"peak_active": 0,
|
||||
"final_queue": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"recovery_probe_ready": true,
|
||||
"attempts": [
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
],
|
||||
"samples": [
|
||||
{
|
||||
"t_s": 1.53,
|
||||
"rss_kib": 82996,
|
||||
"pending": 0,
|
||||
"active": 0
|
||||
},
|
||||
{
|
||||
"t_s": 1.985,
|
||||
"rss_kib": 14032,
|
||||
"pending": 0,
|
||||
"active": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"concurrency": 4,
|
||||
"prefetch": 8,
|
||||
"dimensions": [
|
||||
2000,
|
||||
1400
|
||||
],
|
||||
"bytes": 8404018,
|
||||
"accepted": 12,
|
||||
"rejected_429": 4,
|
||||
"admission_s": 1.187,
|
||||
"drain_s": 3.379,
|
||||
"throughput_jobs_s": 3.551,
|
||||
"queue_lag_p95_s": 3.197,
|
||||
"ready_p95_s": 3.802,
|
||||
"peak_rss_mib": 236.79,
|
||||
"peak_active": 8,
|
||||
"final_queue": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"recovery_probe_ready": true,
|
||||
"attempts": [
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
],
|
||||
"samples": [
|
||||
{
|
||||
"t_s": 1.556,
|
||||
"rss_kib": 186528,
|
||||
"pending": 4,
|
||||
"active": 8
|
||||
},
|
||||
{
|
||||
"t_s": 2.032,
|
||||
"rss_kib": 242472,
|
||||
"pending": 4,
|
||||
"active": 8
|
||||
},
|
||||
{
|
||||
"t_s": 2.547,
|
||||
"rss_kib": 237892,
|
||||
"pending": 0,
|
||||
"active": 8
|
||||
},
|
||||
{
|
||||
"t_s": 3.052,
|
||||
"rss_kib": 204160,
|
||||
"pending": 0,
|
||||
"active": 4
|
||||
},
|
||||
{
|
||||
"t_s": 3.507,
|
||||
"rss_kib": 71240,
|
||||
"pending": 0,
|
||||
"active": 0
|
||||
},
|
||||
{
|
||||
"t_s": 3.968,
|
||||
"rss_kib": 14116,
|
||||
"pending": 0,
|
||||
"active": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"host": "Darwin arm64",
|
||||
"docker": {
|
||||
"Architecture": "aarch64",
|
||||
"NCPU": 12,
|
||||
"MemTotal": 8216776704,
|
||||
"OperatingSystem": "Docker Desktop",
|
||||
"ServerVersion": "29.2.1"
|
||||
},
|
||||
"live_overload": {
|
||||
"offered": 32,
|
||||
"clients": 8,
|
||||
"accepted": 16,
|
||||
"rejected_429": 16,
|
||||
"max_unfinished": 12,
|
||||
"unfinished_samples": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
2,
|
||||
9,
|
||||
10,
|
||||
12,
|
||||
12,
|
||||
12,
|
||||
12,
|
||||
12,
|
||||
12,
|
||||
12,
|
||||
12,
|
||||
12,
|
||||
12,
|
||||
12,
|
||||
12,
|
||||
12,
|
||||
12,
|
||||
12,
|
||||
12,
|
||||
12,
|
||||
12,
|
||||
8,
|
||||
8,
|
||||
8,
|
||||
9,
|
||||
12,
|
||||
10,
|
||||
8,
|
||||
8,
|
||||
8,
|
||||
6,
|
||||
4,
|
||||
4,
|
||||
3,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
],
|
||||
"elapsed_s": 7.84,
|
||||
"all_accepted_ready": true,
|
||||
"recovery_probe_ready": true,
|
||||
"concurrency": 4,
|
||||
"prefetch": 8
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
PASS: crash after COMMIT before publish recovered from outbox
|
||||
PASS: queued job survives broker/API restart; content blocked until ready
|
||||
PASS: FAULT_AFTER_OBJECTS, recovery, duplicate no-op, ready replay rejected
|
||||
PASS: FAULT_BEFORE_ACK, recovery, duplicate no-op, ready replay rejected
|
||||
PASS: temporary I/O failure, bounded retries, failed content 409, audited replay to ready
|
||||
PASS: lost DB session automatically restarts worker and processing resumes
|
||||
@@ -0,0 +1,2 @@
|
||||
python3 tests/smoke.py --base-url "http://localhost:28085"
|
||||
PASS: lab5 public API scenario; infrastructure and grading evidence remain separate.
|
||||
@@ -0,0 +1,21 @@
|
||||
Дата: 2026-11-12
|
||||
Среда: Darwin arm64, Docker Desktop 29.2.1, Linux aarch64.
|
||||
Compose-проект: lab5-audit. Проверена текущая рабочая копия.
|
||||
Параметры среды: environment.json. Лимиты: compose.yaml.
|
||||
Все результаты ниже получены новым полным прогоном после исправления readiness.
|
||||
|
||||
PASS make check — check.txt
|
||||
PASS docker compose up -d --build --wait — build.txt
|
||||
PASS docker run --rm lab5-audit-tests go test -count=1 -v ./... — go-tests.txt
|
||||
PASS python3 -u scripts/check-pipeline.py — pipeline-check.txt, все 6 сценариев
|
||||
PASS python3 -u scripts/overload-study.py — overload-check.txt и overload-results.json
|
||||
3 настройки × 2 размера; 72/72 принятых ready, 24 ожидаемых 429.
|
||||
Все очереди опустошены; контрольные загрузки и скачивания успешны.
|
||||
Live burst: 16 accepted, 16 rejected (429), max unfinished 12.
|
||||
Все принятые live-задачи ready, контрольная загрузка после перегрузки ready.
|
||||
PASS make test BASE_URL=http://localhost:28085 — smoke.txt, после всех сценариев
|
||||
PASS git diff --check
|
||||
|
||||
Ограничения: короткие burst, без длительного soak; один Docker-host.
|
||||
Методика, таблица и ограничения измерений: REPORT.md.
|
||||
Существующий проект mtusi-lab5 не изменялся. Тестовый проект остановлен с сохранением volumes.
|
||||
Reference in New Issue
Block a user