forked from mtusi2026/mtusi2026lab4
117 lines
4.0 KiB
Plaintext
117 lines
4.0 KiB
Plaintext
$ python -u research/upload_memory.py --out evidence\recheck_2026-11-11
|
|
размер файла: 8.7 MiB, sha256 9fcc26eea979
|
|
{"UPLOAD_CONCURRENCY": 1, "statuses": {"201": 12}, "wall_seconds": 1.31, "peak_rss_mib": 99.2, "resource_limits": {"memory_bytes": 268435456, "nano_cpus": 1000000000}, "rss_before_mib": 93.3, "rss_after_mib": 99.2, "oom_killed": "false", "accepted_files_intact": "12/12", "p50_s": 0.83, "max_s": 1.3}
|
|
{"UPLOAD_CONCURRENCY": 4, "statuses": {"201": 12}, "wall_seconds": 1.18, "peak_rss_mib": 119.0, "resource_limits": {"memory_bytes": 268435456, "nano_cpus": 1000000000}, "rss_before_mib": 93.5, "rss_after_mib": 119.0, "oom_killed": "false", "accepted_files_intact": "12/12", "p50_s": 0.87, "max_s": 1.17}
|
|
{"UPLOAD_CONCURRENCY": 12, "statuses": {"201": 12}, "wall_seconds": 1.14, "peak_rss_mib": 121.2, "resource_limits": {"memory_bytes": 268435456, "nano_cpus": 1000000000}, "rss_before_mib": 93.4, "rss_after_mib": 121.2, "oom_killed": "false", "accepted_files_intact": "12/12", "p50_s": 0.94, "max_s": 1.13}
|
|
exit=0
|
|
|
|
# Reconciliation rerun after disabling stale HTTP keep-alive reuse; memory results above retained.
|
|
$ python -u research/reconcile_bench.py --out evidence\recheck_2026-11-11 --total 3000
|
|
{"db_rows": 19554, "s3_objects": 19530, "timing_ms": {"db_query": 20.2, "s3_listing": 3540.6, "total": 3649.4}, "upload_batch_seconds": 2.3}
|
|
{"db_rows": 20554, "s3_objects": 20530, "timing_ms": {"db_query": 19.0, "s3_listing": 3697.2, "total": 3806.4}, "upload_batch_seconds": 2.2}
|
|
{"db_rows": 21554, "s3_objects": 21530, "timing_ms": {"db_query": 21.2, "s3_listing": 3939.1, "total": 4055.0}, "upload_batch_seconds": 2.1}
|
|
{
|
|
"date": "2026-11-11 18:21:28",
|
|
"cost_of_scan": [
|
|
{
|
|
"db_rows": 19554,
|
|
"s3_objects": 19530,
|
|
"timing_ms": {
|
|
"db_query": 20.2,
|
|
"s3_listing": 3540.6,
|
|
"total": 3649.4
|
|
},
|
|
"upload_batch_seconds": 2.3
|
|
},
|
|
{
|
|
"db_rows": 20554,
|
|
"s3_objects": 20530,
|
|
"timing_ms": {
|
|
"db_query": 19.0,
|
|
"s3_listing": 3697.2,
|
|
"total": 3806.4
|
|
},
|
|
"upload_batch_seconds": 2.2
|
|
},
|
|
{
|
|
"db_rows": 21554,
|
|
"s3_objects": 21530,
|
|
"timing_ms": {
|
|
"db_query": 21.2,
|
|
"s3_listing": 3939.1,
|
|
"total": 4055.0
|
|
},
|
|
"upload_batch_seconds": 2.1
|
|
}
|
|
],
|
|
"injected": {
|
|
"orphan_objects": 20,
|
|
"missing_objects": 20,
|
|
"size_mismatch": 5
|
|
},
|
|
"dry_run": {
|
|
"orphan_objects_count": 20,
|
|
"missing_objects_count": 20,
|
|
"size_mismatch_count": 5,
|
|
"orphans_skipped_fresh": 0,
|
|
"timing_ms": {
|
|
"db_query": 18.7,
|
|
"s3_listing": 3652.1,
|
|
"total": 3761.7
|
|
},
|
|
"fixed": {
|
|
"deleted_orphans": 0,
|
|
"marked_failed": 0
|
|
}
|
|
},
|
|
"dry_run_repeatable": true,
|
|
"dry_run_found_exactly_injected": true,
|
|
"apply": {
|
|
"fixed": {
|
|
"deleted_orphans": 20,
|
|
"marked_failed": 25
|
|
},
|
|
"orphans_skipped_fresh": 0,
|
|
"timing_ms": {
|
|
"db_query": 19.1,
|
|
"s3_listing": 3859.1,
|
|
"total": 4048.6
|
|
},
|
|
"orphan_objects_count": 20,
|
|
"missing_objects_count": 20,
|
|
"size_mismatch_count": 5
|
|
},
|
|
"fresh_uploads_during_apply": {
|
|
"uploaded": 200,
|
|
"intact": 200
|
|
},
|
|
"in_use_attachments_intact": "200/200",
|
|
"message_bindings": {
|
|
"messages": 20,
|
|
"attachments": 200,
|
|
"unchanged": true
|
|
},
|
|
"second_apply_idempotent": {
|
|
"fixed": {
|
|
"deleted_orphans": 0,
|
|
"marked_failed": 0
|
|
},
|
|
"orphan_objects_count": 0,
|
|
"missing_objects_count": 0
|
|
},
|
|
"marked_failed": [
|
|
"object_missing=20",
|
|
"size_mismatch=5"
|
|
]
|
|
}
|
|
exit=0
|
|
|
|
$ python tests/resilience.py --mode persistence --action-script scripts/restart.cmd --base-url http://127.0.0.1:8080
|
|
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
|
|
|
|
$ python tests/smoke.py --base-url http://127.0.0.1:8080
|
|
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
|
|
exit=0
|