Реализовать уровень 3: приватное S3, вложения и сохранность при отказах

This commit is contained in:
2026-10-30 17:33:07 +03:00
parent 2e5f5bfe1b
commit 4f85fb96a6
30 changed files with 592 additions and 27 deletions
+1
View File
@@ -0,0 +1 @@
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
+3
View File
@@ -0,0 +1,3 @@
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 109, "failed_attempts": 2, "first_recovery_seconds": 2.439}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
+3
View File
@@ -0,0 +1,3 @@
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 109, "failed_attempts": 3, "first_recovery_seconds": 2.442}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
+168
View File
@@ -0,0 +1,168 @@
{
"result": "PASS",
"each_uploading_replica_stopped": [
{
"stopped": {
"id": "24498cc4891a",
"hostname": "24498cc4891a",
"name": "lyakhonov-lab4-api-1",
"running": true,
"started_at": "2026-10-30T14:31:07.744742532Z",
"project": "lyakhonov-lab4"
},
"after": {
"id": "24498cc4891a",
"hostname": "24498cc4891a",
"name": "lyakhonov-lab4-api-1",
"running": false,
"started_at": "2026-10-30T14:31:07.744742532Z",
"project": "lyakhonov-lab4"
},
"download_instance": "950e5ae78851-f8e15971",
"sha256": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75",
"recovery_seconds": 1.135
},
{
"stopped": {
"id": "950e5ae78851",
"hostname": "950e5ae78851",
"name": "lyakhonov-lab4-api-2",
"running": true,
"started_at": "2026-10-30T14:31:12.431277515Z",
"project": "lyakhonov-lab4"
},
"after": {
"id": "950e5ae78851",
"hostname": "950e5ae78851",
"name": "lyakhonov-lab4-api-2",
"running": false,
"started_at": "2026-10-30T14:31:12.431277515Z",
"project": "lyakhonov-lab4"
},
"download_instance": "24498cc4891a-5564fcf3",
"sha256": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75",
"recovery_seconds": 1.096
}
],
"s3_503_seconds": 4.046069000149146,
"restart_before": {
"api": [
{
"id": "24498cc4891a",
"hostname": "24498cc4891a",
"name": "lyakhonov-lab4-api-1",
"running": true,
"started_at": "2026-10-30T14:31:55.001303564Z",
"project": "lyakhonov-lab4"
},
{
"id": "950e5ae78851",
"hostname": "950e5ae78851",
"name": "lyakhonov-lab4-api-2",
"running": true,
"started_at": "2026-10-30T14:31:59.649868974Z",
"project": "lyakhonov-lab4"
}
],
"db": [
{
"id": "10138b5c0bee",
"hostname": "10138b5c0bee",
"name": "lyakhonov-lab4-db-1",
"running": true,
"started_at": "2026-10-30T14:30:00.149637002Z",
"project": "lyakhonov-lab4"
}
],
"redis": [
{
"id": "68997bbba33b",
"hostname": "68997bbba33b",
"name": "lyakhonov-lab4-redis-1",
"running": true,
"started_at": "2026-10-30T14:30:00.082955484Z",
"project": "lyakhonov-lab4"
}
],
"s3": [
{
"id": "83df7acfb73f",
"hostname": "83df7acfb73f",
"name": "lyakhonov-lab4-s3-1",
"running": true,
"started_at": "2026-10-30T14:32:07.860463524Z",
"project": "lyakhonov-lab4"
}
],
"lb": [
{
"id": "e9682a892ad3",
"hostname": "e9682a892ad3",
"name": "lyakhonov-lab4-lb-1",
"running": true,
"started_at": "2026-10-30T14:29:59.993685266Z",
"project": "lyakhonov-lab4"
}
]
},
"restart_after": {
"api": [
{
"id": "24498cc4891a",
"hostname": "24498cc4891a",
"name": "lyakhonov-lab4-api-1",
"running": true,
"started_at": "2026-10-30T14:32:12.97023467Z",
"project": "lyakhonov-lab4"
},
{
"id": "950e5ae78851",
"hostname": "950e5ae78851",
"name": "lyakhonov-lab4-api-2",
"running": true,
"started_at": "2026-10-30T14:32:13.834829902Z",
"project": "lyakhonov-lab4"
}
],
"db": [
{
"id": "10138b5c0bee",
"hostname": "10138b5c0bee",
"name": "lyakhonov-lab4-db-1",
"running": true,
"started_at": "2026-10-30T14:32:12.605184626Z",
"project": "lyakhonov-lab4"
}
],
"redis": [
{
"id": "68997bbba33b",
"hostname": "68997bbba33b",
"name": "lyakhonov-lab4-redis-1",
"running": true,
"started_at": "2026-10-30T14:32:12.532082166Z",
"project": "lyakhonov-lab4"
}
],
"s3": [
{
"id": "83df7acfb73f",
"hostname": "83df7acfb73f",
"name": "lyakhonov-lab4-s3-1",
"running": true,
"started_at": "2026-10-30T14:32:12.440778626Z",
"project": "lyakhonov-lab4"
}
],
"lb": [
{
"id": "e9682a892ad3",
"hostname": "e9682a892ad3",
"name": "lyakhonov-lab4-lb-1",
"running": true,
"started_at": "2026-10-30T14:32:13.55378444Z",
"project": "lyakhonov-lab4"
}
]
}
}
+1
View File
@@ -0,0 +1 @@
PASS: both uploading API replicas stopped; S3 failure/recovery; all services really restarted; original and session preserved
+2
View File
@@ -0,0 +1,2 @@
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
+1
View File
@@ -0,0 +1 @@
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
+7
View File
@@ -0,0 +1,7 @@
# Перенос базы␍
Ляхонов Сергей, БВТ2301. Выбран трек 2 лабораторной 4.␍
Источник: собственная лабораторная 3, 374c43e, только чтение; оба рабочих дерева были чистыми.␍
Перенесены src, migrations, Dockerfile, зависимости и необходимые конфигурации/bootstrap/readiness.␍
Задание, README, COURSE, contracts и публичные tests лабораторной 4 сохранены.␍
Секреты, .env, Git, тома, старые измерения и виртуальное окружение не переносились.␍
Новый стенд: Compose project lyakhonov-lab4, порт 127.0.0.1:8084, отдельные тома/сеть/образ.␍