test: confirm read optimization and document scaling results

This commit is contained in:
2026-10-16 09:41:43 +03:00
parent e2be4787c7
commit ca8f5646b9
58 changed files with 5337 additions and 13 deletions
@@ -0,0 +1,44 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="460" viewBox="0 0 1000 460" font-family="sans-serif" font-size="12">
<rect width="1000" height="460" fill="white"/>
<text x="500.0" y="22" text-anchor="middle" font-size="14">R* по конфигурациям: медиана и min–max</text>
<line x1="70" y1="410" x2="700" y2="410" stroke="#333"/>
<line x1="70" y1="40" x2="70" y2="410" stroke="#333"/>
<text x="160.0" y="426" text-anchor="middle">4x1</text>
<text x="250.0" y="426" text-anchor="middle">4x1-pg0.5</text>
<text x="340.0" y="426" text-anchor="middle">4x1</text>
<text x="430.0" y="426" text-anchor="middle">4x1-pg0.5</text>
<text x="520.0" y="426" text-anchor="middle">4x1</text>
<text x="610.0" y="426" text-anchor="middle">4x1-pg0.5</text>
<line x1="70" y1="410.0" x2="700" y2="410.0" stroke="#eee"/>
<text x="64" y="414.0" text-anchor="end">0</text>
<line x1="70" y1="336.0" x2="700" y2="336.0" stroke="#eee"/>
<text x="64" y="340.0" text-anchor="end">500</text>
<line x1="70" y1="262.0" x2="700" y2="262.0" stroke="#eee"/>
<text x="64" y="266.0" text-anchor="end">1000</text>
<line x1="70" y1="188.0" x2="700" y2="188.0" stroke="#eee"/>
<text x="64" y="192.0" text-anchor="end">1500</text>
<line x1="70" y1="114.0" x2="700" y2="114.0" stroke="#eee"/>
<text x="64" y="118.0" text-anchor="end">2000</text>
<line x1="70" y1="40.0" x2="700" y2="40.0" stroke="#eee"/>
<text x="64" y="44.0" text-anchor="end">2500</text>
<text x="385.0" y="448" text-anchor="middle">метка / конфигурация</text>
<text x="16" y="225.0" text-anchor="middle" transform="rotate(-90 16 225.0)">R*, запросов/с</text>
<rect x="135.2" y="140.8" width="49.5" height="269.2" fill="#2f6fbf" opacity="0.85"/>
<line x1="160.0" y1="140.8" x2="160.0" y2="140.8" stroke="#222" stroke-width="1.5"/>
<rect x="225.2" y="293.4" width="49.5" height="116.6" fill="#2f6fbf" opacity="0.85"/>
<line x1="250.0" y1="293.4" x2="250.0" y2="286.7" stroke="#222" stroke-width="1.5"/>
<rect x="315.2" y="140.8" width="49.5" height="269.2" fill="#d0752a" opacity="0.85"/>
<line x1="340.0" y1="140.8" x2="340.0" y2="140.8" stroke="#222" stroke-width="1.5"/>
<rect x="405.2" y="264.4" width="49.5" height="145.6" fill="#d0752a" opacity="0.85"/>
<line x1="430.0" y1="286.7" x2="430.0" y2="237.7" stroke="#222" stroke-width="1.5"/>
<rect x="495.2" y="140.8" width="49.5" height="269.2" fill="#3c9a5f" opacity="0.85"/>
<line x1="520.0" y1="140.8" x2="520.0" y2="125.4" stroke="#222" stroke-width="1.5"/>
<rect x="585.2" y="217.5" width="49.5" height="192.5" fill="#3c9a5f" opacity="0.85"/>
<line x1="610.0" y1="217.5" x2="610.0" y2="217.5" stroke="#222" stroke-width="1.5"/>
<line x1="714" y1="50" x2="732" y2="50" stroke="#2f6fbf" stroke-width="3"/>
<text x="738" y="54">scaling-h5-before</text>
<line x1="714" y1="68" x2="732" y2="68" stroke="#d0752a" stroke-width="3"/>
<text x="738" y="72">scaling-h5-aa</text>
<line x1="714" y1="86" x2="732" y2="86" stroke="#3c9a5f" stroke-width="3"/>
<text x="738" y="90">scaling-h7-after</text>
</svg>

