forked from mtusi2026/mtusi2026lab2
The level 3 and 4 evidence was taken on24f9d61anda774a2f, before the lab 3 fixes were carried over and before the reconciler. Take all of it again in one series on81dd816, whose application and stand code is the final one: a fresh clone runs the launch block of the report from secrets to reset-data, then one stand from clean volumes gives the smoke, stack, limits, lb-check, failover of each replica and of the upload replica, persistence, S3 outage, S3 privacy, lost-answer retry, upload faults, all stack checks, storage layout and three runs of the upload memory matrix. The three memory runs keep the peak with three slots at 297-345 MiB against 512 MiB at the limit without them, but at 40 uploads of 10 MiB the wait for a slot nears the 8 s request timeout and one run of three gave 7 of 80 a 503. Those timeouts left 67 invisible intents; the record shows the reconciler seeing them as fresh and the sweep removing all of them after the grace period. Message write load is taken with tests/load.py from a container on the edge network: 2 106 RPS, no errors, replicas and PostgreSQL at their CPU limits. The first try from the macOS host is kept as a discarded attempt, it ran out of ephemeral ports while the replicas answered every request. The report gets the defense answers, the load section, the evidence commits, the upload limit order as the pipeline applies it, medians in the track 2 cost table and the proposals over the word limit; the evidence index lists every file with its command and commit. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V1d3RLHNBBMA6UqBLLJv27
25 lines
2.5 KiB
Plaintext
25 lines
2.5 KiB
Plaintext
date: 2026-10-30T04:32:57Z commit: 81dd816 BASE_URL=http://127.0.0.1:18084
|
||
# Отброшенная первая попытка: тот же tests/load.py (64 потока, 8 с, пауза 40 с), но клиент на хосте macOS.
|
||
# Исходный load.txt этой попытки перезаписан итоговой серией; строки ниже перенесены дословно из вывода консоли
|
||
# сессии. Третий повтор и его вывод не сохранились.
|
||
$ python3 tests/load.py --base-url http://127.0.0.1:18084 --duration 8 --concurrency 64 --output evidence/load/run1.json
|
||
{'elapsed_seconds': 8.117, 'successful_requests': 8119, 'failed_requests': 10045, 'successful_rps': 1000.281, 'successful_latency_ms': {'p50': 47.448, 'p95': 58.768, 'p99': 91.04}}
|
||
$ docker compose logs --since 2026-10-30T04:32:57Z api | request.handled: статус × маршрут
|
||
201 POST /api/v1/chats/{chat_id}/messages 8119
|
||
$ netstat -an -p tcp | grep -c TIME_WAIT # через несколько секунд после повтора 1
|
||
16350
|
||
$ sysctl net.inet.ip.portrange.first net.inet.ip.portrange.last net.inet.tcp.msl
|
||
net.inet.ip.portrange.first: 49152
|
||
net.inet.ip.portrange.last: 65535
|
||
net.inet.tcp.msl: 15000
|
||
$ python3 tests/load.py --base-url http://127.0.0.1:18084 --duration 8 --concurrency 64 --output evidence/load/run2.json # после паузы 40 с
|
||
{'elapsed_seconds': 8.144, 'successful_requests': 2396, 'failed_requests': 6398, 'successful_rps': 294.186, 'successful_latency_ms': {'p50': 46.791, 'p95': 53.737, 'p99': 58.858}}
|
||
$ docker compose logs --since 2026-10-30T04:33:45Z api | request.handled: статус × маршрут
|
||
201 POST /api/v1/chats/{chat_id}/messages 2396
|
||
$ netstat -an -p tcp | grep -c TIME_WAIT
|
||
16959
|
||
# Вывод: реплики ответили 201 на каждый дошедший запрос и ни одного 5xx; все неудачи — клиентские ошибки соединения
|
||
# при ~16 000 сокетов TIME_WAIT на хосте (диапазон эфемерных портов — 16 384, TIME_WAIT 2 × MSL = 30 с, прокси
|
||
# Docker Desktop держит свои сокеты на каждое соединение). tests/load.py открывает соединение на каждый запрос,
|
||
# поэтому замер с хоста ограничен портами хоста, а не стендом; итоговая серия — клиентом в сети edge (load.txt).
|