test: record database saturation and baseline analysis
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="1280" height="460" viewBox="0 0 1280 460" font-family="sans-serif" font-size="12">
|
||||
<rect width="1280" height="460" fill="white"/>
|
||||
<text x="640.0" y="22" text-anchor="middle" font-size="14">R* по конфигурациям: медиана и min–max</text>
|
||||
<line x1="70" y1="410" x2="980" y2="410" stroke="#333"/>
|
||||
<line x1="70" y1="40" x2="70" y2="410" stroke="#333"/>
|
||||
<text x="152.7" y="426" text-anchor="middle">2x2</text>
|
||||
<text x="235.5" y="426" text-anchor="middle">4x1</text>
|
||||
<text x="318.2" y="426" text-anchor="middle">1x4</text>
|
||||
<text x="400.9" y="426" text-anchor="middle">3x1</text>
|
||||
<text x="483.6" y="426" text-anchor="middle">4x1</text>
|
||||
<text x="566.4" y="426" text-anchor="middle">1x1</text>
|
||||
<text x="649.1" y="426" text-anchor="middle">2x1</text>
|
||||
<text x="731.8" y="426" text-anchor="middle">2x1-pg0.5</text>
|
||||
<text x="814.5" y="426" text-anchor="middle">4x1-pg0.5</text>
|
||||
<text x="897.3" y="426" text-anchor="middle">1x1-pg0.5</text>
|
||||
<line x1="70" y1="410.0" x2="980" y2="410.0" stroke="#eee"/>
|
||||
<text x="64" y="414.0" text-anchor="end">0</text>
|
||||
<line x1="70" y1="336.0" x2="980" y2="336.0" stroke="#eee"/>
|
||||
<text x="64" y="340.0" text-anchor="end">500</text>
|
||||
<line x1="70" y1="262.0" x2="980" y2="262.0" stroke="#eee"/>
|
||||
<text x="64" y="266.0" text-anchor="end">1000</text>
|
||||
<line x1="70" y1="188.0" x2="980" y2="188.0" stroke="#eee"/>
|
||||
<text x="64" y="192.0" text-anchor="end">1500</text>
|
||||
<line x1="70" y1="114.0" x2="980" y2="114.0" stroke="#eee"/>
|
||||
<text x="64" y="118.0" text-anchor="end">2000</text>
|
||||
<line x1="70" y1="40.0" x2="980" y2="40.0" stroke="#eee"/>
|
||||
<text x="64" y="44.0" text-anchor="end">2500</text>
|
||||
<text x="525.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="130.0" y="227.8" width="45.5" height="182.2" fill="#2f6fbf" opacity="0.85"/>
|
||||
<line x1="152.7" y1="237.7" x2="152.7" y2="227.8" stroke="#222" stroke-width="1.5"/>
|
||||
<rect x="212.7" y="140.8" width="45.5" height="269.2" fill="#2f6fbf" opacity="0.85"/>
|
||||
<line x1="235.5" y1="140.8" x2="235.5" y2="140.8" stroke="#222" stroke-width="1.5"/>
|
||||
<rect x="295.4" y="299.7" width="45.5" height="110.3" fill="#2f6fbf" opacity="0.85"/>
|
||||
<line x1="318.2" y1="299.7" x2="318.2" y2="299.7" stroke="#222" stroke-width="1.5"/>
|
||||
<rect x="378.2" y="194.7" width="45.5" height="215.3" fill="#d0752a" opacity="0.85"/>
|
||||
<line x1="400.9" y1="206.4" x2="400.9" y2="194.7" stroke="#222" stroke-width="1.5"/>
|
||||
<rect x="460.9" y="140.8" width="45.5" height="269.2" fill="#d0752a" opacity="0.85"/>
|
||||
<line x1="483.6" y1="155.4" x2="483.6" y2="140.8" stroke="#222" stroke-width="1.5"/>
|
||||
<rect x="543.6" y="299.7" width="45.5" height="110.3" fill="#d0752a" opacity="0.85"/>
|
||||
<line x1="566.4" y1="299.7" x2="566.4" y2="299.7" stroke="#222" stroke-width="1.5"/>
|
||||
<rect x="626.3" y="237.7" width="45.5" height="172.3" fill="#d0752a" opacity="0.85"/>
|
||||
<line x1="649.1" y1="237.7" x2="649.1" y2="237.7" stroke="#222" stroke-width="1.5"/>
|
||||
<rect x="709.1" y="237.7" width="45.5" height="172.3" fill="#3c9a5f" opacity="0.85"/>
|
||||
<line x1="731.8" y1="237.7" x2="731.8" y2="227.8" stroke="#222" stroke-width="1.5"/>
|
||||
<rect x="791.8" y="293.4" width="45.5" height="116.6" fill="#3c9a5f" opacity="0.85"/>
|
||||
<line x1="814.5" y1="293.4" x2="814.5" y2="286.7" stroke="#222" stroke-width="1.5"/>
|
||||
<rect x="874.5" y="299.7" width="45.5" height="110.3" fill="#3c9a5f" opacity="0.85"/>
|
||||
<line x1="897.3" y1="299.7" x2="897.3" y2="299.7" stroke="#222" stroke-width="1.5"/>
|
||||
<line x1="994" y1="50" x2="1012" y2="50" stroke="#2f6fbf" stroke-width="3"/>
|
||||
<text x="1018" y="54">scaling-a</text>
|
||||
<line x1="994" y1="68" x2="1012" y2="68" stroke="#d0752a" stroke-width="3"/>
|
||||
<text x="1018" y="72">scaling-b</text>
|
||||
<line x1="994" y1="86" x2="1012" y2="86" stroke="#3c9a5f" stroke-width="3"/>
|
||||
<text x="1018" y="90">scaling-db</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.8 KiB |
@@ -0,0 +1,49 @@
|
||||
<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="302.5" x2="560" y2="302.5" stroke="#eee"/>
|
||||
<text x="64" y="306.5" text-anchor="end">1000</text>
|
||||
<line x1="70" y1="215.0" x2="560" y2="215.0" stroke="#eee"/>
|
||||
<text x="64" y="219.0" text-anchor="end">2000</text>
|
||||
<line x1="70" y1="127.5" x2="560" y2="127.5" stroke="#eee"/>
|
||||
<text x="64" y="131.5" text-anchor="end">3000</text>
|
||||
<line x1="70" y1="40.0" x2="560" y2="40.0" stroke="#eee"/>
|
||||
<text x="64" y="44.0" text-anchor="end">4000</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,230.8" fill="none" stroke="#2f6fbf" stroke-width="2"/>
|
||||
<circle cx="505.6" cy="230.8" r="3.5" fill="#2f6fbf" stroke="#2f6fbf"/>
|
||||
<line x1="505.6" y1="230.8" x2="505.6" y2="230.8" 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-a, PostgreSQL 2 CPU</text>
|
||||
<polyline points="178.9,324.8 287.8,288.1 396.7,262.7 505.6,230.8" fill="none" stroke="#d0752a" stroke-width="2"/>
|
||||
<circle cx="178.9" cy="324.8" r="3.5" fill="#d0752a" stroke="#d0752a"/>
|
||||
<line x1="178.9" y1="324.8" x2="178.9" y2="324.8" stroke="#d0752a" stroke-width="1.5"/>
|
||||
<circle cx="287.8" cy="288.1" r="3.5" fill="#d0752a" stroke="#d0752a"/>
|
||||
<line x1="287.8" y1="288.1" x2="287.8" y2="288.1" stroke="#d0752a" stroke-width="1.5"/>
|
||||
<circle cx="396.7" cy="262.7" r="3.5" fill="#d0752a" stroke="#d0752a"/>
|
||||
<line x1="396.7" y1="269.6" x2="396.7" y2="262.7" stroke="#d0752a" stroke-width="1.5"/>
|
||||
<circle cx="505.6" cy="230.8" r="3.5" fill="#d0752a" stroke="#d0752a"/>
|
||||
<line x1="505.6" y1="239.5" x2="505.6" y2="230.8" stroke="#d0752a" stroke-width="1.5"/>
|
||||
<polyline points="178.9,324.8 505.6,129.2" fill="none" stroke="#d0752a" stroke-width="2" stroke-dasharray="3 4"/>
|
||||
<line x1="574" y1="68" x2="592" y2="68" stroke="#d0752a" stroke-width="3"/>
|
||||
<text x="598" y="72">scaling-b, PostgreSQL 2 CPU</text>
|
||||
<polyline points="178.9,324.8 287.8,288.1 505.6,321.1" fill="none" stroke="#3c9a5f" stroke-width="2"/>
|
||||
<circle cx="178.9" cy="324.8" r="3.5" fill="#3c9a5f" stroke="#3c9a5f"/>
|
||||
<line x1="178.9" y1="324.8" x2="178.9" y2="324.8" stroke="#3c9a5f" stroke-width="1.5"/>
|
||||
<circle cx="287.8" cy="288.1" r="3.5" fill="#3c9a5f" stroke="#3c9a5f"/>
|
||||
<line x1="287.8" y1="288.1" x2="287.8" y2="282.3" stroke="#3c9a5f" stroke-width="1.5"/>
|
||||
<circle cx="505.6" cy="321.1" r="3.5" fill="#3c9a5f" stroke="#3c9a5f"/>
|
||||
<line x1="505.6" y1="321.1" x2="505.6" y2="317.1" stroke="#3c9a5f" stroke-width="1.5"/>
|
||||
<polyline points="178.9,324.8 505.6,129.2" fill="none" stroke="#3c9a5f" stroke-width="2" stroke-dasharray="3 4"/>
|
||||
<line x1="574" y1="86" x2="592" y2="86" stroke="#3c9a5f" stroke-width="3"/>
|
||||
<text x="598" y="90">scaling-db, PostgreSQL 0.5 CPU</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.5 KiB |
@@ -0,0 +1,22 @@
|
||||
# Графики трека 1: scaling
|
||||
|
||||
Метки: scaling-a, scaling-b, scaling-db. Числа — `searches.csv` меток.
|
||||
|
||||
| Метка | Конфигурация | Реплик | CPU реплики | PostgreSQL CPU | R* медиана | min–max | Эффективность к 1 × 1 метки | Признаки на первой нарушившей |
|
||||
|---|---|---|---|---|---|---|---|---|
|
||||
| scaling-a | 2x2 | 2 | 2 | 2 | 1231 | 1164–1231 | — | churn ×3, pool ×3 |
|
||||
| scaling-a | 4x1 | 4 | 1 | 2 | 1819 | 1819–1819 | — | app ×3, churn ×3, pool ×3 |
|
||||
| scaling-a | 1x4 | 1 | 4 | 2 | 745 | 745–745 | — | pool ×3 |
|
||||
| scaling-b | 3x1 | 3 | 1 | 2 | 1455 | 1376–1455 | 0.65 | app ×3, churn ×2, pool ×3 |
|
||||
| scaling-b | 4x1 | 4 | 1 | 2 | 1819 | 1720–1819 | 0.61 | app ×3, churn ×3, pool ×3 |
|
||||
| scaling-b | 1x1 | 1 | 1 | 2 | 745 | 745–745 | — | app ×3, pool ×3 |
|
||||
| scaling-b | 2x1 | 2 | 1 | 2 | 1164 | 1164–1164 | 0.78 | app ×3, churn ×2, pool ×3 |
|
||||
| scaling-db | 2x1-pg0.5 | 2 | 1 | 0.5 | 1164 | 1164–1231 | — | app ×3, churn ×3, db_cpu ×1, pool ×3 |
|
||||
| scaling-db | 4x1-pg0.5 | 4 | 1 | 0.5 | 788 | 788–833 | — | churn ×2, db_cpu ×1, pool ×3 |
|
||||
| scaling-db | 1x1-pg0.5 | 1 | 1 | 0.5 | 745 | 745–745 | — | app ×3, pool ×3 |
|
||||
|
||||
## Точка насыщения
|
||||
|
||||
- scaling-a, PostgreSQL 2 CPU: в пределах снятых конфигураций рост не останавливается (≥ +10 % на реплику).
|
||||
- scaling-b, PostgreSQL 2 CPU: в пределах снятых конфигураций рост не останавливается (≥ +10 % на реплику).
|
||||
- scaling-db, PostgreSQL 0.5 CPU: после 2 реплик(и) следующая даёт меньше +10 % R*.
|
||||
Reference in New Issue
Block a user