After

Width:  |  Height:  |  Size: 3.0 KiB

@@ -0,0 +1,54 @@
<svg xmlns="http://www.w3.org/2000/svg" width="860" height="440" viewBox="0 0 860 440" font-family="sans-serif" font-size="12">
<rect width="860" height="440" fill="white"/>
<text x="430.0" y="22" text-anchor="middle" font-size="14">R* от числа реплик (по 1 CPU): медиана, min–max, линейный рост</text>
<line x1="70" y1="390" x2="560" y2="390" stroke="#333"/>
<line x1="70" y1="40" x2="70" y2="390" stroke="#333"/>
<text x="178.9" y="406" text-anchor="middle">1</text>
<text x="287.8" y="406" text-anchor="middle">2</text>
<text x="396.7" y="406" text-anchor="middle">3</text>
<text x="505.6" y="406" text-anchor="middle">4</text>
<line x1="70" y1="390.0" x2="560" y2="390.0" stroke="#eee"/>
<text x="64" y="394.0" text-anchor="end">0</text>
<line x1="70" y1="320.0" x2="560" y2="320.0" stroke="#eee"/>
<text x="64" y="324.0" text-anchor="end">500</text>
<line x1="70" y1="250.0" x2="560" y2="250.0" stroke="#eee"/>
<text x="64" y="254.0" text-anchor="end">1000</text>
<line x1="70" y1="180.0" x2="560" y2="180.0" stroke="#eee"/>
<text x="64" y="184.0" text-anchor="end">1500</text>
<line x1="70" y1="110.0" x2="560" y2="110.0" stroke="#eee"/>
<text x="64" y="114.0" text-anchor="end">2000</text>
<line x1="70" y1="40.0" x2="560" y2="40.0" stroke="#eee"/>
<text x="64" y="44.0" text-anchor="end">2500</text>
<text x="315.0" y="428" text-anchor="middle">реплик</text>
<text x="16" y="215.0" text-anchor="middle" transform="rotate(-90 16 215.0)">R*, запросов/с</text>
<polyline points="505.6,252.2" fill="none" stroke="#2f6fbf" stroke-width="2"/>
<circle cx="505.6" cy="252.2" r="3.5" fill="#2f6fbf" stroke="#2f6fbf"/>
<line x1="505.6" y1="273.4" x2="505.6" y2="227.0" stroke="#2f6fbf" stroke-width="1.5"/>
<line x1="574" y1="50" x2="592" y2="50" stroke="#2f6fbf" stroke-width="3"/>
<text x="598" y="54">scaling-h5-aa, PostgreSQL 0.5 CPU</text>
<polyline points="505.6,135.3" fill="none" stroke="#d0752a" stroke-width="2"/>
<circle cx="505.6" cy="135.3" r="3.5" fill="#d0752a" stroke="#d0752a"/>
<line x1="505.6" y1="135.3" x2="505.6" y2="135.3" stroke="#d0752a" stroke-width="1.5"/>
<line x1="574" y1="68" x2="592" y2="68" stroke="#d0752a" stroke-width="3"/>
<text x="598" y="72">scaling-h5-aa, PostgreSQL 2 CPU</text>
<polyline points="505.6,279.7" fill="none" stroke="#3c9a5f" stroke-width="2"/>
<circle cx="505.6" cy="279.7" r="3.5" fill="#3c9a5f" stroke="#3c9a5f"/>
<line x1="505.6" y1="279.7" x2="505.6" y2="273.4" stroke="#3c9a5f" stroke-width="1.5"/>
<line x1="574" y1="86" x2="592" y2="86" stroke="#3c9a5f" stroke-width="3"/>
<text x="598" y="90">scaling-h5-before, PostgreSQL 0.5 CPU</text>
<polyline points="505.6,135.3" fill="none" stroke="#b8404a" stroke-width="2"/>
<circle cx="505.6" cy="135.3" r="3.5" fill="#b8404a" stroke="#b8404a"/>
<line x1="505.6" y1="135.3" x2="505.6" y2="135.3" stroke="#b8404a" stroke-width="1.5"/>
<line x1="574" y1="104" x2="592" y2="104" stroke="#b8404a" stroke-width="3"/>
<text x="598" y="108">scaling-h5-before, PostgreSQL 2 CPU</text>
<polyline points="505.6,207.9" fill="none" stroke="#7a5cb5" stroke-width="2"/>
<circle cx="505.6" cy="207.9" r="3.5" fill="#7a5cb5" stroke="#7a5cb5"/>
<line x1="505.6" y1="207.9" x2="505.6" y2="207.9" stroke="#7a5cb5" stroke-width="1.5"/>
<line x1="574" y1="122" x2="592" y2="122" stroke="#7a5cb5" stroke-width="3"/>
<text x="598" y="126">scaling-h7-after, PostgreSQL 0.5 CPU</text>
<polyline points="505.6,135.3" fill="none" stroke="#8c6d3f" stroke-width="2"/>
<circle cx="505.6" cy="135.3" r="3.5" fill="#8c6d3f" stroke="#8c6d3f"/>
<line x1="505.6" y1="135.3" x2="505.6" y2="120.8" stroke="#8c6d3f" stroke-width="1.5"/>
<line x1="574" y1="140" x2="592" y2="140" stroke="#8c6d3f" stroke-width="3"/>
<text x="598" y="144">scaling-h7-after, PostgreSQL 2 CPU</text>
</svg>

