forked from mtusi2026/mtusi2026lab3
Give every level 4 check one make target
make limits, make lb-check (now 20 rounds of 8 parallel posts with one key), make detection, make failover-each and make rolling-update each write their file in evidence/ and fail on a violated check; make level4 runs them in order. RATE sets the k6 arrival rate (100 rps by default). make rolling-update builds the image before the load starts so the build does not skew the measurement; with FROM_REV=<commit> it first builds the image tag from git archive of that commit and recreates the replicas on it, so the update is a real change of version, and it writes to evidence/rolling-from-<commit>. Lint covers scripts/limits.py. CI acceptance runs make limits and make detection. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
3584501de8
commit
eb04fc10e3
@@ -20,12 +20,12 @@
|
||||
|
||||
## 4. Сценарии уровня «4»
|
||||
|
||||
- [ ] 4.1 `scripts/detection.sh` и `make detection`: `SIGTERM`, `docker kill`, `docker pause`, остановка PostgreSQL с заявленными максимумами
|
||||
- [ ] 4.2 `scripts/failover-each.sh` и `make failover-each`: остановка, 10 с без реплики и возврат каждой реплики под нагрузкой
|
||||
- [ ] 4.3 `scripts/limits.py` и `make limits`: политика лимитов, портов, секретов, volumes, сетей
|
||||
- [ ] 4.4 `scripts/rolling-update.sh` и `make rolling-update [FROM_REV=…]`: `migrate` один раз, замена с запасом +1, журнал образов
|
||||
- [ ] 4.5 Тест отказа PostgreSQL через LB: ответы `503`, live внутри реплики `200`, LB исключает все реплики и сам отвечает `503`
|
||||
- [ ] 4.6 CI: `make limits`, `make detection` в acceptance
|
||||
- [x] 4.1 `scripts/detection.sh` и `make detection`: `SIGTERM`, `docker kill`, `docker pause`, остановка PostgreSQL с заявленными максимумами
|
||||
- [x] 4.2 `scripts/failover-each.sh` и `make failover-each`: остановка, 10 с без реплики и возврат каждой реплики под нагрузкой
|
||||
- [x] 4.3 `scripts/limits.py` и `make limits`: политика лимитов, портов, секретов, volumes, сетей
|
||||
- [x] 4.4 `scripts/rolling-update.sh` и `make rolling-update [FROM_REV=…]`: `migrate` один раз, замена с запасом +1, журнал образов
|
||||
- [x] 4.5 Тест отказа PostgreSQL через LB: ответы `503`, live внутри реплики `200`, LB исключает все реплики и сам отвечает `503`
|
||||
- [x] 4.6 CI: `make limits`, `make detection` в acceptance
|
||||
- [ ] 4.7 Проверка группы: `make up`, `make limits`, `make lb-check`, `make detection`, `make failover-each`, `make rolling-update FROM_REV=8d28d45`, `make test-faults`
|
||||
|
||||
## 5. Отчёт
|
||||
|
||||
Reference in New Issue
Block a user