ЛР4: отчёт, MR и сырые доказательства проверок и экспериментов

This commit is contained in:
IvanMeln1k
2026-12-04 14:26:03 +03:00
parent f1fae32722
commit f23789d9f9
36 changed files with 4231 additions and 21 deletions
+15
View File
@@ -0,0 +1,15 @@
### attachment_checks
### command: make PYTHON=/usr/bin/python3 test-attachment
### started_at: 2026-12-04T11:20:46Z
/usr/bin/python3 student-tests/attachment-checks.py --base-url "http://127.0.0.1:8084"
PASS size and pixel limits
PASS MIME, damage and filename display
PASS filename validation
PASS attachment ACL
PASS interrupted upload leaves no row/object
PASS unavailable S3 is 503, not 500, and recovers
PASS unavailable PostgreSQL is 503, liveness stays up, data recovers
PASS no token/password/message/S3 secret in API logs
PASS: lab4 attachment checks, 39 assertions
### exit_code: 0
+22
View File
@@ -0,0 +1,22 @@
### container_checks
### command: make PYTHON=/usr/bin/python3 test-container
### started_at: 2026-12-04T11:21:34Z
/usr/bin/python3 scripts/container-checks.py --base-url "http://127.0.0.1:8084"
lab4 container checks at 2026-12-04T11:21:36.286068Z
result: PASS
git revision: f1fae32722dd89c48369ae92a303287c93490ed0
API replicas: 2 (b685ff3f08d3, c3f381c822ae)
API image ids: sha256:743995b25b1abba227d84d4e23f016e2121916cc68f4c032670eb8c24203314b
S3 image id: sha256:0513e5e469b80438fcb8961e4b7c422e782251114d4930ac17cd9fbe508ad5ba
API ports published: {'mtusi-lab4-melnikov-api-1': '', 'mtusi-lab4-melnikov-api-2': ''}
S3 ports published: ''
LB ports: 8080/tcp -> 127.0.0.1:8084
volumes: mtusi-lab4-melnikov-pgdata, mtusi-lab4-melnikov-s3data, mtusi-lab4-melnikov-valkeydata
limits: {"api":[{"name":"mtusi-lab4-melnikov-api-1","nano_cpus":500000000,"memory_bytes":402653184,"readonly_rootfs":true,"cap_drop":["ALL"],"security_opt":["no-new-privileges:true"],"user":"10001:10001","mounts":[],"volume_mounts":[]},{"name":"mtusi-lab4-melnikov-api-2","nano_cpus":500000000,"memory_bytes":402653184,"readonly_rootfs":true,"cap_drop":["ALL"],"security_opt":["no-new-privileges:true"],"user":"10001:10001","mounts":[],"volume_mounts":[]}],"postgres":[{"name":"mtusi-lab4-melnikov-postgres-1","nano_cpus":500000000,"memory_bytes":402653184,"readonly_rootfs":false,"cap_drop":null,"security_opt":["no-new-privileges:true"],"user":"","mounts":["mtusi-lab4-melnikov-pgdata"],"volume_mounts":["mtusi-lab4-melnikov-pgdata"]}],"valkey":[{"name":"mtusi-lab4-melnikov-valkey-1","nano_cpus":100000000,"memory_bytes":100663296,"readonly_rootfs":false,"cap_drop":null,"security_opt":["no-new-privileges:true"],"user":"","mounts":["mtusi-lab4-melnikov-valkeydata"],"volume_mounts":["mtusi-lab4-melnikov-valkeydata"]}],"s3":[{"name":"mtusi-lab4-melnikov-s3-1","nano_cpus":400000000,"memory_bytes":402653184,"readonly_rootfs":false,"cap_drop":null,"security_opt":["no-new-privileges:true"],"user":"","mounts":["/Users/ivanmuller/Desktop/oh_my_life/highload/lab4/infra/seaweedfs-s3.json","mtusi-lab4-melnikov-s3data"],"volume_mounts":["mtusi-lab4-melnikov-s3data"]}],"lb":[{"name":"mtusi-lab4-melnikov-lb-1","nano_cpus":200000000,"memory_bytes":67108864,"readonly_rootfs":true,"cap_drop":["ALL"],"security_opt":["no-new-privileges:true"],"user":"haproxy","mounts":["/Users/ivanmuller/Desktop/oh_my_life/highload/lab4/infra/haproxy.cfg"],"volume_mounts":[]}]}
observed session instances: b685ff3f08d3, c3f381c822ae
anonymous object GET denied: True
anonymous bucket list denied: True
bootstrap second run: exit=0 created_false=True
PASS: container, S3 privacy and credential checks
### exit_code: 0
+14
View File
@@ -0,0 +1,14 @@
started_at: 2026-12-04T11:20:34Z
base_url: http://127.0.0.1:8084
git_revision: f1fae32722dd89c48369ae92a303287c93490ed0
git_status_lines: 6
python3: Python 3.14.4
python39: Python 3.9.6
go: go version go1.25.1 darwin/arm64
docker_server: 27.4.0
docker_cpus_mem: CPUs=2 MemTotal=2054631424
api_images:
/mtusi-lab4-melnikov-api-1 image=sha256:743995b25b1abba227d84d4e23f016e2121916cc68f4c032670eb8c24203314b started=2026-12-04T11:20:31.647058664Z
/mtusi-lab4-melnikov-api-2 image=sha256:743995b25b1abba227d84d4e23f016e2121916cc68f4c032670eb8c24203314b started=2026-12-04T11:20:31.736803769Z
s3_image:
/mtusi-lab4-melnikov-s3-1 image=sha256:0513e5e469b80438fcb8961e4b7c422e782251114d4930ac17cd9fbe508ad5ba
+10
View File
@@ -0,0 +1,10 @@
### experiment
### command: make PYTHON=/usr/bin/python3 experiment
### started_at: 2026-12-04T11:24:35Z
/usr/bin/python3 scripts/upload-experiment.py --base-url "http://127.0.0.1:8084"
== restart API replicas to reset the process high-water mark ==
== generate the reproducible upload profile ==
{"result": "PASS", "observed_peak_concurrency": 12, "successful_uploads": 12, "wall_seconds": 1.025, "process_peak_sampled_rss_bytes": {"773413b3e9bd": 72986624, "9d9d4b6abf35": 27385856}, "process_final_hwm_bytes": {"773413b3e9bd": 74690560, "9d9d4b6abf35": 53465088}, "api_memory_limit_bytes": 402653184}
PASS: >=10 concurrent uploads with bounded API process RSS
### exit_code: 0
+9
View File
@@ -0,0 +1,9 @@
### failover_public
### command: make PYTHON=/usr/bin/python3 test-failover ACTION_SCRIPT=scripts/stop-one.sh
### started_at: 2026-12-04T11:23:22Z
/usr/bin/python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:8084"
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 135, "failed_attempts": 0, "first_recovery_seconds": 3.205}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
### exit_code: 0
+7
View File
@@ -0,0 +1,7 @@
### failover_upload
### command: /usr/bin/python3 scripts/failover-upload.py --base-url http://127.0.0.1:8084
### started_at: 2026-12-04T11:23:42Z
{"upload_instance": "773413b3e9bd", "download_instance": "9d9d4b6abf35", "instances_seen": ["9d9d4b6abf35"], "sha256_matches": true, "stopped_container_state": "exited", "restored_at": "2026-12-04T11:23:46.540443Z"}
PASS: upload survived replica stop and downloaded with the same SHA-256 via another replica
### exit_code: 0
+21
View File
@@ -0,0 +1,21 @@
### go_race
### command: make PYTHON=/usr/bin/python3 test-student-race
### started_at: 2026-12-04T11:20:39Z
go test -race -count=1 ./...
? mtusi.ru/messenger-lab4/cmd/loadgen [no test files]
? mtusi.ru/messenger-lab4/cmd/messenger [no test files]
? mtusi.ru/messenger-lab4/cmd/migrate [no test files]
? mtusi.ru/messenger-lab4/cmd/reconciler [no test files]
? mtusi.ru/messenger-lab4/cmd/s3bootstrap [no test files]
? mtusi.ru/messenger-lab4/cmd/s3ctl [no test files]
ok mtusi.ru/messenger-lab4/internal/api 1.203s
ok mtusi.ru/messenger-lab4/internal/auth 4.034s
ok mtusi.ru/messenger-lab4/internal/config 1.783s
ok mtusi.ru/messenger-lab4/internal/cursor 1.299s
ok mtusi.ru/messenger-lab4/internal/model 1.419s
? mtusi.ru/messenger-lab4/internal/objectstore [no test files]
? mtusi.ru/messenger-lab4/internal/session [no test files]
ok mtusi.ru/messenger-lab4/internal/store 1.660s
ok mtusi.ru/messenger-lab4/internal/uuid 1.896s
### exit_code: 0
+36
View File
@@ -0,0 +1,36 @@
### go_tests
### command: make PYTHON=/usr/bin/python3 test-student
### started_at: 2026-12-04T11:20:35Z
go test -count=1 ./...
? mtusi.ru/messenger-lab4/cmd/loadgen [no test files]
? mtusi.ru/messenger-lab4/cmd/messenger [no test files]
? mtusi.ru/messenger-lab4/cmd/migrate [no test files]
? mtusi.ru/messenger-lab4/cmd/reconciler [no test files]
? mtusi.ru/messenger-lab4/cmd/s3bootstrap [no test files]
? mtusi.ru/messenger-lab4/cmd/s3ctl [no test files]
ok mtusi.ru/messenger-lab4/internal/api 0.336s
ok mtusi.ru/messenger-lab4/internal/auth 0.388s
ok mtusi.ru/messenger-lab4/internal/config 0.849s
ok mtusi.ru/messenger-lab4/internal/cursor 0.435s
ok mtusi.ru/messenger-lab4/internal/model 0.967s
? mtusi.ru/messenger-lab4/internal/objectstore [no test files]
? mtusi.ru/messenger-lab4/internal/session [no test files]
ok mtusi.ru/messenger-lab4/internal/store 0.552s
ok mtusi.ru/messenger-lab4/internal/uuid 1.080s
/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 attachments and message links
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: lab4 student black-box suite, 149 checks
### exit_code: 0
+7
View File
@@ -0,0 +1,7 @@
### make_check
### command: make PYTHON=/usr/bin/python3 check
### started_at: 2026-12-04T11:20:35Z
/usr/bin/python3 scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
### exit_code: 0
+9
View File
@@ -0,0 +1,9 @@
### make_validate
### command: make PYTHON=.venv/bin/python validate
### started_at: 2026-12-04T11:20:35Z
.venv/bin/python scripts/validate_openapi.py
/Users/ivanmuller/Desktop/oh_my_life/highload/lab4/.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.
### exit_code: 0
@@ -0,0 +1,8 @@
### persistence_evidence
### command: /usr/bin/python3 scripts/persistence-evidence.py --base-url http://127.0.0.1:8084
### started_at: 2026-12-04T11:22:29Z
running scripts/restart.sh (all API replicas and used stores, volumes kept)
{"result": "PASS", "checks": {"same_container_ids": true, "started_at_changed": true, "all_services_restarted": true, "volumes_unchanged": true, "same_token_still_valid": true, "message_survived": true, "attachment_metadata_survived": true, "attachment_bytes_survived": true}}
PASS: real containers restarted, volumes and data preserved
### exit_code: 0
+8
View File
@@ -0,0 +1,8 @@
### persistence_public
### command: make PYTHON=/usr/bin/python3 test-persistence ACTION_SCRIPT=scripts/restart.sh
### started_at: 2026-12-04T11:21:36Z
/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.
### exit_code: 0
+7
View File
@@ -0,0 +1,7 @@
### smoke
### command: make PYTHON=/usr/bin/python3 test
### started_at: 2026-12-04T11:20:44Z
/usr/bin/python3 tests/smoke.py --base-url "http://127.0.0.1:8084"
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
### exit_code: 0
@@ -0,0 +1,7 @@
### smoke_after_experiment
### command: make PYTHON=/usr/bin/python3 test
### started_at: 2026-12-04T11:24:42Z
/usr/bin/python3 tests/smoke.py --base-url "http://127.0.0.1:8084"
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
### exit_code: 0
+23
View File
@@ -0,0 +1,23 @@
### smoke_python39
### command: ./scripts/py39-tests.sh
### started_at: 2026-12-04T11:20:44Z
Python 3.9.6
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
PASS health
PASS registration/auth
PASS registration validation
PASS chats/membership
PASS messages
PASS attachments and message links
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: lab4 student black-box suite, 149 checks
PASS: Python 3.9 compilation, public smoke and student black-box suite
### exit_code: 0
+2
View File
@@ -0,0 +1,2 @@
finished_at: 2026-12-04T11:24:43Z
15 ### exit_code: 0
+16
View File
@@ -0,0 +1,16 @@
### track2
### command: make PYTHON=/usr/bin/python3 test-consistency
### started_at: 2026-12-04T11:23:48Z
/usr/bin/python3 scripts/track2.py --base-url "http://127.0.0.1:8084"
== reproducible base set ==
== cost of a clean traversal ==
== inject faults on both sides ==
== dry run: detection without mutation ==
== apply: only provable stale items ==
== rerun before grace expiry: no new deletions ==
== grace expiry: the fresh orphan is now old enough ==
== API and used attachments after reconciliation ==
{"result": "PASS", "assertions": 68, "failed": 0, "cost_ms_median": 10}
PASS: track 2 reconciler experiment
### exit_code: 0
+176
View File
@@ -0,0 +1,176 @@
{
"no_container_name_in_compose": true,
"third_party_images_pinned_by_digest": true,
"third_party_images": [
"postgres:16.4-alpine3.20@sha256:5660c2cbfea50c7a9127d17dc4e48543eedd3d7a41a595a2dfa572471e37e64c",
"valkey/valkey:8.0.2-alpine@sha256:752ba000a58bc8925d11ee863a39b5225617cd2cb3dbc9ec8ac65268b65ebb6d",
"chrislusf/seaweedfs:3.98@sha256:2f7de737bd35c5e2cf93944e8aa66de802a135f068ea285d8d290d0206347d22",
"haproxy:3.0-alpine@sha256:457d1c0dcbf2dfc0e0358723c07df4410d30e7de42bec036b383cfede4a5dbe3"
],
"api_replica_count": 2,
"api_container_ids_distinct": true,
"api_hostnames_distinct": true,
"api_image_ids": [
"sha256:743995b25b1abba227d84d4e23f016e2121916cc68f4c032670eb8c24203314b"
],
"s3_image_id": "sha256:0513e5e469b80438fcb8961e4b7c422e782251114d4930ac17cd9fbe508ad5ba",
"git_revision": "f1fae32722dd89c48369ae92a303287c93490ed0",
"api_ports": {
"mtusi-lab4-melnikov-api-1": "",
"mtusi-lab4-melnikov-api-2": ""
},
"s3_published_ports": "",
"lb_ports": "8080/tcp -> 127.0.0.1:8084",
"api_has_no_published_ports": true,
"s3_has_no_published_ports": true,
"lb_published_loopback_only": true,
"limits": {
"api": [
{
"name": "mtusi-lab4-melnikov-api-1",
"nano_cpus": 500000000,
"memory_bytes": 402653184,
"readonly_rootfs": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"user": "10001:10001",
"mounts": [],
"volume_mounts": []
},
{
"name": "mtusi-lab4-melnikov-api-2",
"nano_cpus": 500000000,
"memory_bytes": 402653184,
"readonly_rootfs": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"user": "10001:10001",
"mounts": [],
"volume_mounts": []
}
],
"postgres": [
{
"name": "mtusi-lab4-melnikov-postgres-1",
"nano_cpus": 500000000,
"memory_bytes": 402653184,
"readonly_rootfs": false,
"cap_drop": null,
"security_opt": [
"no-new-privileges:true"
],
"user": "",
"mounts": [
"mtusi-lab4-melnikov-pgdata"
],
"volume_mounts": [
"mtusi-lab4-melnikov-pgdata"
]
}
],
"valkey": [
{
"name": "mtusi-lab4-melnikov-valkey-1",
"nano_cpus": 100000000,
"memory_bytes": 100663296,
"readonly_rootfs": false,
"cap_drop": null,
"security_opt": [
"no-new-privileges:true"
],
"user": "",
"mounts": [
"mtusi-lab4-melnikov-valkeydata"
],
"volume_mounts": [
"mtusi-lab4-melnikov-valkeydata"
]
}
],
"s3": [
{
"name": "mtusi-lab4-melnikov-s3-1",
"nano_cpus": 400000000,
"memory_bytes": 402653184,
"readonly_rootfs": false,
"cap_drop": null,
"security_opt": [
"no-new-privileges:true"
],
"user": "",
"mounts": [
"/Users/ivanmuller/Desktop/oh_my_life/highload/lab4/infra/seaweedfs-s3.json",
"mtusi-lab4-melnikov-s3data"
],
"volume_mounts": [
"mtusi-lab4-melnikov-s3data"
]
}
],
"lb": [
{
"name": "mtusi-lab4-melnikov-lb-1",
"nano_cpus": 200000000,
"memory_bytes": 67108864,
"readonly_rootfs": true,
"cap_drop": [
"ALL"
],
"security_opt": [
"no-new-privileges:true"
],
"user": "haproxy",
"mounts": [
"/Users/ivanmuller/Desktop/oh_my_life/highload/lab4/infra/haproxy.cfg"
],
"volume_mounts": []
}
]
},
"all_services_have_cpu_and_memory_limits": true,
"api_non_root": true,
"api_read_only_rootfs": true,
"api_cap_drop_all": true,
"api_no_new_privileges": true,
"api_has_no_state_volume": true,
"s3_has_data_volume": true,
"named_volumes": [
"mtusi-lab4-melnikov-pgdata",
"mtusi-lab4-melnikov-s3data",
"mtusi-lab4-melnikov-valkeydata"
],
"volumes_have_prefix": true,
"api_s3_access_key_present": true,
"api_s3_secret_present": true,
"api_credentials_differ_from_admin": true,
"api_has_no_admin_credentials": true,
"api_credentials_can_list_own_bucket": true,
"api_credentials_denied_other_bucket": true,
"bucket_bootstrap_second_run_exit": 0,
"bucket_bootstrap_second_run_created_false": true,
"bucket_bootstrap_second_run_verified": true,
"anonymous_object_get_status": " HTTP/1.1 403 Forbidden\nwget: server returned error: HTTP/1.1 403 Forbidden\n",
"anonymous_object_get_denied": true,
"anonymous_list_status": " HTTP/1.1 403 Forbidden\nwget: server returned error: HTTP/1.1 403 Forbidden\n",
"anonymous_list_denied": true,
"attachment_download_still_authorized": true,
"observed_instances": [
"b685ff3f08d3",
"c3f381c822ae"
],
"session_crosses_replicas": true,
"session_instances_are_api_hostnames": true,
"health_ready_via_lb": true,
"result": "PASS",
"failed": [],
"checked_at": "2026-12-04T11:21:36.286068Z",
"base_url": "http://127.0.0.1:8084"
}
+15
View File
@@ -0,0 +1,15 @@
lab4 container checks at 2026-12-04T11:21:36.286068Z
result: PASS
git revision: f1fae32722dd89c48369ae92a303287c93490ed0
API replicas: 2 (b685ff3f08d3, c3f381c822ae)
API image ids: sha256:743995b25b1abba227d84d4e23f016e2121916cc68f4c032670eb8c24203314b
S3 image id: sha256:0513e5e469b80438fcb8961e4b7c422e782251114d4930ac17cd9fbe508ad5ba
API ports published: {'mtusi-lab4-melnikov-api-1': '', 'mtusi-lab4-melnikov-api-2': ''}
S3 ports published: ''
LB ports: 8080/tcp -> 127.0.0.1:8084
volumes: mtusi-lab4-melnikov-pgdata, mtusi-lab4-melnikov-s3data, mtusi-lab4-melnikov-valkeydata
limits: {"api":[{"name":"mtusi-lab4-melnikov-api-1","nano_cpus":500000000,"memory_bytes":402653184,"readonly_rootfs":true,"cap_drop":["ALL"],"security_opt":["no-new-privileges:true"],"user":"10001:10001","mounts":[],"volume_mounts":[]},{"name":"mtusi-lab4-melnikov-api-2","nano_cpus":500000000,"memory_bytes":402653184,"readonly_rootfs":true,"cap_drop":["ALL"],"security_opt":["no-new-privileges:true"],"user":"10001:10001","mounts":[],"volume_mounts":[]}],"postgres":[{"name":"mtusi-lab4-melnikov-postgres-1","nano_cpus":500000000,"memory_bytes":402653184,"readonly_rootfs":false,"cap_drop":null,"security_opt":["no-new-privileges:true"],"user":"","mounts":["mtusi-lab4-melnikov-pgdata"],"volume_mounts":["mtusi-lab4-melnikov-pgdata"]}],"valkey":[{"name":"mtusi-lab4-melnikov-valkey-1","nano_cpus":100000000,"memory_bytes":100663296,"readonly_rootfs":false,"cap_drop":null,"security_opt":["no-new-privileges:true"],"user":"","mounts":["mtusi-lab4-melnikov-valkeydata"],"volume_mounts":["mtusi-lab4-melnikov-valkeydata"]}],"s3":[{"name":"mtusi-lab4-melnikov-s3-1","nano_cpus":400000000,"memory_bytes":402653184,"readonly_rootfs":false,"cap_drop":null,"security_opt":["no-new-privileges:true"],"user":"","mounts":["/Users/ivanmuller/Desktop/oh_my_life/highload/lab4/infra/seaweedfs-s3.json","mtusi-lab4-melnikov-s3data"],"volume_mounts":["mtusi-lab4-melnikov-s3data"]}],"lb":[{"name":"mtusi-lab4-melnikov-lb-1","nano_cpus":200000000,"memory_bytes":67108864,"readonly_rootfs":true,"cap_drop":["ALL"],"security_opt":["no-new-privileges:true"],"user":"haproxy","mounts":["/Users/ivanmuller/Desktop/oh_my_life/highload/lab4/infra/haproxy.cfg"],"volume_mounts":[]}]}
observed session instances: b685ff3f08d3, c3f381c822ae
anonymous object GET denied: True
anonymous bucket list denied: True
bootstrap second run: exit=0 created_false=True
+130
View File
@@ -0,0 +1,130 @@
{
"samples": [
{
"sampled_at": "2026-12-04T11:24:41.178238Z",
"monotonic_seconds": 5.247331,
"api": {
"773413b3e9bd": {
"process": {
"hwm_bytes": 72986624,
"rss_bytes": 72986624
},
"cgroup": {
"current_bytes": 102998016,
"peak_bytes": 104341504
}
},
"9d9d4b6abf35": {
"process": {
"hwm_bytes": 53465088,
"rss_bytes": 27254784
},
"cgroup": {
"current_bytes": 27058176,
"peak_bytes": 54931456
}
}
}
},
{
"sampled_at": "2026-12-04T11:24:41.741934Z",
"monotonic_seconds": 5.81094,
"api": {
"773413b3e9bd": {
"process": {
"hwm_bytes": 74690560,
"rss_bytes": 43823104
},
"cgroup": {
"current_bytes": 59879424,
"peak_bytes": 104341504
}
},
"9d9d4b6abf35": {
"process": {
"hwm_bytes": 53465088,
"rss_bytes": 27385856
},
"cgroup": {
"current_bytes": 17883136,
"peak_bytes": 54931456
}
}
}
},
{
"sampled_at": "2026-12-04T11:24:42.152697Z",
"monotonic_seconds": 6.221641,
"api": {
"773413b3e9bd": {
"process": {
"hwm_bytes": 74690560,
"rss_bytes": 19435520
},
"cgroup": {
"current_bytes": 9785344,
"peak_bytes": 104341504
}
},
"9d9d4b6abf35": {
"process": {
"hwm_bytes": 53465088,
"rss_bytes": 27385856
},
"cgroup": {
"current_bytes": 17862656,
"peak_bytes": 54931456
}
}
}
},
{
"sampled_at": "2026-12-04T11:24:42.549977Z",
"monotonic_seconds": 6.61887,
"api": {
"773413b3e9bd": {
"process": {
"hwm_bytes": 74690560,
"rss_bytes": 19435520
},
"cgroup": {
"current_bytes": 9785344,
"peak_bytes": 104341504
}
},
"9d9d4b6abf35": {
"process": {
"hwm_bytes": 53465088,
"rss_bytes": 27385856
},
"cgroup": {
"current_bytes": 17870848,
"peak_bytes": 54931456
}
}
}
}
],
"baseline": {
"773413b3e9bd": {
"process": {
"hwm_bytes": 32374784,
"rss_bytes": 32374784
},
"cgroup": {
"current_bytes": 23465984,
"peak_bytes": 25006080
}
},
"9d9d4b6abf35": {
"process": {
"hwm_bytes": 32636928,
"rss_bytes": 32636928
},
"cgroup": {
"current_bytes": 23576576,
"peak_bytes": 25034752
}
}
}
}
+352
View File
@@ -0,0 +1,352 @@
{
"experiment": "lab4 concurrent upload: peak API process RSS",
"generated_at": "2026-12-04T11:24:42.787597Z",
"git_revision": "f1fae32722dd89c48369ae92a303287c93490ed0",
"api_image_id": "sha256:743995b25b1abba227d84d4e23f016e2121916cc68f4c032670eb8c24203314b",
"base_url": "http://127.0.0.1:8084",
"started_at": "2026-12-04T11:24:41.178269Z",
"finished_at": "2026-12-04T11:24:42.203517Z",
"wall_seconds": 1.025,
"configured_concurrency": 12,
"observed_peak_concurrency": 12,
"successful_uploads": 12,
"failed_uploads": 0,
"api_instances": [
"773413b3e9bd",
"9d9d4b6abf35"
],
"uploads_per_instance": {
"9d9d4b6abf35": {
"uploads": 6,
"bytes": 15459688
},
"773413b3e9bd": {
"uploads": 6,
"bytes": 37773412
}
},
"profile": {
"files": 12,
"total_bytes": 53233100,
"min_bytes": 2101403,
"max_bytes": 10406995,
"max_pixels": 3467200,
"small": {
"count": 6,
"width": 1000,
"height": 700
},
"medium": {
"count": 4,
"width": 1500,
"height": 1100
},
"near_max_bytes": {
"count": 2,
"width": 1600,
"height": 2167
}
},
"limits": {
"api_memory_limit_bytes": 402653184,
"GOMEMLIMIT": "300MiB",
"UPLOAD_DECODE_CONCURRENCY": "1",
"S3_PUT_CONCURRENCY": "1",
"MAX_UPLOAD_BYTES": "10485760",
"MAX_IMAGE_PIXELS": "40000000"
},
"memory_metrics": {
"process_rss_source": "/proc/1/status VmRSS inside each API container, sampled by docker exec",
"process_hwm_source": "/proc/1/status VmHWM inside each API container",
"cgroup_source": "/sys/fs/cgroup/memory.current and memory.peak (whole container cgroup)",
"sample_interval_seconds": 0.2,
"samples_taken": 4,
"first_sample_at": "2026-12-04T11:24:41.178238Z",
"last_sample_at": "2026-12-04T11:24:42.549977Z",
"max_sample_gap_seconds": 0.564,
"per_instance": {
"773413b3e9bd": {
"samples": 4,
"baseline_rss_bytes": 32374784,
"baseline_hwm_bytes": 32374784,
"peak_sampled_rss_bytes": 72986624,
"peak_sampled_rss_delta_bytes": 40611840,
"final_hwm_bytes": 74690560,
"peak_cgroup_current_bytes": 102998016,
"peak_cgroup_memory_peak_bytes": 104341504,
"api_memory_limit_bytes": 402653184
},
"9d9d4b6abf35": {
"samples": 4,
"baseline_rss_bytes": 32636928,
"baseline_hwm_bytes": 32636928,
"peak_sampled_rss_bytes": 27385856,
"peak_sampled_rss_delta_bytes": -5251072,
"final_hwm_bytes": 53465088,
"peak_cgroup_current_bytes": 27058176,
"peak_cgroup_memory_peak_bytes": 54931456,
"api_memory_limit_bytes": 402653184
}
}
},
"uploads": [
{
"index": 0,
"profile": "small",
"filename": "load-00.png",
"width": 1000,
"height": 700,
"pixels": 700000,
"bytes": 2101403,
"sha256": "79cbb720f624ede46a0cfa457295be4d59a01c89d5655eee9fec1c20709a9192",
"started_at": "2026-12-04T11:24:41.218781Z",
"finished_at": "2026-12-04T11:24:41.676800Z",
"started_monotonic": 5.287859458,
"finished_monotonic": 5.7457985,
"duration_ms": 457.939,
"status": 201,
"instance_id": "9d9d4b6abf35",
"attachment_id": "052fe85e-abac-4681-9c43-e75d9e286993",
"server_sha256": "79cbb720f624ede46a0cfa457295be4d59a01c89d5655eee9fec1c20709a9192",
"server_size_bytes": 2101403,
"server_status": "ready"
},
{
"index": 1,
"profile": "small",
"filename": "load-01.png",
"width": 1000,
"height": 700,
"pixels": 700000,
"bytes": 2101403,
"sha256": "56ff9e9df4640588383f1f3697e63fc47786486287765a6ec046692e792b3248",
"started_at": "2026-12-04T11:24:41.218279Z",
"finished_at": "2026-12-04T11:24:41.398929Z",
"started_monotonic": 5.287357583,
"finished_monotonic": 5.46797425,
"duration_ms": 180.617,
"status": 201,
"instance_id": "773413b3e9bd",
"attachment_id": "6cef5605-a5fa-4574-a8ab-71841fe5fd75",
"server_sha256": "56ff9e9df4640588383f1f3697e63fc47786486287765a6ec046692e792b3248",
"server_size_bytes": 2101403,
"server_status": "ready"
},
{
"index": 2,
"profile": "small",
"filename": "load-02.png",
"width": 1000,
"height": 700,
"pixels": 700000,
"bytes": 2101403,
"sha256": "12e55905a3f9f4472750c35137b43d948a9d3e3091e7f3587b58869f4333885d",
"started_at": "2026-12-04T11:24:41.218365Z",
"finished_at": "2026-12-04T11:24:41.384989Z",
"started_monotonic": 5.287443291,
"finished_monotonic": 5.454031583,
"duration_ms": 166.588,
"status": 201,
"instance_id": "9d9d4b6abf35",
"attachment_id": "4b370029-a66b-4c89-84f3-9f064f3e9556",
"server_sha256": "12e55905a3f9f4472750c35137b43d948a9d3e3091e7f3587b58869f4333885d",
"server_size_bytes": 2101403,
"server_status": "ready"
},
{
"index": 3,
"profile": "small",
"filename": "load-03.png",
"width": 1000,
"height": 700,
"pixels": 700000,
"bytes": 2101403,
"sha256": "f2b7dbdb007111bf6370726e98deeee88ad950678c131ecb33fbf1b81309ad27",
"started_at": "2026-12-04T11:24:41.219201Z",
"finished_at": "2026-12-04T11:24:41.414935Z",
"started_monotonic": 5.28827925,
"finished_monotonic": 5.483975875,
"duration_ms": 195.697,
"status": 201,
"instance_id": "9d9d4b6abf35",
"attachment_id": "4be186a4-1fa8-4cd3-87d8-40ba9febbf04",
"server_sha256": "f2b7dbdb007111bf6370726e98deeee88ad950678c131ecb33fbf1b81309ad27",
"server_size_bytes": 2101403,
"server_status": "ready"
},
{
"index": 4,
"profile": "small",
"filename": "load-04.png",
"width": 1000,
"height": 700,
"pixels": 700000,
"bytes": 2101403,
"sha256": "b1b3c5c004f2ad33a50a772c341754be7788e3a54182767b4593c3f07b384148",
"started_at": "2026-12-04T11:24:41.218460Z",
"finished_at": "2026-12-04T11:24:41.490542Z",
"started_monotonic": 5.287537875,
"finished_monotonic": 5.559571708,
"duration_ms": 272.034,
"status": 201,
"instance_id": "9d9d4b6abf35",
"attachment_id": "4105e6c2-ac6b-4305-ba0f-124777f13dda",
"server_sha256": "b1b3c5c004f2ad33a50a772c341754be7788e3a54182767b4593c3f07b384148",
"server_size_bytes": 2101403,
"server_status": "ready"
},
{
"index": 5,
"profile": "small",
"filename": "load-05.png",
"width": 1000,
"height": 700,
"pixels": 700000,
"bytes": 2101403,
"sha256": "4d4db37b1cd3144cb7c136ef6c9e210c556e298401cb0f7c87068732bdee1d24",
"started_at": "2026-12-04T11:24:41.218701Z",
"finished_at": "2026-12-04T11:24:41.591689Z",
"started_monotonic": 5.287779416,
"finished_monotonic": 5.660702625,
"duration_ms": 372.923,
"status": 201,
"instance_id": "9d9d4b6abf35",
"attachment_id": "d87fca8a-33f5-4a9b-9f06-a2bb23cd7ea3",
"server_sha256": "4d4db37b1cd3144cb7c136ef6c9e210c556e298401cb0f7c87068732bdee1d24",
"server_size_bytes": 2101403,
"server_status": "ready"
},
{
"index": 6,
"profile": "medium",
"filename": "load-06.png",
"width": 1500,
"height": 1100,
"pixels": 1650000,
"bytes": 4952673,
"sha256": "1b36c050abe85d2a1d183943ae0c8198080810c3e320defcbb54cc3ee9892de5",
"started_at": "2026-12-04T11:24:41.218864Z",
"finished_at": "2026-12-04T11:24:41.698197Z",
"started_monotonic": 5.287942291,
"finished_monotonic": 5.767191041,
"duration_ms": 479.249,
"status": 201,
"instance_id": "773413b3e9bd",
"attachment_id": "1f7b0e63-6947-4dd2-8bc1-2bd221f3a052",
"server_sha256": "1b36c050abe85d2a1d183943ae0c8198080810c3e320defcbb54cc3ee9892de5",
"server_size_bytes": 4952673,
"server_status": "ready"
},
{
"index": 7,
"profile": "medium",
"filename": "load-07.png",
"width": 1500,
"height": 1100,
"pixels": 1650000,
"bytes": 4952673,
"sha256": "fd35bb6ecf8257aab2696d8a7ee0dece9350d3e46371661a742a0e057cdd75df",
"started_at": "2026-12-04T11:24:41.218549Z",
"finished_at": "2026-12-04T11:24:41.590681Z",
"started_monotonic": 5.287627083,
"finished_monotonic": 5.659694541,
"duration_ms": 372.067,
"status": 201,
"instance_id": "773413b3e9bd",
"attachment_id": "69f4125b-52f4-4d50-a94d-c745b58f8229",
"server_sha256": "fd35bb6ecf8257aab2696d8a7ee0dece9350d3e46371661a742a0e057cdd75df",
"server_size_bytes": 4952673,
"server_status": "ready"
},
{
"index": 8,
"profile": "medium",
"filename": "load-08.png",
"width": 1500,
"height": 1100,
"pixels": 1650000,
"bytes": 4952673,
"sha256": "fae30be4f37e121952050d82c5952de321591845750a290321edb6fe094ba57f",
"started_at": "2026-12-04T11:24:41.218611Z",
"finished_at": "2026-12-04T11:24:41.889265Z",
"started_monotonic": 5.287689416,
"finished_monotonic": 5.958228958,
"duration_ms": 670.54,
"status": 201,
"instance_id": "773413b3e9bd",
"attachment_id": "26b99241-7773-4564-b903-3a9ca7d66bb2",
"server_sha256": "fae30be4f37e121952050d82c5952de321591845750a290321edb6fe094ba57f",
"server_size_bytes": 4952673,
"server_status": "ready"
},
{
"index": 9,
"profile": "medium",
"filename": "load-09.png",
"width": 1500,
"height": 1100,
"pixels": 1650000,
"bytes": 4952673,
"sha256": "317bd264909822fb98f661324e660bcc8b2fb63fb4c4aca5d0f930799234b975",
"started_at": "2026-12-04T11:24:41.218964Z",
"finished_at": "2026-12-04T11:24:41.803889Z",
"started_monotonic": 5.288042833,
"finished_monotonic": 5.872865833,
"duration_ms": 584.823,
"status": 201,
"instance_id": "9d9d4b6abf35",
"attachment_id": "408744ba-b6c3-4300-81dc-9cda62f919c2",
"server_sha256": "317bd264909822fb98f661324e660bcc8b2fb63fb4c4aca5d0f930799234b975",
"server_size_bytes": 4952673,
"server_status": "ready"
},
{
"index": 10,
"profile": "near-max-bytes",
"filename": "load-10.png",
"width": 1600,
"height": 2167,
"pixels": 3467200,
"bytes": 10406995,
"sha256": "323d49ae0c9e62d43be080d4c521db8ad08e59975d162c730bf544e5bf1bc673",
"started_at": "2026-12-04T11:24:41.219078Z",
"finished_at": "2026-12-04T11:24:42.203122Z",
"started_monotonic": 5.2881565,
"finished_monotonic": 6.272034833,
"duration_ms": 983.878,
"status": 201,
"instance_id": "773413b3e9bd",
"attachment_id": "f0e6fe26-abf3-492a-b71d-71aeae256411",
"server_sha256": "323d49ae0c9e62d43be080d4c521db8ad08e59975d162c730bf544e5bf1bc673",
"server_size_bytes": 10406995,
"server_status": "ready"
},
{
"index": 11,
"profile": "near-max-bytes",
"filename": "load-11.png",
"width": 1600,
"height": 2167,
"pixels": 3467200,
"bytes": 10406995,
"sha256": "4996193b58d3cfa1a9be97f0326a1747022984d7ff5cc04d257dad92e7bb3c09",
"started_at": "2026-12-04T11:24:41.218131Z",
"finished_at": "2026-12-04T11:24:42.009061Z",
"started_monotonic": 5.287203958,
"finished_monotonic": 6.07800625,
"duration_ms": 790.802,
"status": 201,
"instance_id": "773413b3e9bd",
"attachment_id": "0933968d-904e-48f7-bce4-b1acb2d1387f",
"server_sha256": "4996193b58d3cfa1a9be97f0326a1747022984d7ff5cc04d257dad92e7bb3c09",
"server_size_bytes": 10406995,
"server_status": "ready"
}
],
"result": "PASS",
"limitations": [
"One local stand: RSS includes Go runtime and handler state, not a production profile.",
"The sampler uses docker exec every 200 ms; a shorter allocation spike between samples is bounded by VmHWM, which is also reported.",
"cgroup memory.current includes page cache and is not process RSS."
]
}
+254
View File
@@ -0,0 +1,254 @@
[
{
"index": 0,
"profile": "small",
"filename": "load-00.png",
"width": 1000,
"height": 700,
"pixels": 700000,
"bytes": 2101403,
"sha256": "79cbb720f624ede46a0cfa457295be4d59a01c89d5655eee9fec1c20709a9192",
"started_at": "2026-12-04T11:24:41.218781Z",
"finished_at": "2026-12-04T11:24:41.676800Z",
"started_monotonic": 5.287859458,
"finished_monotonic": 5.7457985,
"duration_ms": 457.939,
"status": 201,
"instance_id": "9d9d4b6abf35",
"attachment_id": "052fe85e-abac-4681-9c43-e75d9e286993",
"server_sha256": "79cbb720f624ede46a0cfa457295be4d59a01c89d5655eee9fec1c20709a9192",
"server_size_bytes": 2101403,
"server_status": "ready"
},
{
"index": 1,
"profile": "small",
"filename": "load-01.png",
"width": 1000,
"height": 700,
"pixels": 700000,
"bytes": 2101403,
"sha256": "56ff9e9df4640588383f1f3697e63fc47786486287765a6ec046692e792b3248",
"started_at": "2026-12-04T11:24:41.218279Z",
"finished_at": "2026-12-04T11:24:41.398929Z",
"started_monotonic": 5.287357583,
"finished_monotonic": 5.46797425,
"duration_ms": 180.617,
"status": 201,
"instance_id": "773413b3e9bd",
"attachment_id": "6cef5605-a5fa-4574-a8ab-71841fe5fd75",
"server_sha256": "56ff9e9df4640588383f1f3697e63fc47786486287765a6ec046692e792b3248",
"server_size_bytes": 2101403,
"server_status": "ready"
},
{
"index": 2,
"profile": "small",
"filename": "load-02.png",
"width": 1000,
"height": 700,
"pixels": 700000,
"bytes": 2101403,
"sha256": "12e55905a3f9f4472750c35137b43d948a9d3e3091e7f3587b58869f4333885d",
"started_at": "2026-12-04T11:24:41.218365Z",
"finished_at": "2026-12-04T11:24:41.384989Z",
"started_monotonic": 5.287443291,
"finished_monotonic": 5.454031583,
"duration_ms": 166.588,
"status": 201,
"instance_id": "9d9d4b6abf35",
"attachment_id": "4b370029-a66b-4c89-84f3-9f064f3e9556",
"server_sha256": "12e55905a3f9f4472750c35137b43d948a9d3e3091e7f3587b58869f4333885d",
"server_size_bytes": 2101403,
"server_status": "ready"
},
{
"index": 3,
"profile": "small",
"filename": "load-03.png",
"width": 1000,
"height": 700,
"pixels": 700000,
"bytes": 2101403,
"sha256": "f2b7dbdb007111bf6370726e98deeee88ad950678c131ecb33fbf1b81309ad27",
"started_at": "2026-12-04T11:24:41.219201Z",
"finished_at": "2026-12-04T11:24:41.414935Z",
"started_monotonic": 5.28827925,
"finished_monotonic": 5.483975875,
"duration_ms": 195.697,
"status": 201,
"instance_id": "9d9d4b6abf35",
"attachment_id": "4be186a4-1fa8-4cd3-87d8-40ba9febbf04",
"server_sha256": "f2b7dbdb007111bf6370726e98deeee88ad950678c131ecb33fbf1b81309ad27",
"server_size_bytes": 2101403,
"server_status": "ready"
},
{
"index": 4,
"profile": "small",
"filename": "load-04.png",
"width": 1000,
"height": 700,
"pixels": 700000,
"bytes": 2101403,
"sha256": "b1b3c5c004f2ad33a50a772c341754be7788e3a54182767b4593c3f07b384148",
"started_at": "2026-12-04T11:24:41.218460Z",
"finished_at": "2026-12-04T11:24:41.490542Z",
"started_monotonic": 5.287537875,
"finished_monotonic": 5.559571708,
"duration_ms": 272.034,
"status": 201,
"instance_id": "9d9d4b6abf35",
"attachment_id": "4105e6c2-ac6b-4305-ba0f-124777f13dda",
"server_sha256": "b1b3c5c004f2ad33a50a772c341754be7788e3a54182767b4593c3f07b384148",
"server_size_bytes": 2101403,
"server_status": "ready"
},
{
"index": 5,
"profile": "small",
"filename": "load-05.png",
"width": 1000,
"height": 700,
"pixels": 700000,
"bytes": 2101403,
"sha256": "4d4db37b1cd3144cb7c136ef6c9e210c556e298401cb0f7c87068732bdee1d24",
"started_at": "2026-12-04T11:24:41.218701Z",
"finished_at": "2026-12-04T11:24:41.591689Z",
"started_monotonic": 5.287779416,
"finished_monotonic": 5.660702625,
"duration_ms": 372.923,
"status": 201,
"instance_id": "9d9d4b6abf35",
"attachment_id": "d87fca8a-33f5-4a9b-9f06-a2bb23cd7ea3",
"server_sha256": "4d4db37b1cd3144cb7c136ef6c9e210c556e298401cb0f7c87068732bdee1d24",
"server_size_bytes": 2101403,
"server_status": "ready"
},
{
"index": 6,
"profile": "medium",
"filename": "load-06.png",
"width": 1500,
"height": 1100,
"pixels": 1650000,
"bytes": 4952673,
"sha256": "1b36c050abe85d2a1d183943ae0c8198080810c3e320defcbb54cc3ee9892de5",
"started_at": "2026-12-04T11:24:41.218864Z",
"finished_at": "2026-12-04T11:24:41.698197Z",
"started_monotonic": 5.287942291,
"finished_monotonic": 5.767191041,
"duration_ms": 479.249,
"status": 201,
"instance_id": "773413b3e9bd",
"attachment_id": "1f7b0e63-6947-4dd2-8bc1-2bd221f3a052",
"server_sha256": "1b36c050abe85d2a1d183943ae0c8198080810c3e320defcbb54cc3ee9892de5",
"server_size_bytes": 4952673,
"server_status": "ready"
},
{
"index": 7,
"profile": "medium",
"filename": "load-07.png",
"width": 1500,
"height": 1100,
"pixels": 1650000,
"bytes": 4952673,
"sha256": "fd35bb6ecf8257aab2696d8a7ee0dece9350d3e46371661a742a0e057cdd75df",
"started_at": "2026-12-04T11:24:41.218549Z",
"finished_at": "2026-12-04T11:24:41.590681Z",
"started_monotonic": 5.287627083,
"finished_monotonic": 5.659694541,
"duration_ms": 372.067,
"status": 201,
"instance_id": "773413b3e9bd",
"attachment_id": "69f4125b-52f4-4d50-a94d-c745b58f8229",
"server_sha256": "fd35bb6ecf8257aab2696d8a7ee0dece9350d3e46371661a742a0e057cdd75df",
"server_size_bytes": 4952673,
"server_status": "ready"
},
{
"index": 8,
"profile": "medium",
"filename": "load-08.png",
"width": 1500,
"height": 1100,
"pixels": 1650000,
"bytes": 4952673,
"sha256": "fae30be4f37e121952050d82c5952de321591845750a290321edb6fe094ba57f",
"started_at": "2026-12-04T11:24:41.218611Z",
"finished_at": "2026-12-04T11:24:41.889265Z",
"started_monotonic": 5.287689416,
"finished_monotonic": 5.958228958,
"duration_ms": 670.54,
"status": 201,
"instance_id": "773413b3e9bd",
"attachment_id": "26b99241-7773-4564-b903-3a9ca7d66bb2",
"server_sha256": "fae30be4f37e121952050d82c5952de321591845750a290321edb6fe094ba57f",
"server_size_bytes": 4952673,
"server_status": "ready"
},
{
"index": 9,
"profile": "medium",
"filename": "load-09.png",
"width": 1500,
"height": 1100,
"pixels": 1650000,
"bytes": 4952673,
"sha256": "317bd264909822fb98f661324e660bcc8b2fb63fb4c4aca5d0f930799234b975",
"started_at": "2026-12-04T11:24:41.218964Z",
"finished_at": "2026-12-04T11:24:41.803889Z",
"started_monotonic": 5.288042833,
"finished_monotonic": 5.872865833,
"duration_ms": 584.823,
"status": 201,
"instance_id": "9d9d4b6abf35",
"attachment_id": "408744ba-b6c3-4300-81dc-9cda62f919c2",
"server_sha256": "317bd264909822fb98f661324e660bcc8b2fb63fb4c4aca5d0f930799234b975",
"server_size_bytes": 4952673,
"server_status": "ready"
},
{
"index": 10,
"profile": "near-max-bytes",
"filename": "load-10.png",
"width": 1600,
"height": 2167,
"pixels": 3467200,
"bytes": 10406995,
"sha256": "323d49ae0c9e62d43be080d4c521db8ad08e59975d162c730bf544e5bf1bc673",
"started_at": "2026-12-04T11:24:41.219078Z",
"finished_at": "2026-12-04T11:24:42.203122Z",
"started_monotonic": 5.2881565,
"finished_monotonic": 6.272034833,
"duration_ms": 983.878,
"status": 201,
"instance_id": "773413b3e9bd",
"attachment_id": "f0e6fe26-abf3-492a-b71d-71aeae256411",
"server_sha256": "323d49ae0c9e62d43be080d4c521db8ad08e59975d162c730bf544e5bf1bc673",
"server_size_bytes": 10406995,
"server_status": "ready"
},
{
"index": 11,
"profile": "near-max-bytes",
"filename": "load-11.png",
"width": 1600,
"height": 2167,
"pixels": 3467200,
"bytes": 10406995,
"sha256": "4996193b58d3cfa1a9be97f0326a1747022984d7ff5cc04d257dad92e7bb3c09",
"started_at": "2026-12-04T11:24:41.218131Z",
"finished_at": "2026-12-04T11:24:42.009061Z",
"started_monotonic": 5.287203958,
"finished_monotonic": 6.07800625,
"duration_ms": 790.802,
"status": 201,
"instance_id": "773413b3e9bd",
"attachment_id": "0933968d-904e-48f7-bce4-b1acb2d1387f",
"server_sha256": "4996193b58d3cfa1a9be97f0326a1747022984d7ff5cc04d257dad92e7bb3c09",
"server_size_bytes": 10406995,
"server_status": "ready"
}
]
+34
View File
@@ -0,0 +1,34 @@
{
"checked_at": "2026-12-04T11:23:48.714024Z",
"base_url": "http://127.0.0.1:8084",
"git_revision": "f1fae32722dd89c48369ae92a303287c93490ed0",
"attachment_id": "46e0f0c9-bd93-41ec-a217-cbcf7f115aa0",
"content_bytes": 4202343,
"sha256": "0011ea7e58f4f61aa50c4e0e9ab3336b9b6e8cea425367d3169e17dc54840cbb",
"instances_before": [
"773413b3e9bd",
"9d9d4b6abf35"
],
"upload_instance": "773413b3e9bd",
"stopped_container_id": "773413b3e9bda455a04ddda5d73d748ae77b369e130d39fd25dcac77519dbfb1",
"stopped_container_state": "exited",
"stop_started_at": "2026-12-04T11:23:43.139122Z",
"stop_finished_at": "2026-12-04T11:23:46.313905Z",
"download_instance": "9d9d4b6abf35",
"download_instances_seen": [
"9d9d4b6abf35"
],
"download_sha256": "0011ea7e58f4f61aa50c4e0e9ab3336b9b6e8cea425367d3169e17dc54840cbb",
"restored_at": "2026-12-04T11:23:46.540443Z",
"restored_instances": [
"773413b3e9bd",
"9d9d4b6abf35"
],
"result": "PASS",
"notes": [
"The upload response X-Instance-Id was mapped to the exact Docker hostname.",
"scripts/stop-one.sh left that container exited; the hook is not a restart helper.",
"The download was served by the remaining replica and matched the original bytes.",
"The stopped replica was restored explicitly with docker compose up -d api; Compose may recreate it with a new hostname."
]
}
+156
View File
@@ -0,0 +1,156 @@
{
"checked_at": "2026-12-04T11:23:22.576169Z",
"base_url": "http://127.0.0.1:8084",
"git_revision": "f1fae32722dd89c48369ae92a303287c93490ed0",
"restart_started_at": "2026-12-04T11:22:29.711458Z",
"restart_finished_at": "2026-12-04T11:23:22.259174Z",
"hook_exit_code": 0,
"hook_stdout": "restart.sh: restarting shared postgres, valkey and the private S3 store (volumes kept)\nrestart.sh: restarting every api replica\nrestart.sh: all lab4 services restarted; volumes preserved\n",
"hook_stderr": " Container mtusi-lab4-melnikov-postgres-1 Restarting\n Container mtusi-lab4-melnikov-s3-1 Restarting\n Container mtusi-lab4-melnikov-valkey-1 Restarting\n Container mtusi-lab4-melnikov-postgres-1 Started\n Container mtusi-lab4-melnikov-valkey-1 Started\n Container mtusi-lab4-melnikov-s3-1 Started\n Container mtusi-lab4-melnikov-api-2 Restarting\n Container mtusi-lab4-melnikov-api-1 Restarting\n Container mtusi-lab4-melnikov-api-2 Started\n Container mtusi-lab4-melnikov-api-1 Started\n",
"before": {
"services": {
"api": [
{
"container_id": "b685ff3f08d37c48282802904536837b4fe358ac9562821770a98d2497303bcd",
"name": "mtusi-lab4-melnikov-api-1",
"started_at": "2026-12-04T11:22:23.829108634Z",
"restart_count": 0,
"image_id": "sha256:743995b25b1abba227d84d4e23f016e2121916cc68f4c032670eb8c24203314b",
"volumes": []
},
{
"container_id": "c3f381c822ae089421ccac93c9fac10b5f218a8c5eb4949532fe780e0842e8dd",
"name": "mtusi-lab4-melnikov-api-2",
"started_at": "2026-12-04T11:22:23.831874972Z",
"restart_count": 0,
"image_id": "sha256:743995b25b1abba227d84d4e23f016e2121916cc68f4c032670eb8c24203314b",
"volumes": []
}
],
"postgres": [
{
"container_id": "a3939bc1f6ad0ee78632150f5f2e16ba99d5d11f127572bd526fd4985c443be1",
"name": "mtusi-lab4-melnikov-postgres-1",
"started_at": "2026-12-04T11:21:36.85493319Z",
"restart_count": 0,
"image_id": "sha256:a710cb729803496a1c36335b6b519899fc3b0f332bbe16387a4d35c3e69cb5b1",
"volumes": [
"mtusi-lab4-melnikov-pgdata"
]
}
],
"valkey": [
{
"container_id": "4a2f4622099bddaa0d188776d5a9d91f2a023e6356845ade3fbc648136706c4d",
"name": "mtusi-lab4-melnikov-valkey-1",
"started_at": "2026-12-04T11:21:36.870281681Z",
"restart_count": 0,
"image_id": "sha256:7b2072cf1b86d58fee110f4da8dc3b0e1444b22ab64f58d7f61e822e0761f866",
"volumes": [
"mtusi-lab4-melnikov-valkeydata"
]
}
],
"s3": [
{
"container_id": "b537f3a0a53d3907d17fc270b91945abf757ab775f93903d7e8a9bf04a0c242b",
"name": "mtusi-lab4-melnikov-s3-1",
"started_at": "2026-12-04T11:21:56.878121123Z",
"restart_count": 0,
"image_id": "sha256:0513e5e469b80438fcb8961e4b7c422e782251114d4930ac17cd9fbe508ad5ba",
"volumes": [
"mtusi-lab4-melnikov-s3data"
]
}
]
},
"volumes": [
"mtusi-lab4-melnikov-pgdata",
"mtusi-lab4-melnikov-s3data",
"mtusi-lab4-melnikov-valkeydata"
],
"captured_at": "2026-12-04T11:22:29.361907Z"
},
"after": {
"services": {
"api": [
{
"container_id": "b685ff3f08d37c48282802904536837b4fe358ac9562821770a98d2497303bcd",
"name": "mtusi-lab4-melnikov-api-1",
"started_at": "2026-12-04T11:23:16.99926431Z",
"restart_count": 0,
"image_id": "sha256:743995b25b1abba227d84d4e23f016e2121916cc68f4c032670eb8c24203314b",
"volumes": []
},
{
"container_id": "c3f381c822ae089421ccac93c9fac10b5f218a8c5eb4949532fe780e0842e8dd",
"name": "mtusi-lab4-melnikov-api-2",
"started_at": "2026-12-04T11:23:16.998474465Z",
"restart_count": 0,
"image_id": "sha256:743995b25b1abba227d84d4e23f016e2121916cc68f4c032670eb8c24203314b",
"volumes": []
}
],
"postgres": [
{
"container_id": "a3939bc1f6ad0ee78632150f5f2e16ba99d5d11f127572bd526fd4985c443be1",
"name": "mtusi-lab4-melnikov-postgres-1",
"started_at": "2026-12-04T11:22:30.01949821Z",
"restart_count": 0,
"image_id": "sha256:a710cb729803496a1c36335b6b519899fc3b0f332bbe16387a4d35c3e69cb5b1",
"volumes": [
"mtusi-lab4-melnikov-pgdata"
]
}
],
"valkey": [
{
"container_id": "4a2f4622099bddaa0d188776d5a9d91f2a023e6356845ade3fbc648136706c4d",
"name": "mtusi-lab4-melnikov-valkey-1",
"started_at": "2026-12-04T11:22:30.084928887Z",
"restart_count": 0,
"image_id": "sha256:7b2072cf1b86d58fee110f4da8dc3b0e1444b22ab64f58d7f61e822e0761f866",
"volumes": [
"mtusi-lab4-melnikov-valkeydata"
]
}
],
"s3": [
{
"container_id": "b537f3a0a53d3907d17fc270b91945abf757ab775f93903d7e8a9bf04a0c242b",
"name": "mtusi-lab4-melnikov-s3-1",
"started_at": "2026-12-04T11:22:50.037859104Z",
"restart_count": 0,
"image_id": "sha256:0513e5e469b80438fcb8961e4b7c422e782251114d4930ac17cd9fbe508ad5ba",
"volumes": [
"mtusi-lab4-melnikov-s3data"
]
}
]
},
"volumes": [
"mtusi-lab4-melnikov-pgdata",
"mtusi-lab4-melnikov-s3data",
"mtusi-lab4-melnikov-valkeydata"
],
"captured_at": "2026-12-04T11:23:22.262699Z"
},
"checks": {
"same_container_ids": true,
"started_at_changed": true,
"all_services_restarted": true,
"volumes_unchanged": true,
"same_token_still_valid": true,
"message_survived": true,
"attachment_metadata_survived": true,
"attachment_bytes_survived": true
},
"result": "PASS",
"failed": [],
"notes": [
"Container ids are unchanged: compose restarted real containers, it did not recreate them.",
"StartedAt changed for every API/PostgreSQL/Valkey/S3 container.",
"Named volumes were preserved; no volume was removed or re-created.",
"The public make test-persistence additionally checks the contract with the old token."
]
}
File diff suppressed because it is too large Load Diff
+65
View File
@@ -0,0 +1,65 @@
{
"generated_at": "2026-12-04T11:24:35.676430169Z",
"mode": "apply",
"bucket": "messenger-attachments",
"prefix": "attachments/",
"grace_seconds": 20,
"database": {
"rows": 328,
"ready": 328,
"pending": 0
},
"object_store": {
"objects": 327
},
"findings": {
"ok": 326,
"orphan_objects": [
{
"object_key": "attachments/orphan-fresh-883a12df6d1149159ff41dbad71a379b",
"age_seconds": 22
}
],
"protected_recent_objects": null,
"missing_objects": [
{
"id": "81598453-133b-4f7d-9119-7704874613d4",
"object_key": "attachments/81598453-133b-4f7d-9119-7704874613d4",
"status": "ready",
"age_seconds": 45
},
{
"id": "f3061162-21c7-4b31-8fd9-4e14bae915aa",
"object_key": "attachments/f3061162-21c7-4b31-8fd9-4e14bae915aa",
"status": "ready",
"age_seconds": 46
}
],
"stale_pending": null,
"protected_pending": null
},
"actions": {
"deleted_objects": [
"attachments/orphan-fresh-883a12df6d1149159ff41dbad71a379b"
],
"deleted_pending_rows": null,
"skipped": null,
"unresolved_missing": [
"81598453-133b-4f7d-9119-7704874613d4",
"f3061162-21c7-4b31-8fd9-4e14bae915aa"
],
"errors": null
},
"timing": {
"db_scan_ms": 4,
"s3_list_ms": 6,
"total_ms": 11,
"db_rows": 328,
"s3_objects": 327
},
"_invocation": {
"command": "/Users/ivanmuller/Desktop/oh_my_life/highload/lab4/scripts/compose.sh --env-file .env run --rm --no-deps -T --entrypoint /app/reconciler api -prefix attachments/ -grace 20s -apply",
"started_at": "2026-12-04T11:24:35.480419Z",
"finished_at": "2026-12-04T11:24:35.697544Z"
}
}
+96
View File
@@ -0,0 +1,96 @@
{
"generated_at": "2026-12-04T11:24:15.098478955Z",
"mode": "apply",
"bucket": "messenger-attachments",
"prefix": "attachments/",
"grace_seconds": 20,
"database": {
"rows": 330,
"ready": 327,
"pending": 3
},
"object_store": {
"objects": 329
},
"findings": {
"ok": 325,
"orphan_objects": [
{
"object_key": "attachments/orphan-stale-fcbe6b1db6e2499b856297fdfad8ab63",
"age_seconds": 23
}
],
"protected_recent_objects": [
{
"object_key": "attachments/orphan-fresh-883a12df6d1149159ff41dbad71a379b",
"age_seconds": 2
}
],
"missing_objects": [
{
"id": "81598453-133b-4f7d-9119-7704874613d4",
"object_key": "attachments/81598453-133b-4f7d-9119-7704874613d4",
"status": "ready",
"age_seconds": 25
},
{
"id": "f3061162-21c7-4b31-8fd9-4e14bae915aa",
"object_key": "attachments/f3061162-21c7-4b31-8fd9-4e14bae915aa",
"status": "ready",
"age_seconds": 25
}
],
"stale_pending": [
{
"id": "58898af9-b2b0-4d4d-9b90-181560fce9f4",
"object_key": "attachments/58898af9-b2b0-4d4d-9b90-181560fce9f4",
"status": "pending",
"age_seconds": 82,
"object_present": true
},
{
"id": "d4b7a45c-57a5-4de6-9255-647fee5bb7f5",
"object_key": "attachments/d4b7a45c-57a5-4de6-9255-647fee5bb7f5",
"status": "pending",
"age_seconds": 82
}
],
"protected_pending": [
{
"id": "912aa2d3-f0c3-4f8d-b1a9-ad4d008411a8",
"object_key": "attachments/912aa2d3-f0c3-4f8d-b1a9-ad4d008411a8",
"status": "pending",
"age_seconds": 1,
"object_present": true
}
]
},
"actions": {
"deleted_objects": [
"attachments/orphan-stale-fcbe6b1db6e2499b856297fdfad8ab63",
"attachments/58898af9-b2b0-4d4d-9b90-181560fce9f4"
],
"deleted_pending_rows": [
"58898af9-b2b0-4d4d-9b90-181560fce9f4",
"d4b7a45c-57a5-4de6-9255-647fee5bb7f5"
],
"skipped": null,
"unresolved_missing": [
"81598453-133b-4f7d-9119-7704874613d4",
"f3061162-21c7-4b31-8fd9-4e14bae915aa"
],
"errors": null
},
"timing": {
"db_scan_ms": 4,
"s3_list_ms": 5,
"total_ms": 12,
"db_rows": 330,
"s3_objects": 329
},
"_invocation": {
"command": "/Users/ivanmuller/Desktop/oh_my_life/highload/lab4/scripts/compose.sh --env-file .env run --rm --no-deps -T --entrypoint /app/reconciler api -prefix attachments/ -grace 20s -apply",
"started_at": "2026-12-04T11:24:14.919301Z",
"finished_at": "2026-12-04T11:24:15.121475Z"
}
}
+42
View File
@@ -0,0 +1,42 @@
{
"generated_at": "2026-12-04T11:23:51.245733676Z",
"mode": "apply",
"bucket": "messenger-attachments",
"prefix": "attachments/",
"grace_seconds": 20,
"database": {
"rows": 321,
"ready": 321,
"pending": 0
},
"object_store": {
"objects": 321
},
"findings": {
"ok": 321,
"orphan_objects": null,
"protected_recent_objects": null,
"missing_objects": null,
"stale_pending": null,
"protected_pending": null
},
"actions": {
"deleted_objects": null,
"deleted_pending_rows": null,
"skipped": null,
"unresolved_missing": null,
"errors": null
},
"timing": {
"db_scan_ms": 3,
"s3_list_ms": 6,
"total_ms": 10,
"db_rows": 321,
"s3_objects": 321
},
"_invocation": {
"command": "/Users/ivanmuller/Desktop/oh_my_life/highload/lab4/scripts/compose.sh --env-file .env run --rm --no-deps -T --entrypoint /app/reconciler api -prefix attachments/ -grace 20s -apply",
"started_at": "2026-12-04T11:23:51.035527Z",
"finished_at": "2026-12-04T11:23:51.230239Z"
}
}
+42
View File
@@ -0,0 +1,42 @@
{
"generated_at": "2026-12-04T11:23:51.428797769Z",
"mode": "dry-run",
"bucket": "messenger-attachments",
"prefix": "attachments/",
"grace_seconds": 3600,
"database": {
"rows": 321,
"ready": 321,
"pending": 0
},
"object_store": {
"objects": 321
},
"findings": {
"ok": 321,
"orphan_objects": null,
"protected_recent_objects": null,
"missing_objects": null,
"stale_pending": null,
"protected_pending": null
},
"actions": {
"deleted_objects": null,
"deleted_pending_rows": null,
"skipped": null,
"unresolved_missing": null,
"errors": null
},
"timing": {
"db_scan_ms": 4,
"s3_list_ms": 6,
"total_ms": 11,
"db_rows": 321,
"s3_objects": 321
},
"_invocation": {
"command": "/Users/ivanmuller/Desktop/oh_my_life/highload/lab4/scripts/compose.sh --env-file .env run --rm --no-deps -T --entrypoint /app/reconciler api -prefix attachments/ -grace 3600s",
"started_at": "2026-12-04T11:23:51.230684Z",
"finished_at": "2026-12-04T11:23:51.423909Z"
}
}
+42
View File
@@ -0,0 +1,42 @@
{
"generated_at": "2026-12-04T11:23:51.632662912Z",
"mode": "dry-run",
"bucket": "messenger-attachments",
"prefix": "attachments/",
"grace_seconds": 3600,
"database": {
"rows": 321,
"ready": 321,
"pending": 0
},
"object_store": {
"objects": 321
},
"findings": {
"ok": 321,
"orphan_objects": null,
"protected_recent_objects": null,
"missing_objects": null,
"stale_pending": null,
"protected_pending": null
},
"actions": {
"deleted_objects": null,
"deleted_pending_rows": null,
"skipped": null,
"unresolved_missing": null,
"errors": null
},
"timing": {
"db_scan_ms": 3,
"s3_list_ms": 6,
"total_ms": 10,
"db_rows": 321,
"s3_objects": 321
},
"_invocation": {
"command": "/Users/ivanmuller/Desktop/oh_my_life/highload/lab4/scripts/compose.sh --env-file .env run --rm --no-deps -T --entrypoint /app/reconciler api -prefix attachments/ -grace 3600s",
"started_at": "2026-12-04T11:23:51.424365Z",
"finished_at": "2026-12-04T11:23:51.620127Z"
}
}
+42
View File
@@ -0,0 +1,42 @@
{
"generated_at": "2026-12-04T11:23:51.829841874Z",
"mode": "dry-run",
"bucket": "messenger-attachments",
"prefix": "attachments/",
"grace_seconds": 3600,
"database": {
"rows": 321,
"ready": 321,
"pending": 0
},
"object_store": {
"objects": 321
},
"findings": {
"ok": 321,
"orphan_objects": null,
"protected_recent_objects": null,
"missing_objects": null,
"stale_pending": null,
"protected_pending": null
},
"actions": {
"deleted_objects": null,
"deleted_pending_rows": null,
"skipped": null,
"unresolved_missing": null,
"errors": null
},
"timing": {
"db_scan_ms": 4,
"s3_list_ms": 5,
"total_ms": 10,
"db_rows": 321,
"s3_objects": 321
},
"_invocation": {
"command": "/Users/ivanmuller/Desktop/oh_my_life/highload/lab4/scripts/compose.sh --env-file .env run --rm --no-deps -T --entrypoint /app/reconciler api -prefix attachments/ -grace 3600s",
"started_at": "2026-12-04T11:23:51.620875Z",
"finished_at": "2026-12-04T11:23:51.815816Z"
}
}
+95
View File
@@ -0,0 +1,95 @@
{
"generated_at": "2026-12-04T11:24:14.412126069Z",
"mode": "dry-run",
"bucket": "messenger-attachments",
"prefix": "attachments/",
"grace_seconds": 20,
"database": {
"rows": 324,
"ready": 321,
"pending": 3
},
"object_store": {
"objects": 323
},
"findings": {
"ok": 319,
"orphan_objects": [
{
"object_key": "attachments/orphan-stale-fcbe6b1db6e2499b856297fdfad8ab63",
"age_seconds": 22
}
],
"protected_recent_objects": [
{
"object_key": "attachments/orphan-fresh-883a12df6d1149159ff41dbad71a379b",
"age_seconds": 1
}
],
"missing_objects": [
{
"id": "81598453-133b-4f7d-9119-7704874613d4",
"object_key": "attachments/81598453-133b-4f7d-9119-7704874613d4",
"status": "ready",
"age_seconds": 24
},
{
"id": "f3061162-21c7-4b31-8fd9-4e14bae915aa",
"object_key": "attachments/f3061162-21c7-4b31-8fd9-4e14bae915aa",
"status": "ready",
"age_seconds": 25
}
],
"stale_pending": [
{
"id": "58898af9-b2b0-4d4d-9b90-181560fce9f4",
"object_key": "attachments/58898af9-b2b0-4d4d-9b90-181560fce9f4",
"status": "pending",
"age_seconds": 82,
"object_present": true
},
{
"id": "d4b7a45c-57a5-4de6-9255-647fee5bb7f5",
"object_key": "attachments/d4b7a45c-57a5-4de6-9255-647fee5bb7f5",
"status": "pending",
"age_seconds": 82
}
],
"protected_pending": [
{
"id": "912aa2d3-f0c3-4f8d-b1a9-ad4d008411a8",
"object_key": "attachments/912aa2d3-f0c3-4f8d-b1a9-ad4d008411a8",
"status": "pending",
"age_seconds": 0,
"object_present": true
}
]
},
"actions": {
"planned_deletes": [
"attachments/orphan-stale-fcbe6b1db6e2499b856297fdfad8ab63",
"attachments/58898af9-b2b0-4d4d-9b90-181560fce9f4",
"attachments/d4b7a45c-57a5-4de6-9255-647fee5bb7f5"
],
"deleted_objects": null,
"deleted_pending_rows": null,
"skipped": null,
"unresolved_missing": [
"81598453-133b-4f7d-9119-7704874613d4",
"f3061162-21c7-4b31-8fd9-4e14bae915aa"
],
"errors": null
},
"timing": {
"db_scan_ms": 3,
"s3_list_ms": 6,
"total_ms": 10,
"db_rows": 324,
"s3_objects": 323
},
"_invocation": {
"command": "/Users/ivanmuller/Desktop/oh_my_life/highload/lab4/scripts/compose.sh --env-file .env run --rm --no-deps -T --entrypoint /app/reconciler api -prefix attachments/ -grace 20s",
"started_at": "2026-12-04T11:24:14.223154Z",
"finished_at": "2026-12-04T11:24:14.429771Z"
}
}
+63
View File
@@ -0,0 +1,63 @@
{
"generated_at": "2026-12-04T11:24:16.1372083Z",
"mode": "apply",
"bucket": "messenger-attachments",
"prefix": "attachments/",
"grace_seconds": 20,
"database": {
"rows": 328,
"ready": 328,
"pending": 0
},
"object_store": {
"objects": 327
},
"findings": {
"ok": 326,
"orphan_objects": null,
"protected_recent_objects": [
{
"object_key": "attachments/orphan-fresh-883a12df6d1149159ff41dbad71a379b",
"age_seconds": 3
}
],
"missing_objects": [
{
"id": "81598453-133b-4f7d-9119-7704874613d4",
"object_key": "attachments/81598453-133b-4f7d-9119-7704874613d4",
"status": "ready",
"age_seconds": 26
},
{
"id": "f3061162-21c7-4b31-8fd9-4e14bae915aa",
"object_key": "attachments/f3061162-21c7-4b31-8fd9-4e14bae915aa",
"status": "ready",
"age_seconds": 26
}
],
"stale_pending": null,
"protected_pending": null
},
"actions": {
"deleted_objects": null,
"deleted_pending_rows": null,
"skipped": null,
"unresolved_missing": [
"81598453-133b-4f7d-9119-7704874613d4",
"f3061162-21c7-4b31-8fd9-4e14bae915aa"
],
"errors": null
},
"timing": {
"db_scan_ms": 3,
"s3_list_ms": 7,
"total_ms": 11,
"db_rows": 328,
"s3_objects": 327
},
"_invocation": {
"command": "/Users/ivanmuller/Desktop/oh_my_life/highload/lab4/scripts/compose.sh --env-file .env run --rm --no-deps -T --entrypoint /app/reconciler api -prefix attachments/ -grace 20s -apply",
"started_at": "2026-12-04T11:24:15.952591Z",
"finished_at": "2026-12-04T11:24:16.144853Z"
}
}
+406
View File
@@ -0,0 +1,406 @@
{
"track": "Track 2: consistency of two stores",
"hypothesis": "A grace-protected, re-checked reconciler removes only stale orphan objects and stale upload intents, and never deletes ready/used/fresh attachments or invents missing bytes.",
"generated_at": "2026-12-04T11:24:35.880770Z",
"git_revision": "f1fae32722dd89c48369ae92a303287c93490ed0",
"api_image_id": "sha256:743995b25b1abba227d84d4e23f016e2121916cc68f4c032670eb8c24203314b",
"database_rows_base": 300,
"object_store_objects_base": 300,
"message_attachment_links_base": 160,
"base_profile": {
"attachments": 300,
"linked_attachments": 150,
"unlinked_ready_attachments": 150,
"bytes_per_attachment": 111817,
"total_attachment_bytes": 33545100,
"image_profile": "tests/fixtures/sample.png 320x200, identical synthetic bytes"
},
"grace_seconds": 20,
"cost_runs": [
{
"run": 1,
"generated_at": "2026-12-04T11:23:51.428797769Z",
"db_scan_ms": 4,
"s3_list_ms": 6,
"total_ms": 11,
"db_rows": 321,
"s3_objects": 321
},
{
"run": 2,
"generated_at": "2026-12-04T11:23:51.632662912Z",
"db_scan_ms": 3,
"s3_list_ms": 6,
"total_ms": 10,
"db_rows": 321,
"s3_objects": 321
},
{
"run": 3,
"generated_at": "2026-12-04T11:23:51.829841874Z",
"db_scan_ms": 4,
"s3_list_ms": 5,
"total_ms": 10,
"db_rows": 321,
"s3_objects": 321
}
],
"cost_summary": {
"runs": 3,
"db_scan_ms_median": 4,
"s3_list_ms_median": 6,
"total_ms_median": 10,
"note": "traversal cost is O(rows + objects); timings are wall-clock milliseconds reported by the reconciler process on this local stand"
},
"injected": {
"stale_orphan_object": "attachments/orphan-stale-fcbe6b1db6e2499b856297fdfad8ab63",
"stale_pending_with_object": {
"id": "58898af9-b2b0-4d4d-9b90-181560fce9f4",
"object_key": "attachments/58898af9-b2b0-4d4d-9b90-181560fce9f4"
},
"stale_pending_without_object": {
"id": "d4b7a45c-57a5-4de6-9255-647fee5bb7f5",
"object_key": "attachments/d4b7a45c-57a5-4de6-9255-647fee5bb7f5"
},
"missing_used_attachment": {
"id": "f3061162-21c7-4b31-8fd9-4e14bae915aa",
"object_key": "attachments/f3061162-21c7-4b31-8fd9-4e14bae915aa"
},
"missing_unused_attachment": {
"id": "81598453-133b-4f7d-9119-7704874613d4",
"object_key": "attachments/81598453-133b-4f7d-9119-7704874613d4"
},
"fresh_orphan_object": "attachments/orphan-fresh-883a12df6d1149159ff41dbad71a379b",
"active_upload_intent": {
"id": "912aa2d3-f0c3-4f8d-b1a9-ad4d008411a8",
"object_key": "attachments/912aa2d3-f0c3-4f8d-b1a9-ad4d008411a8"
}
},
"dry_run": {
"orphan_objects": [
"attachments/orphan-stale-fcbe6b1db6e2499b856297fdfad8ab63"
],
"protected_recent_objects": [
"attachments/orphan-fresh-883a12df6d1149159ff41dbad71a379b"
],
"stale_pending": [
"58898af9-b2b0-4d4d-9b90-181560fce9f4",
"d4b7a45c-57a5-4de6-9255-647fee5bb7f5"
],
"protected_pending": [
"912aa2d3-f0c3-4f8d-b1a9-ad4d008411a8"
],
"missing_objects": [
"81598453-133b-4f7d-9119-7704874613d4",
"f3061162-21c7-4b31-8fd9-4e14bae915aa"
],
"deleted_objects": [],
"deleted_pending_rows": []
},
"apply": {
"deleted_objects": [
"attachments/58898af9-b2b0-4d4d-9b90-181560fce9f4",
"attachments/orphan-stale-fcbe6b1db6e2499b856297fdfad8ab63"
],
"deleted_pending_rows": [
"58898af9-b2b0-4d4d-9b90-181560fce9f4",
"d4b7a45c-57a5-4de6-9255-647fee5bb7f5"
],
"unresolved_missing": [
"81598453-133b-4f7d-9119-7704874613d4",
"f3061162-21c7-4b31-8fd9-4e14bae915aa"
]
},
"rerun": {
"deleted_objects": [],
"deleted_pending_rows": []
},
"after_grace": {
"deleted_objects": [
"attachments/orphan-fresh-883a12df6d1149159ff41dbad71a379b"
],
"deleted_pending_rows": []
},
"assertions": [
{
"check": "base attachment set is incomplete",
"passed": true
},
{
"check": "message attachments were reordered",
"passed": true
},
{
"check": "base rows/objects were not exactly the 300 uploads",
"passed": true
},
{
"check": "cost run did not scan the full base set",
"passed": true
},
{
"check": "missing objects were not removed from S3",
"passed": true
},
{
"check": "stale orphan object not detected",
"passed": true
},
{
"check": "fresh orphan object not protected",
"passed": true
},
{
"check": "stale upload intents not detected",
"passed": true
},
{
"check": "fresh upload intent not protected",
"passed": true
},
{
"check": "missing objects not detected",
"passed": true
},
{
"check": "dry run deleted objects",
"passed": true
},
{
"check": "dry run deleted rows",
"passed": true
},
{
"check": "dry run mutated either store",
"passed": true
},
{
"check": "dry run removed an object",
"passed": true
},
{
"check": "dry run removed an active upload object",
"passed": true
},
{
"check": "concurrent upload during reconcile did not finish ready",
"passed": true
},
{
"check": "stale orphan object was not removed",
"passed": true
},
{
"check": "stale pending rows were not removed",
"passed": true
},
{
"check": "stale pending object was not removed",
"passed": true
},
{
"check": "stale S3 objects survived apply",
"passed": true
},
{
"check": "stale pending rows survived apply",
"passed": true
},
{
"check": "fresh orphan object was deleted inside grace",
"passed": true
},
{
"check": "active upload, concurrent upload or active row was deleted",
"passed": true
},
{
"check": "missing objects were not left for manual recovery",
"passed": true
},
{
"check": "apply changed message attachment links",
"passed": true
},
{
"check": "active upload intent changed state unexpectedly",
"passed": true
},
{
"check": "protected upload cannot be attached after completion",
"passed": true
},
{
"check": "protected upload bytes changed",
"passed": true
},
{
"check": "rerun deleted objects",
"passed": true
},
{
"check": "rerun deleted rows",
"passed": true
},
{
"check": "fresh orphan lost protection on rerun",
"passed": true
},
{
"check": "fresh orphan removed on rerun",
"passed": true
},
{
"check": "aged orphan was not removed after grace",
"passed": true
},
{
"check": "aged orphan object still exists",
"passed": true
},
{
"check": "grace expiry deleted a metadata row",
"passed": true
},
{
"check": "completed protected attachment lost after grace expiry",
"passed": true
},
{
"check": "used message disappeared from history",
"passed": true
},
{
"check": "used message lost or reordered its attachment links",
"passed": true
},
{
"check": "used message disappeared from history",
"passed": true
},
{
"check": "used message lost or reordered its attachment links",
"passed": true
},
{
"check": "used message disappeared from history",
"passed": true
},
{
"check": "used message lost or reordered its attachment links",
"passed": true
},
{
"check": "used message disappeared from history",
"passed": true
},
{
"check": "used message lost or reordered its attachment links",
"passed": true
},
{
"check": "used message disappeared from history",
"passed": true
},
{
"check": "used message lost or reordered its attachment links",
"passed": true
},
{
"check": "used message disappeared from history",
"passed": true
},
{
"check": "used message lost or reordered its attachment links",
"passed": true
},
{
"check": "used message disappeared from history",
"passed": true
},
{
"check": "used message lost or reordered its attachment links",
"passed": true
},
{
"check": "used message disappeared from history",
"passed": true
},
{
"check": "used message lost or reordered its attachment links",
"passed": true
},
{
"check": "used message disappeared from history",
"passed": true
},
{
"check": "used message lost or reordered its attachment links",
"passed": true
},
{
"check": "used message disappeared from history",
"passed": true
},
{
"check": "used message lost or reordered its attachment links",
"passed": true
},
{
"check": "used message disappeared from history",
"passed": true
},
{
"check": "used message lost or reordered its attachment links",
"passed": true
},
{
"check": "used message disappeared from history",
"passed": true
},
{
"check": "used message lost or reordered its attachment links",
"passed": true
},
{
"check": "used message disappeared from history",
"passed": true
},
{
"check": "used message lost or reordered its attachment links",
"passed": true
},
{
"check": "used message disappeared from history",
"passed": true
},
{
"check": "used message lost or reordered its attachment links",
"passed": true
},
{
"check": "used message disappeared from history",
"passed": true
},
{
"check": "used message lost or reordered its attachment links",
"passed": true
},
{
"check": "used attachment bytes changed or disappeared",
"passed": true
},
{
"check": "new upload after reconciliation failed",
"passed": true
}
],
"assertions_failed": 0,
"result": "PASS",
"limitations": [
"The reconciler never deletes or fabricates a missing original: bytes cannot be restored automatically, so those rows are reported as unresolved for operator recovery.",
"A simulated in-flight upload row is used as the deterministic active state; real concurrent uploads are additionally exercised and must finish ready.",
"Cost is measured on this 2 vCPU / ~2 GiB Colima stand and does not extrapolate to production.",
"The S3 ListObjects scan is not a snapshot: concurrent uploads are protected by the grace period and by the immediate database re-check before each delete."
]
}