forked from mtusi2026/mtusi2026lab2
27 lines
1.1 KiB
Markdown
27 lines
1.1 KiB
Markdown
# Трек 5: согласованность кэша истории — замеры и демонстрации
|
|
Сформировано: 07.10.2026 18:32:18,01
|
|
|
|
[PASS] off: concurrent cold reads -> each hits SQL (stampede without cache)
|
|
[PASS] off: every read hits SQL
|
|
RESULT mode=off reads=100 sql=132 stampede_sql=32 p50=23.34 p95=44.1 p99=46.98
|
|
PHASE off DONE
|
|
|
|
[PASS] naive: stale read OBSERVED (cache returned old page after write)
|
|
RESULT mode=naive stale_observed=True
|
|
PHASE naive DONE
|
|
|
|
[PASS] versioned: read-after-write OK (no stale)
|
|
[PASS] versioned: single-flight -> exactly 1 SQL on cold key
|
|
[PASS] versioned: warm reads served from cache
|
|
RESULT mode=versioned reads=100 sql=0 stampede_sql=1 p50=25.92 p95=45.12 p99=47.59
|
|
PHASE versioned DONE
|
|
|
|
[PASS] recovery: api ready after redis restart
|
|
[PASS] recovery: session still valid (source of truth = postgres)
|
|
[PASS] recovery: history readable after cache loss
|
|
[PASS] recovery: read-after-write OK with rebuilt cache
|
|
[PASS] recovery: cache rebuilds (1 sql for 2 reads)
|
|
RESULT mode=recovery sql_after_restart=1
|
|
PHASE recovery DONE
|
|
|