Document pipeline evidence and load profile (U5)
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"accepted_ready": 40,
|
||||
"concurrency": 4,
|
||||
"elapsed_seconds": 14.15,
|
||||
"failed": 0,
|
||||
"failure_types": [],
|
||||
"lab": 5,
|
||||
"per_size": 20,
|
||||
"profiles": {
|
||||
"noise_800x600": {
|
||||
"ready_ms": {
|
||||
"p50": 1585.251,
|
||||
"p95": 2256.92,
|
||||
"p99": 2571.138
|
||||
},
|
||||
"size_bytes": 1441103,
|
||||
"successful": 20,
|
||||
"upload_ms": {
|
||||
"p50": 29.097,
|
||||
"p95": 54.469,
|
||||
"p99": 57.979
|
||||
}
|
||||
},
|
||||
"small_320x200": {
|
||||
"ready_ms": {
|
||||
"p50": 1273.778,
|
||||
"p95": 1285.587,
|
||||
"p99": 1287.102
|
||||
},
|
||||
"size_bytes": 111817,
|
||||
"successful": 20,
|
||||
"upload_ms": {
|
||||
"p50": 20.276,
|
||||
"p95": 29.796,
|
||||
"p99": 30.022
|
||||
}
|
||||
}
|
||||
},
|
||||
"workload": "synthetic PNG upload and poll until ready"
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
Lab5 synthetic image run, 2026-10-02, Colima/arm64, 2 CPU / 2 GiB VM.
|
||||
Command: python3 scripts/measure-image-pipeline.py --base-url http://127.0.0.1:8085 --concurrency 4 --per-size 20 --output evidence/image-load-2026-10-02.json
|
||||
40 uploads, 20 PNG files per size profile, no failures, elapsed 14.150 s.
|
||||
Docker stats sampled with --no-stream during that run (CPU is an interval sample,
|
||||
memory is current usage; these are not CPU/RSS peaks):
|
||||
|
||||
sample 1:
|
||||
api-1 13.74% 86.09 MiB / 256 MiB
|
||||
api-2 13.98% 85.24 MiB / 256 MiB
|
||||
worker 8.38% 60.82 MiB / 768 MiB
|
||||
postgres 3.26% 70.89 MiB / 1.914 GiB
|
||||
s3 5.32% 182.10 MiB / 384 MiB
|
||||
|
||||
sample 2:
|
||||
api-1 14.78% 86.06 MiB / 256 MiB
|
||||
api-2 0.87% 85.19 MiB / 256 MiB
|
||||
worker 0.22% 48.93 MiB / 768 MiB
|
||||
postgres 0.24% 71.05 MiB / 1.914 GiB
|
||||
s3 0.36% 183.60 MiB / 384 MiB
|
||||
|
||||
The first sample was collected while load was active. The second may include
|
||||
idle time near the end of the run. No broker/publisher stats were sampled.
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"lab": 5,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 30.0,
|
||||
"elapsed_seconds": 30.012,
|
||||
"concurrency": 4,
|
||||
"successful_requests": 22419,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 747.002,
|
||||
"successful_latency_ms": {
|
||||
"p50": 4.109,
|
||||
"p95": 11.019,
|
||||
"p99": 36.533
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
@@ -33,4 +33,6 @@ Both runs returned the same anonymized raw summary (one JSON line per run):
|
||||
|
||||
For each ready version, the test found exactly the four expected variant names (`original`, `thumbnail`, `crop`, `optimized`), a matching original SHA-256, and the expected current `pipeline_version`. Replaying an already ready job returned `duplicate_or_stale`. After a second version became ready, an older delivery left its checksums and current version unchanged; version 1 rows remained available as history. The failed-job replay wrote one audit row and used a new attempt without deleting prior outbox history. The transient retry test exhausted a two-attempt budget, recorded `failed`, then succeeded only after replay reset that budget.
|
||||
|
||||
The controlled process death checks durable boundaries, not the probability of such a crash under load. The local stand has one MinIO and one PostgreSQL instance, so this result does not prove service availability during their outage or exactly-once delivery. The broker outage/confirm boundary is tested separately; this matrix checks the worker effect boundary against real S3 and PostgreSQL.
|
||||
`student-tests/test_publish_confirm_gap.py` separately stopped the normal publisher and worker, accepted a queued upload, published a persistent broker copy with confirm, intentionally left its outbox row unconfirmed, expired that claim, and ran normal `publish_batch` again. Before starting worker, RabbitMQ reported two queued copies and PostgreSQL reported confirmed outbox. After worker resumed, the attachment reached ready with one public three-variant set. This demonstrates the expected duplicate from publish-before-confirm and safe handling of it. `student-tests/test_upload_handoff.py` also passed with broker and worker down at upload time, then API/broker restart and the original accepted job reaching ready.
|
||||
|
||||
The controlled process death checks durable boundaries, not the probability of such a crash under load. The local stand has one MinIO and one PostgreSQL instance, so this result does not prove service availability during their outage or exactly-once delivery.
|
||||
|
||||
Reference in New Issue
Block a user