forked from mtusi2026/mtusi2026lab4
Fixed
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"command": "bootstrap",
|
||||
"date_utc": "2026-10-29T10:38:50Z",
|
||||
"commit": "ec540a1",
|
||||
"result": [
|
||||
{
|
||||
"service": "migrate",
|
||||
"last_log": {
|
||||
"time": "2026-10-29T10:38:51.949471511Z",
|
||||
"level": "INFO",
|
||||
"msg": "migrations up to date",
|
||||
"total": 3
|
||||
}
|
||||
},
|
||||
{
|
||||
"service": "s3-init",
|
||||
"last_log": {
|
||||
"time": "2026-10-29T10:38:53.253676835Z",
|
||||
"level": "INFO",
|
||||
"msg": "bucket ready",
|
||||
"bucket": "messenger-attachments",
|
||||
"created": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"service": "migrate",
|
||||
"last_log": {
|
||||
"time": "2026-10-29T10:38:54.658943295Z",
|
||||
"level": "INFO",
|
||||
"msg": "migrations up to date",
|
||||
"total": 3
|
||||
}
|
||||
},
|
||||
{
|
||||
"service": "s3-init",
|
||||
"last_log": {
|
||||
"time": "2026-10-29T10:38:56.030781559Z",
|
||||
"level": "INFO",
|
||||
"msg": "bucket ready",
|
||||
"bucket": "messenger-attachments",
|
||||
"created": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
## make check
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
## smoke
|
||||
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
|
||||
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"command": "failover-upload",
|
||||
"date_utc": "2026-10-29T10:38:32Z",
|
||||
"commit": "ec540a1",
|
||||
"result": {
|
||||
"uploaded_via": "0b30fcb99d56",
|
||||
"stopped_container": "mtusi-lab4-api-2",
|
||||
"reads_after_stop": [
|
||||
{
|
||||
"instance": "02482efeb4f6",
|
||||
"sha256_ok": true
|
||||
},
|
||||
{
|
||||
"instance": "02482efeb4f6",
|
||||
"sha256_ok": true
|
||||
},
|
||||
{
|
||||
"instance": "02482efeb4f6",
|
||||
"sha256_ok": true
|
||||
},
|
||||
{
|
||||
"instance": "02482efeb4f6",
|
||||
"sha256_ok": true
|
||||
},
|
||||
{
|
||||
"instance": "02482efeb4f6",
|
||||
"sha256_ok": true
|
||||
},
|
||||
{
|
||||
"instance": "02482efeb4f6",
|
||||
"sha256_ok": true
|
||||
},
|
||||
{
|
||||
"instance": "02482efeb4f6",
|
||||
"sha256_ok": true
|
||||
},
|
||||
{
|
||||
"instance": "02482efeb4f6",
|
||||
"sha256_ok": true
|
||||
},
|
||||
{
|
||||
"instance": "02482efeb4f6",
|
||||
"sha256_ok": true
|
||||
},
|
||||
{
|
||||
"instance": "02482efeb4f6",
|
||||
"sha256_ok": true
|
||||
}
|
||||
],
|
||||
"seconds_observed": 9.6,
|
||||
"ps_before": "mtusi-lab4-api-1 running\nmtusi-lab4-api-2 running\nmtusi-lab4-lb-1 running\nmtusi-lab4-migrate-1 exited\nmtusi-lab4-postgres-1 running\nmtusi-lab4-reconciler-1 running\nmtusi-lab4-s3-1 running\nmtusi-lab4-s3-init-1 exited\nmtusi-lab4-valkey-1 running",
|
||||
"ps_during": "mtusi-lab4-api-1 running\nmtusi-lab4-api-2 exited\nmtusi-lab4-lb-1 running\nmtusi-lab4-migrate-1 exited\nmtusi-lab4-postgres-1 running\nmtusi-lab4-reconciler-1 running\nmtusi-lab4-s3-1 running\nmtusi-lab4-s3-init-1 exited\nmtusi-lab4-valkey-1 running"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 123, "failed_attempts": 0, "first_recovery_seconds": 4.095}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
exit=0
|
||||
mtusi-lab4-api-1 running
|
||||
mtusi-lab4-api-2 exited
|
||||
|
||||
## other replica (api-1 stopped)
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 116, "failed_attempts": 0, "first_recovery_seconds": 4.148}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
exit=0
|
||||
mtusi-lab4-api-1 exited
|
||||
mtusi-lab4-api-2 running
|
||||
@@ -0,0 +1,190 @@
|
||||
{
|
||||
"command": "memory",
|
||||
"date_utc": "2026-10-29T10:20:43Z",
|
||||
"commit": "ec540a1",
|
||||
"result": {
|
||||
"api_limit": "512M x 2 replicas, 1 CPU each",
|
||||
"gomemlimit": "400MiB",
|
||||
"upload_concurrency_per_replica": 8,
|
||||
"decode_budget_mib": 128,
|
||||
"s3_limit": "1073741824",
|
||||
"runs": [
|
||||
{
|
||||
"concurrency": 1,
|
||||
"repeat": 1,
|
||||
"file_bytes": 10420335,
|
||||
"ok": 1,
|
||||
"status_503": 0,
|
||||
"other": [],
|
||||
"wall_s": 0.35,
|
||||
"p50_ms": 337,
|
||||
"max_ms": 337,
|
||||
"peak_mib_per_replica": {
|
||||
"mtusi-lab4-api-1": 34.4,
|
||||
"mtusi-lab4-api-2": 64.4
|
||||
},
|
||||
"baseline_current_mib": {
|
||||
"mtusi-lab4-api-1": 29.5,
|
||||
"mtusi-lab4-api-2": 54.8
|
||||
},
|
||||
"max_peak_mib": 64.4,
|
||||
"s3_peak_mib_since_start": 267.1,
|
||||
"s3_restarted_during_run": false
|
||||
},
|
||||
{
|
||||
"concurrency": 1,
|
||||
"repeat": 2,
|
||||
"file_bytes": 10420335,
|
||||
"ok": 1,
|
||||
"status_503": 0,
|
||||
"other": [],
|
||||
"wall_s": 0.36,
|
||||
"p50_ms": 344,
|
||||
"max_ms": 344,
|
||||
"peak_mib_per_replica": {
|
||||
"mtusi-lab4-api-1": 64.5,
|
||||
"mtusi-lab4-api-2": 29.9
|
||||
},
|
||||
"baseline_current_mib": {
|
||||
"mtusi-lab4-api-1": 54.5,
|
||||
"mtusi-lab4-api-2": 29.1
|
||||
},
|
||||
"max_peak_mib": 64.5,
|
||||
"s3_peak_mib_since_start": 312.4,
|
||||
"s3_restarted_during_run": false
|
||||
},
|
||||
{
|
||||
"concurrency": 10,
|
||||
"repeat": 1,
|
||||
"file_bytes": 10420335,
|
||||
"ok": 10,
|
||||
"status_503": 0,
|
||||
"other": [],
|
||||
"wall_s": 4.1,
|
||||
"p50_ms": 3830,
|
||||
"max_ms": 3945,
|
||||
"peak_mib_per_replica": {
|
||||
"mtusi-lab4-api-1": 148.2,
|
||||
"mtusi-lab4-api-2": 144.4
|
||||
},
|
||||
"baseline_current_mib": {
|
||||
"mtusi-lab4-api-1": 54.8,
|
||||
"mtusi-lab4-api-2": 30.1
|
||||
},
|
||||
"max_peak_mib": 148.2,
|
||||
"s3_peak_mib_since_start": 960.0,
|
||||
"s3_restarted_during_run": false
|
||||
},
|
||||
{
|
||||
"concurrency": 10,
|
||||
"repeat": 2,
|
||||
"file_bytes": 10420335,
|
||||
"ok": 10,
|
||||
"status_503": 0,
|
||||
"other": [],
|
||||
"wall_s": 3.05,
|
||||
"p50_ms": 2844,
|
||||
"max_ms": 2882,
|
||||
"peak_mib_per_replica": {
|
||||
"mtusi-lab4-api-1": 143.0,
|
||||
"mtusi-lab4-api-2": 151.7
|
||||
},
|
||||
"baseline_current_mib": {
|
||||
"mtusi-lab4-api-1": 30.3,
|
||||
"mtusi-lab4-api-2": 53.4
|
||||
},
|
||||
"max_peak_mib": 151.7,
|
||||
"s3_peak_mib_since_start": 1025.2,
|
||||
"s3_restarted_during_run": false
|
||||
},
|
||||
{
|
||||
"concurrency": 20,
|
||||
"repeat": 1,
|
||||
"file_bytes": 10420335,
|
||||
"ok": 20,
|
||||
"status_503": 0,
|
||||
"other": [],
|
||||
"wall_s": 6.35,
|
||||
"p50_ms": 5476,
|
||||
"max_ms": 6062,
|
||||
"peak_mib_per_replica": {
|
||||
"mtusi-lab4-api-1": 286.0,
|
||||
"mtusi-lab4-api-2": 236.4
|
||||
},
|
||||
"baseline_current_mib": {
|
||||
"mtusi-lab4-api-1": 54.8,
|
||||
"mtusi-lab4-api-2": 29.5
|
||||
},
|
||||
"max_peak_mib": 286.0,
|
||||
"s3_peak_mib_since_start": 1025.2,
|
||||
"s3_restarted_during_run": false
|
||||
},
|
||||
{
|
||||
"concurrency": 20,
|
||||
"repeat": 2,
|
||||
"file_bytes": 10420335,
|
||||
"ok": 20,
|
||||
"status_503": 0,
|
||||
"other": [],
|
||||
"wall_s": 7.12,
|
||||
"p50_ms": 6097,
|
||||
"max_ms": 6830,
|
||||
"peak_mib_per_replica": {
|
||||
"mtusi-lab4-api-1": 245.4,
|
||||
"mtusi-lab4-api-2": 263.7
|
||||
},
|
||||
"baseline_current_mib": {
|
||||
"mtusi-lab4-api-1": 30.2,
|
||||
"mtusi-lab4-api-2": 55.1
|
||||
},
|
||||
"max_peak_mib": 263.7,
|
||||
"s3_peak_mib_since_start": 1025.2,
|
||||
"s3_restarted_during_run": false
|
||||
},
|
||||
{
|
||||
"concurrency": 40,
|
||||
"repeat": 1,
|
||||
"file_bytes": 10420335,
|
||||
"ok": 40,
|
||||
"status_503": 0,
|
||||
"other": [],
|
||||
"wall_s": 12.64,
|
||||
"p50_ms": 9590,
|
||||
"max_ms": 12044,
|
||||
"peak_mib_per_replica": {
|
||||
"mtusi-lab4-api-1": 264.5,
|
||||
"mtusi-lab4-api-2": 248.3
|
||||
},
|
||||
"baseline_current_mib": {
|
||||
"mtusi-lab4-api-1": 53.9,
|
||||
"mtusi-lab4-api-2": 29.9
|
||||
},
|
||||
"max_peak_mib": 264.5,
|
||||
"s3_peak_mib_since_start": 1030.8,
|
||||
"s3_restarted_during_run": false
|
||||
},
|
||||
{
|
||||
"concurrency": 40,
|
||||
"repeat": 2,
|
||||
"file_bytes": 10420335,
|
||||
"ok": 40,
|
||||
"status_503": 0,
|
||||
"other": [],
|
||||
"wall_s": 11.79,
|
||||
"p50_ms": 8542,
|
||||
"max_ms": 11156,
|
||||
"peak_mib_per_replica": {
|
||||
"mtusi-lab4-api-1": 260.5,
|
||||
"mtusi-lab4-api-2": 311.1
|
||||
},
|
||||
"baseline_current_mib": {
|
||||
"mtusi-lab4-api-1": 29.5,
|
||||
"mtusi-lab4-api-2": 54.5
|
||||
},
|
||||
"max_peak_mib": 311.1,
|
||||
"s3_peak_mib_since_start": 1030.8,
|
||||
"s3_restarted_during_run": false
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"command": "no-local-file",
|
||||
"date_utc": "2026-10-29T10:38:48Z",
|
||||
"commit": "ec540a1",
|
||||
"result": {
|
||||
"mtusi-lab4-api-1": {
|
||||
"readonly_rootfs": true,
|
||||
"write_probe": "touch: /app/probe: Read-only file system",
|
||||
"mounts": [
|
||||
"/run/secrets/s3_access_key_id",
|
||||
"/run/secrets/s3_secret_access_key",
|
||||
"/run/secrets/database_url",
|
||||
"/run/secrets/cache_url"
|
||||
],
|
||||
"files_written_since_start": []
|
||||
},
|
||||
"mtusi-lab4-api-2": {
|
||||
"readonly_rootfs": true,
|
||||
"write_probe": "touch: /app/probe: Read-only file system",
|
||||
"mounts": [
|
||||
"/run/secrets/s3_access_key_id",
|
||||
"/run/secrets/s3_secret_access_key",
|
||||
"/run/secrets/database_url",
|
||||
"/run/secrets/cache_url"
|
||||
],
|
||||
"files_written_since_start": []
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
api running Up About a minute (healthy)
|
||||
api running Up About a minute (healthy)
|
||||
lb running Up 11 minutes (healthy)
|
||||
migrate exited Exited (0) About a minute ago
|
||||
postgres running Up 11 minutes (healthy)
|
||||
reconciler running Up About a minute
|
||||
s3 running Up 38 seconds (healthy)
|
||||
s3-init exited Exited (0) About a minute ago
|
||||
valkey running Up 11 minutes (healthy)
|
||||
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=0
|
||||
api running Up 7 seconds (healthy)
|
||||
api running Up 7 seconds (healthy)
|
||||
lb running Up 1 second (health: starting)
|
||||
migrate exited Exited (0) 8 seconds ago
|
||||
postgres running Up 46 seconds (healthy)
|
||||
reconciler running Up 7 seconds
|
||||
s3 running Up 36 seconds (healthy)
|
||||
s3-init exited Exited (0) 8 seconds ago
|
||||
valkey running Up 46 seconds (healthy)
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"command": "private",
|
||||
"date_utc": "2026-10-29T10:38:17Z",
|
||||
"commit": "ec540a1",
|
||||
"result": {
|
||||
"object_key_shape": "attachments/<chat_id>/<attachment_id> (server generated)",
|
||||
"key_contains_filename": false,
|
||||
"anonymous_get": 403,
|
||||
"anonymous_list": "denied (HTTP 403)",
|
||||
"api_identity_get": 200,
|
||||
"api_identity_get_sha256_matches": true,
|
||||
"api_identity_create_bucket": 403,
|
||||
"anonymous_create_bucket": 403,
|
||||
"published_s3_ports": "invalid IP:0",
|
||||
"outsider_via_api_metadata": 404,
|
||||
"outsider_via_api_content": 404,
|
||||
"api_identity_put_other_bucket": "{\"cmd\": \"put\", \"as\": \"api\", \"status\": 403}"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"command": "s3-outage",
|
||||
"date_utc": "2026-10-29T11:45:59Z",
|
||||
"commit": "ec540a1",
|
||||
"result": {
|
||||
"upload_status": 503,
|
||||
"upload_ms": 2048,
|
||||
"download_status": 503,
|
||||
"download_ms": 2018,
|
||||
"metadata_status": 200,
|
||||
"text_message_status": 201,
|
||||
"ready_status": 200,
|
||||
"pending_rows_left": 0,
|
||||
"upload_recovered_after_s3_healthy_s": 0.1,
|
||||
"old_file_intact": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
[
|
||||
{
|
||||
"test": "one session served by >=2 replicas without re-login (no stickiness)",
|
||||
"result": "PASS",
|
||||
"detail": "distribution [15, 15]"
|
||||
},
|
||||
{
|
||||
"test": "X-Instance-Id is present on errors and health too",
|
||||
"result": "PASS",
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"test": "Idempotency-Key missing or malformed -> 400, nothing stored",
|
||||
"result": "PASS",
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"test": "concurrent replay of one key through different replicas -> exactly one message",
|
||||
"result": "PASS",
|
||||
"detail": "24 parallel requests via 2 replicas -> 1 message"
|
||||
},
|
||||
{
|
||||
"test": "replay is semantic: JSON key order/whitespace does not matter; other body -> 409",
|
||||
"result": "PASS",
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"test": "key scope = user + chat: same key is independent for other user / other chat",
|
||||
"result": "PASS",
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"test": "logout is visible on every replica immediately (shared sessions)",
|
||||
"result": "PASS",
|
||||
"detail": "revoked token rejected by 2 replicas"
|
||||
},
|
||||
{
|
||||
"test": "replay re-checks the session and chat access",
|
||||
"result": "PASS",
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"test": "PNG and JPEG upload/download byte-exact with true Content-Type",
|
||||
"result": "PASS",
|
||||
"detail": "png 111817 B, jpeg 2565 B"
|
||||
},
|
||||
{
|
||||
"test": "size limit: valid ~10 MiB image accepted, 10 MiB + 1 byte -> 413",
|
||||
"result": "PASS",
|
||||
"detail": "accepted 10420335 B, rejected 10485761 B"
|
||||
},
|
||||
{
|
||||
"test": "decompression bomb (400M px header, tiny body) -> 413 before decoding",
|
||||
"result": "PASS",
|
||||
"detail": "83 B rejected in 25 ms"
|
||||
},
|
||||
{
|
||||
"test": "corrupted images and MIME spoofing -> 415, never 500",
|
||||
"result": "PASS",
|
||||
"detail": "9 spoof/corrupt variants -> 415"
|
||||
},
|
||||
{
|
||||
"test": "dangerous filenames -> 400; Unicode display name kept as-is",
|
||||
"result": "PASS",
|
||||
"detail": "12 bad names rejected"
|
||||
},
|
||||
{
|
||||
"test": "attachment_ids validation: duplicates, >10, bad UUID, empty text without files -> 400",
|
||||
"result": "PASS",
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"test": "idempotency: missing attachment_ids == []; other attachment list -> 409",
|
||||
"result": "PASS",
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"test": "10 concurrent uploads through both replicas: all 201, distinct ids, same bytes back",
|
||||
"result": "PASS",
|
||||
"detail": "10 uploads via 2 replicas"
|
||||
},
|
||||
{
|
||||
"test": "ACL: outsider gets 404 on upload, metadata, content; no token -> 401",
|
||||
"result": "PASS",
|
||||
"detail": null
|
||||
},
|
||||
{
|
||||
"test": "message attachment_ids: other chat / foreign / unknown -> 404, nothing stored",
|
||||
"result": "PASS",
|
||||
"detail": null
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,19 @@
|
||||
PASS one session served by >=2 replicas without re-login (no stickiness) - distribution [15, 15]
|
||||
PASS X-Instance-Id is present on errors and health too -
|
||||
PASS Idempotency-Key missing or malformed -> 400, nothing stored -
|
||||
PASS concurrent replay of one key through different replicas -> exactly one message - 24 parallel requests via 2 replicas -> 1 message
|
||||
PASS replay is semantic: JSON key order/whitespace does not matter; other body -> 409 -
|
||||
PASS key scope = user + chat: same key is independent for other user / other chat -
|
||||
PASS logout is visible on every replica immediately (shared sessions) - revoked token rejected by 2 replicas
|
||||
PASS replay re-checks the session and chat access -
|
||||
PASS PNG and JPEG upload/download byte-exact with true Content-Type - png 111817 B, jpeg 2565 B
|
||||
PASS size limit: valid ~10 MiB image accepted, 10 MiB + 1 byte -> 413 - accepted 10420335 B, rejected 10485761 B
|
||||
PASS decompression bomb (400M px header, tiny body) -> 413 before decoding - 83 B rejected in 25 ms
|
||||
PASS corrupted images and MIME spoofing -> 415, never 500 - 9 spoof/corrupt variants -> 415
|
||||
PASS dangerous filenames -> 400; Unicode display name kept as-is - 12 bad names rejected
|
||||
PASS attachment_ids validation: duplicates, >10, bad UUID, empty text without files -> 400 -
|
||||
PASS idempotency: missing attachment_ids == []; other attachment list -> 409 -
|
||||
PASS 10 concurrent uploads through both replicas: all 201, distinct ids, same bytes back - 10 uploads via 2 replicas
|
||||
PASS ACL: outsider gets 404 on upload, metadata, content; no token -> 401 -
|
||||
PASS message attachment_ids: other chat / foreign / unknown -> 404, nothing stored -
|
||||
18/18 passed
|
||||
@@ -0,0 +1,120 @@
|
||||
{
|
||||
"command": "cost",
|
||||
"date_utc": "2026-10-29T10:33:43Z",
|
||||
"commit": "ec540a1",
|
||||
"result": {
|
||||
"object_size_bytes": 100,
|
||||
"reconciler_limits": "0.5 CPU, 128M",
|
||||
"s3": "SeaweedFS 3.80, 1 CPU, 1G",
|
||||
"runs": [
|
||||
{
|
||||
"bench_objects": 1000,
|
||||
"repeat": 1,
|
||||
"objects_scanned": 1229,
|
||||
"rows_scanned": 1232,
|
||||
"list_ms": 52,
|
||||
"db_ms": 9,
|
||||
"total_ms": 61,
|
||||
"per_object_us": 50.0,
|
||||
"container_memory_peak_mib": 10.7,
|
||||
"findings": 0
|
||||
},
|
||||
{
|
||||
"bench_objects": 1000,
|
||||
"repeat": 2,
|
||||
"objects_scanned": 1229,
|
||||
"rows_scanned": 1232,
|
||||
"list_ms": 52,
|
||||
"db_ms": 6,
|
||||
"total_ms": 59,
|
||||
"per_object_us": 48.1,
|
||||
"container_memory_peak_mib": 10.1,
|
||||
"findings": 0
|
||||
},
|
||||
{
|
||||
"bench_objects": 1000,
|
||||
"repeat": 3,
|
||||
"objects_scanned": 1229,
|
||||
"rows_scanned": 1232,
|
||||
"list_ms": 52,
|
||||
"db_ms": 7,
|
||||
"total_ms": 60,
|
||||
"per_object_us": 48.8,
|
||||
"container_memory_peak_mib": 10.9,
|
||||
"findings": 0
|
||||
},
|
||||
{
|
||||
"bench_objects": 5000,
|
||||
"repeat": 1,
|
||||
"objects_scanned": 5229,
|
||||
"rows_scanned": 5232,
|
||||
"list_ms": 258,
|
||||
"db_ms": 67,
|
||||
"total_ms": 326,
|
||||
"per_object_us": 62.5,
|
||||
"container_memory_peak_mib": 17.2,
|
||||
"findings": 0
|
||||
},
|
||||
{
|
||||
"bench_objects": 5000,
|
||||
"repeat": 2,
|
||||
"objects_scanned": 5229,
|
||||
"rows_scanned": 5232,
|
||||
"list_ms": 345,
|
||||
"db_ms": 62,
|
||||
"total_ms": 408,
|
||||
"per_object_us": 78.2,
|
||||
"container_memory_peak_mib": 16.9,
|
||||
"findings": 0
|
||||
},
|
||||
{
|
||||
"bench_objects": 5000,
|
||||
"repeat": 3,
|
||||
"objects_scanned": 5229,
|
||||
"rows_scanned": 5232,
|
||||
"list_ms": 263,
|
||||
"db_ms": 70,
|
||||
"total_ms": 335,
|
||||
"per_object_us": 64.1,
|
||||
"container_memory_peak_mib": 15.8,
|
||||
"findings": 0
|
||||
},
|
||||
{
|
||||
"bench_objects": 20000,
|
||||
"repeat": 1,
|
||||
"objects_scanned": 20229,
|
||||
"rows_scanned": 20232,
|
||||
"list_ms": 1425,
|
||||
"db_ms": 95,
|
||||
"total_ms": 1523,
|
||||
"per_object_us": 75.3,
|
||||
"container_memory_peak_mib": 30.8,
|
||||
"findings": 0
|
||||
},
|
||||
{
|
||||
"bench_objects": 20000,
|
||||
"repeat": 2,
|
||||
"objects_scanned": 20229,
|
||||
"rows_scanned": 20232,
|
||||
"list_ms": 1537,
|
||||
"db_ms": 41,
|
||||
"total_ms": 1618,
|
||||
"per_object_us": 80.0,
|
||||
"container_memory_peak_mib": 31.1,
|
||||
"findings": 0
|
||||
},
|
||||
{
|
||||
"bench_objects": 20000,
|
||||
"repeat": 3,
|
||||
"objects_scanned": 20229,
|
||||
"rows_scanned": 20232,
|
||||
"list_ms": 1321,
|
||||
"db_ms": 76,
|
||||
"total_ms": 1404,
|
||||
"per_object_us": 69.4,
|
||||
"container_memory_peak_mib": 31.2,
|
||||
"findings": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,244 @@
|
||||
{
|
||||
"command": "faults",
|
||||
"date_utc": "2026-10-29T10:31:36Z",
|
||||
"commit": "ec540a1",
|
||||
"result": {
|
||||
"grace_used": "1m",
|
||||
"faults": {
|
||||
"F1_orphan_object_no_row": "attachments/4a583714-f34c-418f-816d-a37c4667a15e/90004716-e003-45b9-aca5-1043ee5f2a69",
|
||||
"F2_metadata_row_lost(U3)": "attachments/4a583714-f34c-418f-816d-a37c4667a15e/9bd74768-2cca-40cb-9f66-f9779c7e1bed",
|
||||
"F3_object_lost_of_used(U2)": "attachments/4a583714-f34c-418f-816d-a37c4667a15e/421fa744-895f-4f52-96cf-ea62ffec57ad",
|
||||
"F4_crash_after_put_before_ready": "attachments/4a583714-f34c-418f-816d-a37c4667a15e/761f488e-6a97-417b-a96b-140f3f99660a",
|
||||
"F5_crash_before_put": "attachments/4a583714-f34c-418f-816d-a37c4667a15e/63fe6ccb-a129-4f4d-8ef5-f56a57ae21b5",
|
||||
"F6_F7_fresh_upload_in_progress": "attachments/4a583714-f34c-418f-816d-a37c4667a15e/693c91e3-43f6-46f6-9bef-2b0de987546a",
|
||||
"F8_fresh_orphan_object": "attachments/4a583714-f34c-418f-816d-a37c4667a15e/3b644cf0-c1cd-42e1-82e4-870552ba02bc"
|
||||
},
|
||||
"steps": [
|
||||
{
|
||||
"step": "dry-run",
|
||||
"report": {
|
||||
"mode": "dry-run",
|
||||
"objects_scanned": 233,
|
||||
"rows_scanned": 235,
|
||||
"orphan_objects": 3,
|
||||
"fresh_skipped": 1,
|
||||
"stale_pending": 3,
|
||||
"missing_objects": 1,
|
||||
"size_mismatch": 0,
|
||||
"recovered": 0,
|
||||
"fixed": 0,
|
||||
"errors": 0,
|
||||
"total_ms": 34
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"kind": "stale_pending",
|
||||
"key": "attachments/22b62cf4-b6c8-4cfb-bd41-0a248cef291e/34bf2792-f4dd-4fc8-b242-2f2ed7b49209",
|
||||
"attachment_id": "34bf2792-f4dd-4fc8-b242-2f2ed7b49209",
|
||||
"action": "would delete row and object"
|
||||
},
|
||||
{
|
||||
"kind": "stale_pending",
|
||||
"key": "attachments/4a583714-f34c-418f-816d-a37c4667a15e/761f488e-6a97-417b-a96b-140f3f99660a",
|
||||
"attachment_id": "761f488e-6a97-417b-a96b-140f3f99660a",
|
||||
"action": "would delete row and object"
|
||||
},
|
||||
{
|
||||
"kind": "stale_pending",
|
||||
"key": "attachments/4a583714-f34c-418f-816d-a37c4667a15e/63fe6ccb-a129-4f4d-8ef5-f56a57ae21b5",
|
||||
"attachment_id": "63fe6ccb-a129-4f4d-8ef5-f56a57ae21b5",
|
||||
"action": "would delete row and object"
|
||||
},
|
||||
{
|
||||
"kind": "missing_object",
|
||||
"key": "attachments/4a583714-f34c-418f-816d-a37c4667a15e/421fa744-895f-4f52-96cf-ea62ffec57ad",
|
||||
"attachment_id": "421fa744-895f-4f52-96cf-ea62ffec57ad",
|
||||
"action": "would mark missing (metadata kept)"
|
||||
},
|
||||
{
|
||||
"kind": "orphan_object",
|
||||
"key": "attachments/22b62cf4-b6c8-4cfb-bd41-0a248cef291e/5585fa4c-c149-49f6-b5d1-1196038eba43",
|
||||
"action": "would delete object"
|
||||
},
|
||||
{
|
||||
"kind": "orphan_object",
|
||||
"key": "attachments/4a583714-f34c-418f-816d-a37c4667a15e/3b644cf0-c1cd-42e1-82e4-870552ba02bc",
|
||||
"action": "skip: younger than grace"
|
||||
},
|
||||
{
|
||||
"kind": "orphan_object",
|
||||
"key": "attachments/4a583714-f34c-418f-816d-a37c4667a15e/9bd74768-2cca-40cb-9f66-f9779c7e1bed",
|
||||
"action": "would delete object"
|
||||
},
|
||||
{
|
||||
"kind": "orphan_object",
|
||||
"key": "attachments/4a583714-f34c-418f-816d-a37c4667a15e/90004716-e003-45b9-aca5-1043ee5f2a69",
|
||||
"action": "would delete object"
|
||||
}
|
||||
],
|
||||
"state_before": {
|
||||
"s3_objects": 233,
|
||||
"db_rows": 235,
|
||||
"db_pending": 4,
|
||||
"db_missing_marked": 4
|
||||
},
|
||||
"state_after": {
|
||||
"s3_objects": 233,
|
||||
"db_rows": 235,
|
||||
"db_pending": 4,
|
||||
"db_missing_marked": 4
|
||||
},
|
||||
"dry_run_changed_nothing": true,
|
||||
"this_experiment": {
|
||||
"stale_pending": 2,
|
||||
"missing_object": 1,
|
||||
"orphan_object/skip": 1,
|
||||
"orphan_object": 2
|
||||
},
|
||||
"other_findings_outside_experiment": {
|
||||
"stale_pending": 1,
|
||||
"orphan_object": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"step": "apply #1",
|
||||
"report": {
|
||||
"mode": "apply",
|
||||
"objects_scanned": 233,
|
||||
"rows_scanned": 235,
|
||||
"orphan_objects": 3,
|
||||
"fresh_skipped": 1,
|
||||
"stale_pending": 3,
|
||||
"missing_objects": 1,
|
||||
"size_mismatch": 0,
|
||||
"recovered": 0,
|
||||
"fixed": 7,
|
||||
"errors": 0,
|
||||
"total_ms": 46
|
||||
},
|
||||
"this_experiment": {
|
||||
"stale_pending": 2,
|
||||
"missing_object": 1,
|
||||
"orphan_object/skip": 1,
|
||||
"orphan_object": 2
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"kind": "stale_pending",
|
||||
"key": "attachments/4a583714-f34c-418f-816d-a37c4667a15e/761f488e-6a97-417b-a96b-140f3f99660a",
|
||||
"attachment_id": "761f488e-6a97-417b-a96b-140f3f99660a",
|
||||
"action": "deleted row and object"
|
||||
},
|
||||
{
|
||||
"kind": "stale_pending",
|
||||
"key": "attachments/4a583714-f34c-418f-816d-a37c4667a15e/63fe6ccb-a129-4f4d-8ef5-f56a57ae21b5",
|
||||
"attachment_id": "63fe6ccb-a129-4f4d-8ef5-f56a57ae21b5",
|
||||
"action": "deleted row and object"
|
||||
},
|
||||
{
|
||||
"kind": "missing_object",
|
||||
"key": "attachments/4a583714-f34c-418f-816d-a37c4667a15e/421fa744-895f-4f52-96cf-ea62ffec57ad",
|
||||
"attachment_id": "421fa744-895f-4f52-96cf-ea62ffec57ad",
|
||||
"action": "marked missing (metadata kept)"
|
||||
},
|
||||
{
|
||||
"kind": "orphan_object",
|
||||
"key": "attachments/4a583714-f34c-418f-816d-a37c4667a15e/3b644cf0-c1cd-42e1-82e4-870552ba02bc",
|
||||
"action": "skip: younger than grace"
|
||||
},
|
||||
{
|
||||
"kind": "orphan_object",
|
||||
"key": "attachments/4a583714-f34c-418f-816d-a37c4667a15e/9bd74768-2cca-40cb-9f66-f9779c7e1bed",
|
||||
"action": "deleted object"
|
||||
},
|
||||
{
|
||||
"kind": "orphan_object",
|
||||
"key": "attachments/4a583714-f34c-418f-816d-a37c4667a15e/90004716-e003-45b9-aca5-1043ee5f2a69",
|
||||
"action": "deleted object"
|
||||
}
|
||||
],
|
||||
"state_after": {
|
||||
"s3_objects": 228,
|
||||
"db_rows": 232,
|
||||
"db_pending": 1,
|
||||
"db_missing_marked": 5
|
||||
}
|
||||
},
|
||||
{
|
||||
"step": "apply #2 (repeat)",
|
||||
"report": {
|
||||
"mode": "apply",
|
||||
"objects_scanned": 228,
|
||||
"rows_scanned": 232,
|
||||
"orphan_objects": 0,
|
||||
"fresh_skipped": 1,
|
||||
"stale_pending": 0,
|
||||
"missing_objects": 0,
|
||||
"size_mismatch": 0,
|
||||
"recovered": 0,
|
||||
"fixed": 0,
|
||||
"errors": 0,
|
||||
"total_ms": 25
|
||||
},
|
||||
"this_experiment": {
|
||||
"orphan_object/skip": 1
|
||||
},
|
||||
"state_after": {
|
||||
"s3_objects": 228,
|
||||
"db_rows": 232,
|
||||
"db_pending": 1,
|
||||
"db_missing_marked": 5
|
||||
}
|
||||
},
|
||||
{
|
||||
"step": "apply after restoring U2 object",
|
||||
"report": {
|
||||
"mode": "apply",
|
||||
"objects_scanned": 229,
|
||||
"rows_scanned": 232,
|
||||
"orphan_objects": 0,
|
||||
"fresh_skipped": 1,
|
||||
"stale_pending": 0,
|
||||
"missing_objects": 0,
|
||||
"size_mismatch": 0,
|
||||
"recovered": 1,
|
||||
"fixed": 1,
|
||||
"errors": 0,
|
||||
"total_ms": 27
|
||||
}
|
||||
},
|
||||
{
|
||||
"step": "dry-run with production grace 15m",
|
||||
"report": {
|
||||
"mode": "dry-run",
|
||||
"objects_scanned": 229,
|
||||
"rows_scanned": 232,
|
||||
"orphan_objects": 0,
|
||||
"fresh_skipped": 1,
|
||||
"stale_pending": 0,
|
||||
"missing_objects": 0,
|
||||
"size_mismatch": 0,
|
||||
"recovered": 0,
|
||||
"fixed": 0,
|
||||
"errors": 0,
|
||||
"total_ms": 31
|
||||
}
|
||||
}
|
||||
],
|
||||
"verify": {
|
||||
"U1_used_healthy_download_sha_ok": true,
|
||||
"U2_metadata_kept": 200,
|
||||
"U2_content_status": 404,
|
||||
"U2_marked_missing": true,
|
||||
"message_still_references_U1_U2": true,
|
||||
"F1_orphan_deleted": true,
|
||||
"F2_orphan_of_lost_row_deleted": true,
|
||||
"F4_row_and_object_deleted": true,
|
||||
"F5_row_deleted": true,
|
||||
"F7_fresh_pending_row_kept": true,
|
||||
"F7_fresh_object_kept": true,
|
||||
"F8_fresh_orphan_kept": true,
|
||||
"U2_restored_and_unmarked": true
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user