Implement lab4 attachments on RustFS for grade 4.
Carry over lab3 HA stack and add private S3 storage, Attachment API, orphan compensation/reaper, own tests, and evidence for smoke/persistence/failover.
This commit is contained in:
+10
-3
@@ -1,5 +1,12 @@
|
||||
# Доказательства
|
||||
# Доказательства lab4
|
||||
|
||||
Храните небольшие обезличенные результаты: команды и stdout проверок, JSON/CSV агрегатов нагрузки, EXPLAIN, dashboard JSON, текст разбора отказа. Укажите дату, commit, аппаратные лимиты и профиль нагрузки.
|
||||
Дата: 2026-11-12. Целевая оценка: 4. Стенд: Docker Compose `--scale api=2`.
|
||||
|
||||
Не добавляйте .env, session tokens, cookies, приватные ключи, credentials, реальные сообщения, raw dumps и signed URLs. Для скриншотов скрывайте секреты. Большие логи/бинарные traces сохраняйте отдельно по правилам преподавателя; одного скриншота без методики недостаточно.
|
||||
| Файл | Содержание |
|
||||
| --- | --- |
|
||||
| `smoke.txt` | Публичный smoke lab4 — PASS |
|
||||
| `own.txt` | Own-тесты: instances, ACL, 413/415, private bucket, 10 uploads, idempotency — PASS |
|
||||
| `persistence.txt` | Restart hook: сессия + attachment сохранены — PASS |
|
||||
| `failover.txt` | stop-one: recovery ~6.14 s, данные/файл сохранены — PASS |
|
||||
|
||||
Не коммитьте `.env`, `secrets/`, токены, сырые dumps с credentials.
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 6, "failed_attempts": 1, "first_recovery_seconds": 6.14}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
@@ -0,0 +1,8 @@
|
||||
PASS: observed instances ['01e0dbb41bb1', 'b9570a5a3c7c']
|
||||
PASS: attachment upload/download/message
|
||||
PASS: 413/415/400 on bad uploads
|
||||
PASS: outsider 404 and foreign chat attachment 404
|
||||
PASS: private bucket / API-only download
|
||||
PASS: 10 concurrent uploads in 2.48s (observe API mem_limit separately)
|
||||
PASS: idempotency with attachment_ids
|
||||
PASS: all own lab4 tests
|
||||
@@ -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.
|
||||
@@ -0,0 +1 @@
|
||||
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
|
||||
Reference in New Issue
Block a user