lab4: отчёт и доказательства итогового прогона

This commit is contained in:
2026-11-04 21:07:54 +03:00
parent 5119d0b5fd
commit 7b0b2fba64
30 changed files with 1183 additions and 17 deletions
+29
View File
@@ -0,0 +1,29 @@
ok.png image/png 106 -> 201
ok.jpg image/jpeg 900 -> 201
%D1%84%D0%BE%D1%82%D0%BE%20%F0%9F%98%80. image/png 106 -> 201
params.png image/png; charset=binary 106 -> 201
near-limit.png image/png 10288524 -> 201
too-big.png (Content-Length) image/png 10485761 -> 413
too-big-chunked.png (no Content-Length) image/png 11534336 -> 413
bomb.png image/png 66 -> 413
over-pixels.png image/png 66 -> 413
truncated.png image/png 53 -> 415
corrupt.png image/png 106 -> 415
truncated.jpg image/jpeg 898 -> 415
mime-swap.png image/jpeg 106 -> 415
mime-swap.jpg image/png 900 -> 415
text.png image/png 23 -> 415
gif.gif image/gif 14 -> 415
ctype-missing.png application/octet-stream 106 -> 415
empty.png image/png 0 -> 415
short-data.png image/png 68 -> 415
..%2Fetc%2Fpasswd image/png 106 -> 400
a%5Cb.png image/png 106 -> 400
nul%00.png image/png 106 -> 400
bell%07.png image/png 106 -> 400
%20%20%20 image/png 106 -> 400
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx image/png 106 -> 400
image/png 106 -> 400
eve.png image/png 106 -> 404
foreign.png image/png 106 -> 201
PASS: attachment negative suite (28 upload cases, no 5xx)
+8
View File
@@ -0,0 +1,8 @@
api-2 | {"time":"2026-11-04T17:59:08.618848913Z","level":"INFO","msg":"attachment upload compensated","attachment_id":"8376ff59-6e3b-434b-851f-c94203d9d4fb","cause":"unsupported media type"}
api-2 | {"time":"2026-11-04T17:59:08.649043939Z","level":"INFO","msg":"attachment upload compensated","attachment_id":"1dec380c-52c3-49ce-8eaa-d1c9b7010a28","cause":"unsupported media type"}
api-2 | {"time":"2026-11-04T17:59:21.56713159Z","level":"WARN","msg":"s3 get failed","attachment_id":"61eea43b-d38d-43ce-82f8-869e27973710","err":"s3 stat: Head \"http://s3:9000/messenger-attachments/a/4e3fa29e-8850-4823-ab42-fab04574a248/61eea43b-d38d-43ce-82f8-869e27973710\": dial tcp: lookup s3 on 127.0.0.11:53: no such host"}
api-1 | {"time":"2026-11-04T17:59:08.607887582Z","level":"INFO","msg":"attachment upload compensated","attachment_id":"3d005de4-f4dd-41db-8e29-a8af5d808c2b","cause":"unsupported media type"}
api-1 | {"time":"2026-11-04T17:59:08.626900518Z","level":"INFO","msg":"attachment upload compensated","attachment_id":"aca7c508-c906-46db-8830-afe0f0ec1917","cause":"unsupported media type"}
api-1 | {"time":"2026-11-04T17:59:21.278574756Z","level":"WARN","msg":"compensation: delete object failed, reconciler will retry","attachment_id":"cb3c808e-1d56-48a2-b1f4-928325f04c92","err":"s3 delete: Delete \"http://s3:9000/messenger-attachments/a/4e3fa29e-8850-4823-ab42-fab04574a248/cb3c808e-1d56-48a2-b1f4-928325f04c92\": dial tcp: lookup s3 on 127.0.0.11:53: no such host"}
api-1 | {"time":"2026-11-04T17:59:21.280005994Z","level":"INFO","msg":"attachment upload compensated","attachment_id":"cb3c808e-1d56-48a2-b1f4-928325f04c92","cause":"unavailable"}
api-1 | {"time":"2026-11-04T17:59:31.143854842Z","level":"INFO","msg":"attachment upload compensated","attachment_id":"9abeb5ec-bae5-4f6e-9616-5db53e004b34","cause":"unavailable"}
+7
View File
@@ -0,0 +1,7 @@
mtusi2026lab4-lb-1 0.12% 8.504MiB / 128MiB
mtusi2026lab4-api-2 2.99% 13.17MiB / 256MiB
mtusi2026lab4-api-1 2.96% 14.02MiB / 256MiB
mtusi2026lab4-reconciler-1 0.00% 4.086MiB / 128MiB
mtusi2026lab4-redis-1 0.49% 3.648MiB / 256MiB
mtusi2026lab4-s3-1 0.00% 438.5MiB / 512MiB
mtusi2026lab4-postgres-1 0.05% 67.9MiB / 512MiB
+16
View File
@@ -0,0 +1,16 @@
{
"scenario": "db-gap",
"result": {
"client_status": 504,
"seconds": 53.2,
"after_gap": {
"row_status": "ready",
"objects": 1
},
"reconciler_fixed": {},
"after_reconcile": {
"row_status": "ready",
"objects": 1
}
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"scenario": "failover",
"result": {
"uploaded_by": "5c22e6c38769",
"downloaded_by": [
"cd9621e01c62"
],
"sha256": "9cd8ae086706327908419e4e9782e8ed003310802f9381e4f8776a81079460e5",
"stopped_container": "5c22e6c38769"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"scenario": "interrupt",
"result": {
"sent_bytes": 1048576,
"declared_bytes": 4192910,
"rows_after": 0,
"objects_after": 0
}
}
+40
View File
@@ -0,0 +1,40 @@
{
"scenario": "memory",
"result": {
"file_bytes": 10187085,
"runs": [
{
"parallel": 10,
"ok": 10,
"failed": [],
"max_seconds": 0.88,
"baseline_peak_mib": {
"cd9621e01c62": 7.9,
"5c22e6c38769": 7.3
},
"peak_mib": {
"cd9621e01c62": 17.3,
"5c22e6c38769": 25.0
},
"payload_total_mib": 97.2,
"max_peak_growth_mib": 17.7
},
{
"parallel": 20,
"ok": 20,
"failed": [],
"max_seconds": 2.22,
"baseline_peak_mib": {
"cd9621e01c62": 8.1,
"5c22e6c38769": 7.4
},
"peak_mib": {
"cd9621e01c62": 47.8,
"5c22e6c38769": 42.7
},
"payload_total_mib": 194.3,
"max_peak_growth_mib": 39.7
}
]
}
}
+13
View File
@@ -0,0 +1,13 @@
{
"scenario": "s3-outage",
"result": {
"upload_status_during_outage": 503,
"upload_error_seconds": 0.38,
"download_status_during_outage": 503,
"metadata_during_outage": "ready",
"text_message_during_outage": 201,
"readiness_during_outage": 200,
"intents_left": 0,
"upload_after_recovery": "ready"
}
}
+22
View File
@@ -0,0 +1,22 @@
{
"scenario": "security",
"result": {
"anonymous_get": "403",
"anonymous_list": "403",
"api_key_own_bucket": "allowed",
"api_key_make_bucket": "denied",
"api_key_admin": "denied",
"api_key_visible_buckets": [
"messenger-attachments"
],
"bootstrap_runs": [
0,
0
],
"objects_before_after": [
10,
10
],
"s3_published_ports": "9000-9001/tcp"
}
}