After

Width:  |  Height:  |  Size: 3.7 KiB

+21
View File
@@ -0,0 +1,21 @@
# Графики трека 1: scaling-h7
Метки: scaling-h5-before, scaling-h5-aa, scaling-h7-after. Числа — `searches.csv` меток.
| Метка | Конфигурация | Реплик | CPU реплики | PostgreSQL CPU | R* медиана | min–max | Эффективность к 1 × 1 метки | Признаки на первой нарушившей |
|---|---|---|---|---|---|---|---|---|
| scaling-h5-before | 4x1 | 4 | 1 | 2 | 1819 | 1819–1819 | — | app ×3, churn ×3, pool ×3 |
| scaling-h5-before | 4x1-pg0.5 | 4 | 1 | 0.5 | 788 | 788–833 | — | churn ×2, db_cpu ×1, pool ×3 |
| scaling-h5-aa | 4x1 | 4 | 1 | 2 | 1819 | 1819–1819 | — | app ×3, churn ×2, pool ×3 |
| scaling-h5-aa | 4x1-pg0.5 | 4 | 1 | 0.5 | 984 | 833–1164 | — | churn ×2, db_cpu ×3, pool ×3 |
| scaling-h7-after | 4x1 | 4 | 1 | 2 | 1819 | 1819–1923 | — | app ×3, churn ×3, pool ×3 |
| scaling-h7-after | 4x1-pg0.5 | 4 | 1 | 0.5 | 1301 | 1301–1301 | — | churn ×2, db_cpu ×3, pool ×3 |
## Точка насыщения
- scaling-h5-aa, PostgreSQL 0.5 CPU: в пределах снятых конфигураций рост не останавливается (≥ +10 % на реплику).
- scaling-h5-aa, PostgreSQL 2 CPU: в пределах снятых конфигураций рост не останавливается (≥ +10 % на реплику).
- scaling-h5-before, PostgreSQL 0.5 CPU: в пределах снятых конфигураций рост не останавливается (≥ +10 % на реплику).
- scaling-h5-before, PostgreSQL 2 CPU: в пределах снятых конфигураций рост не останавливается (≥ +10 % на реплику).
- scaling-h7-after, PostgreSQL 0.5 CPU: в пределах снятых конфигураций рост не останавливается (≥ +10 % на реплику).
- scaling-h7-after, PostgreSQL 2 CPU: в пределах снятых конфигураций рост не останавливается (≥ +10 % на реплику).