Files
mtusi2026lab3/evidence/track1/report.html
T

33 lines
65 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!doctype html><html lang="ru"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Трек 1 отчёт</title><style>
.viz-root{color-scheme:light;--surface-1:#fcfcfb;--page:#f9f9f7;--text-primary:#0b0b0b;--text-secondary:#52514e;
--muted:#898781;--grid:#e1e0d9;--axis:#c3c2b7;--border:rgba(11,11,11,.10);
--series-1:#2a78d6;--series-2:#eb6834;--series-3:#1baf7a;--series-4:#eda100}
@media (prefers-color-scheme:dark){:root:where(:not([data-theme="light"])) .viz-root{color-scheme:dark;--surface-1:#1a1a19;
--page:#0d0d0d;--text-primary:#f0efec;--text-secondary:#c3c2b7;--grid:#2c2c2a;--axis:#383835;--border:rgba(255,255,255,.10);
--series-1:#3987e5;--series-2:#d95926;--series-3:#199e70;--series-4:#c98500}}
:root[data-theme="dark"] .viz-root{color-scheme:dark;--surface-1:#1a1a19;--page:#0d0d0d;--text-primary:#f0efec;
--text-secondary:#c3c2b7;--grid:#2c2c2a;--axis:#383835;--border:rgba(255,255,255,.10);
--series-1:#3987e5;--series-2:#d95926;--series-3:#199e70;--series-4:#c98500}
body{margin:0;background:var(--page)}
.viz-root{font:14px/1.45 system-ui,sans-serif;color:var(--text-primary);background:var(--page);padding:16px;max-width:1100px;margin:auto}
h1{font-size:22px}h2{font-size:18px;margin-top:32px}p,li{color:var(--text-secondary)}
.charts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:16px}
figure{margin:0;min-width:0;background:var(--surface-1);border:1px solid var(--border);border-radius:8px;padding:12px}
figcaption{font-weight:600;margin-bottom:6px}svg{width:100%;height:auto;display:block}
.legend{display:flex;flex-wrap:wrap;gap:12px;font-size:12px;color:var(--text-secondary);margin-bottom:4px}
.key{display:inline-flex;align-items:center;gap:4px}
.grid{stroke:var(--grid);stroke-width:1}.axis{stroke:var(--axis);stroke-width:1}
.tick{fill:var(--muted);font-size:11px}.dlabel{fill:var(--text-secondary);font-size:11px}
.pt{stroke:var(--surface-1);stroke-width:2}.hit{fill:transparent;cursor:default}
table{border-collapse:collapse;width:100%;font-size:12px;background:var(--surface-1);font-variant-numeric:tabular-nums}
th,td{border-bottom:1px solid var(--grid);padding:4px 6px;text-align:right}th:first-child,td:first-child{text-align:left}
.wrap{overflow-x:auto}
#tip{position:fixed;pointer-events:none;background:var(--surface-1);color:var(--text-primary);border:1px solid var(--border);
border-radius:6px;padding:4px 8px;font-size:12px;display:none;box-shadow:0 2px 8px rgba(0,0,0,.15)}
</style></head><body><div class="viz-root"><h1>Трек 1 — цена масштабирования</h1><p>Медианы по повторам. Наведите на точку — значение. Полные данные — таблицы под графиками и summary.csv.</p><h2>A_fixed_total — Фиксированный суммарный бюджет API: 1.0 CPU / 768M</h2><p><b>Гипотеза:</b> При фиксированном суммарном CPU рост числа реплик не увеличивает пиковый RPS (тот же бюджет) и немного ухудшает p95 из-за накладных расходов на процесс и пул соединений; выигрыш реплик — только отказоустойчивость.</p><div class="charts"><figure><figcaption>Успешные RPS</figcaption><div class="legend"><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-1)" stroke-width="2" stroke-dasharray=""/></svg>1x1.00</span><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-2)" stroke-width="2" stroke-dasharray="6 3"/></svg>2x0.50</span><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-3)" stroke-width="2" stroke-dasharray="2 3"/></svg>4x0.25</span></div><svg viewBox="0 0 640 300" role="img" aria-label="Успешные RPS"><line class="grid" x1="56" x2="520" y1="260.0" y2="260.0"/><text class="tick" x="50" y="260.0" text-anchor="end" dy="4">0</text><line class="grid" x1="56" x2="520" y1="213.3" y2="213.3"/><text class="tick" x="50" y="213.3" text-anchor="end" dy="4">100</text><line class="grid" x1="56" x2="520" y1="166.5" y2="166.5"/><text class="tick" x="50" y="166.5" text-anchor="end" dy="4">200</text><line class="grid" x1="56" x2="520" y1="119.8" y2="119.8"/><text class="tick" x="50" y="119.8" text-anchor="end" dy="4">300</text><line class="grid" x1="56" x2="520" y1="73.0" y2="73.0"/><text class="tick" x="50" y="73.0" text-anchor="end" dy="4">400</text><line class="grid" x1="56" x2="520" y1="26.3" y2="26.3"/><text class="tick" x="50" y="26.3" text-anchor="end" dy="4">500</text><line class="axis" x1="56" x2="520" y1="260" y2="260"/><text class="tick" x="56.0" y="276" text-anchor="middle">4</text><text class="tick" x="288.0" y="276" text-anchor="middle">16</text><text class="tick" x="520.0" y="276" text-anchor="middle">64</text><text class="tick" x="288" y="296" text-anchor="middle">параллелизм (closed-loop воркеры)</text><text class="tick" x="56" y="12">ok RPS</text><path d="M56.0 73.0 L288.0 58.5 L520.0 44.9" fill="none" stroke="var(--series-1)" stroke-width="2" stroke-dasharray="" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="73.0" r="4" fill="var(--series-1)" data-tip="1x1.00 · c=4 · 400.0"/><circle class="hit" cx="56.0" cy="73.0" r="12" data-tip="1x1.00 · c=4 · 400.0"/><circle class="pt" cx="288.0" cy="58.5" r="4" fill="var(--series-1)" data-tip="1x1.00 · c=16 · 431.1"/><circle class="hit" cx="288.0" cy="58.5" r="12" data-tip="1x1.00 · c=16 · 431.1"/><circle class="pt" cx="520.0" cy="44.9" r="4" fill="var(--series-1)" data-tip="1x1.00 · c=64 · 460.3"/><circle class="hit" cx="520.0" cy="44.9" r="12" data-tip="1x1.00 · c=64 · 460.3"/><text class="dlabel" x="528.0" y="40.4" dy="4">1x1.00</text><path d="M56.0 66.5 L288.0 56.3 L520.0 58.0" fill="none" stroke="var(--series-2)" stroke-width="2" stroke-dasharray="6 3" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="66.5" r="4" fill="var(--series-2)" data-tip="2x0.50 · c=4 · 414.0"/><circle class="hit" cx="56.0" cy="66.5" r="12" data-tip="2x0.50 · c=4 · 414.0"/><circle class="pt" cx="288.0" cy="56.3" r="4" fill="var(--series-2)" data-tip="2x0.50 · c=16 · 435.9"/><circle class="hit" cx="288.0" cy="56.3" r="12" data-tip="2x0.50 · c=16 · 435.9"/><circle class="pt" cx="520.0" cy="58.0" r="4" fill="var(--series-2)" data-tip="2x0.50 · c=64 · 432.1"/><circle class="hit" cx="520.0" cy="58.0" r="12" data-tip="2x0.50 · c=64 · 432.1"/><text class="dlabel" x="528.0" y="56.5" dy="4">2x0.50</text><path d="M56.0 88.9 L288.0 58.7 L520.0 38.2" fill="none" stroke="var(--series-3)" stroke-width="2" stroke-dasharray="2 3" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="88.9" r="4" fill="var(--series-3)" data-tip="4x0.25 · c=4 · 365.9"/><circle class="hit" cx="56.0" cy="88.9" r="12" data-tip="4x0.25 · c=4 · 365.9"/><circle class="pt" cx="288.0" cy="58.7" r="4" fill="var(--series-3)" data-tip="4x0.25 · c=16 · 430.7"/><circle class="hit" cx="288.0" cy="58.7" r="12" data-tip="4x0.25 · c=16 · 430.7"/><circle class="pt" cx="520.0" cy="38.2" r="4" fill="var(--series-3)" data-tip="4x0.25 · c=64 · 474.5"/><circle class="hit" cx="520.0" cy="38.2" r="12" data-tip="4x0.25 · c=64 · 474.5"/><text class="dlabel" x="528.0" y="39.7" dy="4">4x0.25</text></svg></figure><figure><figcaption>p95 задержки, мс</figcaption><div class="legend"><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-1)" stroke-width="2" stroke-dasharray=""/></svg>1x1.00</span><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-2)" stroke-width="2" stroke-dasharray="6 3"/></svg>2x0.50</span><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-3)" stroke-width="2" stroke-dasharray="2 3"/></svg>4x0.25</span></div><svg viewBox="0 0 640 300" role="img" aria-label="p95 задержки, мс"><line class="grid" x1="56" x2="520" y1="260.0" y2="260.0"/><text class="tick" x="50" y="260.0" text-anchor="end" dy="4">0</text><line class="grid" x1="56" x2="520" y1="206.1" y2="206.1"/><text class="tick" x="50" y="206.1" text-anchor="end" dy="4">100</text><line class="grid" x1="56" x2="520" y1="152.3" y2="152.3"/><text class="tick" x="50" y="152.3" text-anchor="end" dy="4">200</text><line class="grid" x1="56" x2="520" y1="98.4" y2="98.4"/><text class="tick" x="50" y="98.4" text-anchor="end" dy="4">300</text><line class="grid" x1="56" x2="520" y1="44.5" y2="44.5"/><text class="tick" x="50" y="44.5" text-anchor="end" dy="4">400</text><line class="axis" x1="56" x2="520" y1="260" y2="260"/><text class="tick" x="56.0" y="276" text-anchor="middle">4</text><text class="tick" x="288.0" y="276" text-anchor="middle">16</text><text class="tick" x="520.0" y="276" text-anchor="middle">64</text><text class="tick" x="288" y="296" text-anchor="middle">параллелизм (closed-loop воркеры)</text><text class="tick" x="56" y="12">мс</text><path d="M56.0 244.4 L288.0 212.8 L520.0 85.6" fill="none" stroke="var(--series-1)" stroke-width="2" stroke-dasharray="" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="244.4" r="4" fill="var(--series-1)" data-tip="1x1.00 · c=4 · 29.0"/><circle class="hit" cx="56.0" cy="244.4" r="12" data-tip="1x1.00 · c=4 · 29.0"/><circle class="pt" cx="288.0" cy="212.8" r="4" fill="var(--series-1)" data-tip="1x1.00 · c=16 · 87.6"/><circle class="hit" cx="288.0" cy="212.8" r="12" data-tip="1x1.00 · c=16 · 87.6"/><circle class="pt" cx="520.0" cy="85.6" r="4" fill="var(--series-1)" data-tip="1x1.00 · c=64 · 323.7"/><circle class="hit" cx="520.0" cy="85.6" r="12" data-tip="1x1.00 · c=64 · 323.7"/><text class="dlabel" x="528.0" y="81.1" dy="4">1x1.00</text><path d="M56.0 247.1 L288.0 209.5 L520.0 38.2" fill="none" stroke="var(--series-2)" stroke-width="2" stroke-dasharray="6 3" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="247.1" r="4" fill="var(--series-2)" data-tip="2x0.50 · c=4 · 23.9"/><circle class="hit" cx="56.0" cy="247.1" r="12" data-tip="2x0.50 · c=4 · 23.9"/><circle class="pt" cx="288.0" cy="209.5" r="4" fill="var(--series-2)" data-tip="2x0.50 · c=16 · 93.8"/><circle class="hit" cx="288.0" cy="209.5" r="12" data-tip="2x0.50 · c=16 · 93.8"/><circle class="pt" cx="520.0" cy="38.2" r="4" fill="var(--series-2)" data-tip="2x0.50 · c=64 · 411.8"/><circle class="hit" cx="520.0" cy="38.2" r="12" data-tip="2x0.50 · c=64 · 411.8"/><text class="dlabel" x="528.0" y="36.7" dy="4">2x0.50</text><path d="M56.0 246.6 L288.0 209.8 L520.0 84.0" fill="none" stroke="var(--series-3)" stroke-width="2" stroke-dasharray="2 3" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="246.6" r="4" fill="var(--series-3)" data-tip="4x0.25 · c=4 · 25.0"/><circle class="hit" cx="56.0" cy="246.6" r="12" data-tip="4x0.25 · c=4 · 25.0"/><circle class="pt" cx="288.0" cy="209.8" r="4" fill="var(--series-3)" data-tip="4x0.25 · c=16 · 93.2"/><circle class="hit" cx="288.0" cy="209.8" r="12" data-tip="4x0.25 · c=16 · 93.2"/><circle class="pt" cx="520.0" cy="84.0" r="4" fill="var(--series-3)" data-tip="4x0.25 · c=64 · 326.7"/><circle class="hit" cx="520.0" cy="84.0" r="12" data-tip="4x0.25 · c=64 · 326.7"/><text class="dlabel" x="528.0" y="85.5" dy="4">4x0.25</text></svg></figure></div><div class="wrap"><table><thead><tr><th>config</th><th>пик RPS</th><th>к первой</th><th>c пика</th><th>c насыщения</th><th>узкое место</th><th>CPU хоста</th><th>pool empty / wait ms</th></tr></thead><tbody><tr><td>1x1.00</td><td>460.3</td><td>1.00×</td><td>64</td><td>16</td><td>redis (1.00) — насыщена</td><td>67%</td><td>0.000 / 0.00</td></tr><tr><td>2x0.50</td><td>435.9</td><td>0.95×</td><td>16</td><td>16</td><td>redis (1.00) — насыщена</td><td>74%</td><td>0.000 / 0.00</td></tr><tr><td>4x0.25</td><td>474.5</td><td>1.03×</td><td>64</td><td>64</td><td>api (0.53)</td><td>46%</td><td>0.001 / 0.05</td></tr></tbody></table></div><details><summary>Все точки серии</summary><div class="wrap"><table><thead><tr><th>config</th><th>c</th><th>repeats</th><th>ok_rps</th><th>rps_min</th><th>rps_max</th><th>write_rps</th><th>read_rps</th><th>p50_ms</th><th>p95_ms</th><th>p99_ms</th><th>err</th><th>util_api</th><th>util_pg</th><th>util_redis</th><th>util_lb</th><th>host_cores</th><th>pool_empty</th><th>pool_wait_ms</th><th>pg_active</th></tr></thead><tbody><tr><td>1x1.00</td><td>4</td><td>3</td><td>400.0</td><td>380.3</td><td>409.6</td><td>198.0</td><td>202.0</td><td>9.50</td><td>29.00</td><td>38.00</td><td>0.0000</td><td>0.60</td><td>0.20</td><td>1.02</td><td>0.09</td><td>1.35/2</td><td>0.000</td><td>0.00</td><td>1</td></tr><tr><td>1x1.00</td><td>16</td><td>3</td><td>431.1</td><td>419.1</td><td>435.1</td><td>213.2</td><td>214.9</td><td>31.99</td><td>87.64</td><td>114.58</td><td>0.0000</td><td>0.59</td><td>0.20</td><td>1.00</td><td>0.10</td><td>1.34/2</td><td>0.000</td><td>0.00</td><td>1</td></tr><tr><td>1x1.00</td><td>64</td><td>3</td><td>460.3</td><td>439.5</td><td>466.0</td><td>229.7</td><td>229.9</td><td>203.62</td><td>323.70</td><td>364.45</td><td>0.0000</td><td>0.65</td><td>0.21</td><td>0.99</td><td>0.10</td><td>1.43/2</td><td>0.015</td><td>0.06</td><td>1</td></tr><tr><td>2x0.50</td><td>4</td><td>3</td><td>414.0</td><td>376.7</td><td>416.1</td><td>203.9</td><td>208.5</td><td>8.53</td><td>23.95</td><td>34.56</td><td>0.0000</td><td>0.75</td><td>0.18</td><td>1.02</td><td>0.09</td><td>1.49/2</td><td>0.000</td><td>0.00</td><td>1</td></tr><tr><td>2x0.50</td><td>16</td><td>3</td><td>435.9</td><td>426.3</td><td>446.4</td><td>217.3</td><td>218.5</td><td>22.71</td><td>93.78</td><td>116.92</td><td>0.0000</td><td>0.72</td><td>0.21</td><td>1.00</td><td>0.10</td><td>1.48/2</td><td>0.000</td><td>0.00</td><td>1</td></tr><tr><td>2x0.50</td><td>64</td><td>3</td><td>432.1</td><td>390.1</td><td>446.1</td><td>222.3</td><td>209.7</td><td>68.66</td><td>411.81</td><td>499.59</td><td>0.0000</td><td>0.72</td><td>0.22</td><td>1.00</td><td>0.10</td><td>1.49/2</td><td>0.003</td><td>0.01</td><td>0</td></tr><tr><td>4x0.25</td><td>4</td><td>3</td><td>365.9</td><td>351.5</td><td>395.9</td><td>182.5</td><td>183.5</td><td>8.74</td><td>24.96</td><td>50.78</td><td>0.0000</td><td>0.83</td><td>0.19</td><td>0.95</td><td>0.09</td><td>1.54/2</td><td>0.000</td><td>0.00</td><td>2</td></tr><tr><td>4x0.25</td><td>16</td><td>3</td><td>430.7</td><td>405.5</td><td>454.6</td><td>217.2</td><td>213.5</td><td>24.57</td><td>93.21</td><td>141.18</td><td>0.0000</td><td>0.86</td><td>0.20</td><td>0.93</td><td>0.09</td><td>1.56/2</td><td>0.000</td><td>0.01</td><td>1</td></tr><tr><td>4x0.25</td><td>64</td><td>3</td><td>474.5</td><td>469.9</td><td>479.0</td><td>231.9</td><td>241.3</td><td>53.35</td><td>326.69</td><td>406.51</td><td>0.0000</td><td>0.53</td><td>0.13</td><td>0.45</td><td>0.05</td><td>0.91/2</td><td>0.001</td><td>0.05</td><td>1</td></tr></tbody></table></div></details><h2>B_scale_out — Рост ресурсов: реплики по 0.5 CPU, БД 1.0 CPU, LB 0.5 CPU</h2><p><b>Гипотеза:</b> Пиковый RPS растёт почти линейно, пока узкое место — CPU API; затем рост останавливается на общей зависимости (PostgreSQL, Redis или LB), чья утилизация CPU приближается к лимиту.</p><div class="charts"><figure><figcaption>Успешные RPS</figcaption><div class="legend"><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-1)" stroke-width="2" stroke-dasharray=""/></svg>1x0.50</span><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-2)" stroke-width="2" stroke-dasharray="6 3"/></svg>2x0.50</span><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-3)" stroke-width="2" stroke-dasharray="2 3"/></svg>4x0.50</span></div><svg viewBox="0 0 640 300" role="img" aria-label="Успешные RPS"><line class="grid" x1="56" x2="520" y1="260.0" y2="260.0"/><text class="tick" x="50" y="260.0" text-anchor="end" dy="4">0</text><line class="grid" x1="56" x2="520" y1="208.0" y2="208.0"/><text class="tick" x="50" y="208.0" text-anchor="end" dy="4">100</text><line class="grid" x1="56" x2="520" y1="156.0" y2="156.0"/><text class="tick" x="50" y="156.0" text-anchor="end" dy="4">200</text><line class="grid" x1="56" x2="520" y1="104.0" y2="104.0"/><text class="tick" x="50" y="104.0" text-anchor="end" dy="4">300</text><line class="grid" x1="56" x2="520" y1="52.0" y2="52.0"/><text class="tick" x="50" y="52.0" text-anchor="end" dy="4">400</text><line class="axis" x1="56" x2="520" y1="260" y2="260"/><text class="tick" x="56.0" y="276" text-anchor="middle">4</text><text class="tick" x="288.0" y="276" text-anchor="middle">16</text><text class="tick" x="520.0" y="276" text-anchor="middle">64</text><text class="tick" x="288" y="296" text-anchor="middle">параллелизм (closed-loop воркеры)</text><text class="tick" x="56" y="12">ok RPS</text><path d="M56.0 76.0 L288.0 54.6 L520.0 74.1" fill="none" stroke="var(--series-1)" stroke-width="2" stroke-dasharray="" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="76.0" r="4" fill="var(--series-1)" data-tip="1x0.50 · c=4 · 353.9"/><circle class="hit" cx="56.0" cy="76.0" r="12" data-tip="1x0.50 · c=4 · 353.9"/><circle class="pt" cx="288.0" cy="54.6" r="4" fill="var(--series-1)" data-tip="1x0.50 · c=16 · 395.1"/><circle class="hit" cx="288.0" cy="54.6" r="12" data-tip="1x0.50 · c=16 · 395.1"/><circle class="pt" cx="520.0" cy="74.1" r="4" fill="var(--series-1)" data-tip="1x0.50 · c=64 · 357.7"/><circle class="hit" cx="520.0" cy="74.1" r="12" data-tip="1x0.50 · c=64 · 357.7"/><text class="dlabel" x="528.0" y="69.6" dy="4">1x0.50</text><path d="M56.0 58.8 L288.0 40.8 L520.0 38.2" fill="none" stroke="var(--series-2)" stroke-width="2" stroke-dasharray="6 3" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="58.8" r="4" fill="var(--series-2)" data-tip="2x0.50 · c=4 · 387.1"/><circle class="hit" cx="56.0" cy="58.8" r="12" data-tip="2x0.50 · c=4 · 387.1"/><circle class="pt" cx="288.0" cy="40.8" r="4" fill="var(--series-2)" data-tip="2x0.50 · c=16 · 421.7"/><circle class="hit" cx="288.0" cy="40.8" r="12" data-tip="2x0.50 · c=16 · 421.7"/><circle class="pt" cx="520.0" cy="38.2" r="4" fill="var(--series-2)" data-tip="2x0.50 · c=64 · 426.7"/><circle class="hit" cx="520.0" cy="38.2" r="12" data-tip="2x0.50 · c=64 · 426.7"/><text class="dlabel" x="528.0" y="36.7" dy="4">2x0.50</text><path d="M56.0 58.6 L288.0 50.6 L520.0 42.2" fill="none" stroke="var(--series-3)" stroke-width="2" stroke-dasharray="2 3" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="58.6" r="4" fill="var(--series-3)" data-tip="4x0.50 · c=4 · 387.3"/><circle class="hit" cx="56.0" cy="58.6" r="12" data-tip="4x0.50 · c=4 · 387.3"/><circle class="pt" cx="288.0" cy="50.6" r="4" fill="var(--series-3)" data-tip="4x0.50 · c=16 · 402.7"/><circle class="hit" cx="288.0" cy="50.6" r="12" data-tip="4x0.50 · c=16 · 402.7"/><circle class="pt" cx="520.0" cy="42.2" r="4" fill="var(--series-3)" data-tip="4x0.50 · c=64 · 419.0"/><circle class="hit" cx="520.0" cy="42.2" r="12" data-tip="4x0.50 · c=64 · 419.0"/><text class="dlabel" x="528.0" y="43.7" dy="4">4x0.50</text></svg></figure><figure><figcaption>p95 задержки, мс</figcaption><div class="legend"><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-1)" stroke-width="2" stroke-dasharray=""/></svg>1x0.50</span><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-2)" stroke-width="2" stroke-dasharray="6 3"/></svg>2x0.50</span><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-3)" stroke-width="2" stroke-dasharray="2 3"/></svg>4x0.50</span></div><svg viewBox="0 0 640 300" role="img" aria-label="p95 задержки, мс"><line class="grid" x1="56" x2="520" y1="260.0" y2="260.0"/><text class="tick" x="50" y="260.0" text-anchor="end" dy="4">0</text><line class="grid" x1="56" x2="520" y1="205.1" y2="205.1"/><text class="tick" x="50" y="205.1" text-anchor="end" dy="4">100</text><line class="grid" x1="56" x2="520" y1="150.2" y2="150.2"/><text class="tick" x="50" y="150.2" text-anchor="end" dy="4">200</text><line class="grid" x1="56" x2="520" y1="95.3" y2="95.3"/><text class="tick" x="50" y="95.3" text-anchor="end" dy="4">300</text><line class="grid" x1="56" x2="520" y1="40.5" y2="40.5"/><text class="tick" x="50" y="40.5" text-anchor="end" dy="4">400</text><line class="axis" x1="56" x2="520" y1="260" y2="260"/><text class="tick" x="56.0" y="276" text-anchor="middle">4</text><text class="tick" x="288.0" y="276" text-anchor="middle">16</text><text class="tick" x="520.0" y="276" text-anchor="middle">64</text><text class="tick" x="288" y="296" text-anchor="middle">параллелизм (closed-loop воркеры)</text><text class="tick" x="56" y="12">мс</text><path d="M56.0 237.8 L288.0 208.7 L520.0 50.6" fill="none" stroke="var(--series-1)" stroke-width="2" stroke-dasharray="" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="237.8" r="4" fill="var(--series-1)" data-tip="1x0.50 · c=4 · 40.4"/><circle class="hit" cx="56.0" cy="237.8" r="12" data-tip="1x0.50 · c=4 · 40.4"/><circle class="pt" cx="288.0" cy="208.7" r="4" fill="var(--series-1)" data-tip="1x0.50 · c=16 · 93.4"/><circle class="hit" cx="288.0" cy="208.7" r="12" data-tip="1x0.50 · c=16 · 93.4"/><circle class="pt" cx="520.0" cy="50.6" r="4" fill="var(--series-1)" data-tip="1x0.50 · c=64 · 381.5"/><circle class="hit" cx="520.0" cy="50.6" r="12" data-tip="1x0.50 · c=64 · 381.5"/><text class="dlabel" x="528.0" y="46.1" dy="4">1x0.50</text><path d="M56.0 245.5 L288.0 210.5 L520.0 38.2" fill="none" stroke="var(--series-2)" stroke-width="2" stroke-dasharray="6 3" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="245.5" r="4" fill="var(--series-2)" data-tip="2x0.50 · c=4 · 26.3"/><circle class="hit" cx="56.0" cy="245.5" r="12" data-tip="2x0.50 · c=4 · 26.3"/><circle class="pt" cx="288.0" cy="210.5" r="4" fill="var(--series-2)" data-tip="2x0.50 · c=16 · 90.3"/><circle class="hit" cx="288.0" cy="210.5" r="12" data-tip="2x0.50 · c=16 · 90.3"/><circle class="pt" cx="520.0" cy="38.2" r="4" fill="var(--series-2)" data-tip="2x0.50 · c=64 · 404.1"/><circle class="hit" cx="520.0" cy="38.2" r="12" data-tip="2x0.50 · c=64 · 404.1"/><text class="dlabel" x="528.0" y="36.7" dy="4">2x0.50</text><path d="M56.0 246.3 L288.0 207.5 L520.0 71.4" fill="none" stroke="var(--series-3)" stroke-width="2" stroke-dasharray="2 3" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="246.3" r="4" fill="var(--series-3)" data-tip="4x0.50 · c=4 · 24.9"/><circle class="hit" cx="56.0" cy="246.3" r="12" data-tip="4x0.50 · c=4 · 24.9"/><circle class="pt" cx="288.0" cy="207.5" r="4" fill="var(--series-3)" data-tip="4x0.50 · c=16 · 95.6"/><circle class="hit" cx="288.0" cy="207.5" r="12" data-tip="4x0.50 · c=16 · 95.6"/><circle class="pt" cx="520.0" cy="71.4" r="4" fill="var(--series-3)" data-tip="4x0.50 · c=64 · 343.6"/><circle class="hit" cx="520.0" cy="71.4" r="12" data-tip="4x0.50 · c=64 · 343.6"/><text class="dlabel" x="528.0" y="72.9" dy="4">4x0.50</text></svg></figure></div><div class="wrap"><table><thead><tr><th>config</th><th>пик RPS</th><th>к первой</th><th>c пика</th><th>c насыщения</th><th>узкое место</th><th>CPU хоста</th><th>pool empty / wait ms</th></tr></thead><tbody><tr><td>1x0.50</td><td>395.1</td><td>1.00×</td><td>16</td><td>64</td><td>api (0.99) — насыщена</td><td>59%</td><td>0.015 / 0.08</td></tr><tr><td>2x0.50</td><td>426.7</td><td>1.08×</td><td>64</td><td>16</td><td>redis (1.01) — насыщена</td><td>75%</td><td>0.000 / 0.00</td></tr><tr><td>4x0.50</td><td>419.0</td><td>1.06×</td><td>64</td><td>16</td><td>redis (1.00) — насыщена</td><td>80%</td><td>0.000 / 0.00</td></tr></tbody></table></div><details><summary>Все точки серии</summary><div class="wrap"><table><thead><tr><th>config</th><th>c</th><th>repeats</th><th>ok_rps</th><th>rps_min</th><th>rps_max</th><th>write_rps</th><th>read_rps</th><th>p50_ms</th><th>p95_ms</th><th>p99_ms</th><th>err</th><th>util_api</th><th>util_pg</th><th>util_redis</th><th>util_lb</th><th>host_cores</th><th>pool_empty</th><th>pool_wait_ms</th><th>pg_active</th></tr></thead><tbody><tr><td>1x0.50</td><td>4</td><td>3</td><td>353.9</td><td>345.9</td><td>360.0</td><td>177.0</td><td>173.9</td><td>10.66</td><td>40.41</td><td>45.86</td><td>0.0000</td><td>1.00</td><td>0.19</td><td>0.87</td><td>0.09</td><td>1.17/2</td><td>0.000</td><td>0.00</td><td>1</td></tr><tr><td>1x0.50</td><td>16</td><td>3</td><td>395.1</td><td>380.5</td><td>400.1</td><td>195.1</td><td>195.6</td><td>37.85</td><td>93.43</td><td>116.11</td><td>0.0000</td><td>1.00</td><td>0.20</td><td>0.89</td><td>0.10</td><td>1.19/2</td><td>0.000</td><td>0.00</td><td>1</td></tr><tr><td>1x0.50</td><td>64</td><td>3</td><td>357.7</td><td>355.3</td><td>368.2</td><td>178.9</td><td>179.6</td><td>61.60</td><td>381.45</td><td>406.44</td><td>0.0000</td><td>0.99</td><td>0.21</td><td>0.83</td><td>0.09</td><td>1.17/2</td><td>0.015</td><td>0.08</td><td>1</td></tr><tr><td>2x0.50</td><td>4</td><td>3</td><td>387.1</td><td>385.9</td><td>388.9</td><td>194.2</td><td>193.3</td><td>10.15</td><td>26.34</td><td>34.55</td><td>0.0000</td><td>0.69</td><td>0.22</td><td>1.01</td><td>0.10</td><td>1.46/2</td><td>0.000</td><td>0.00</td><td>1</td></tr><tr><td>2x0.50</td><td>16</td><td>3</td><td>421.7</td><td>416.1</td><td>428.3</td><td>209.1</td><td>212.6</td><td>25.01</td><td>90.25</td><td>117.63</td><td>0.0000</td><td>0.67</td><td>0.26</td><td>1.01</td><td>0.11</td><td>1.50/2</td><td>0.000</td><td>0.00</td><td>1</td></tr><tr><td>2x0.50</td><td>64</td><td>3</td><td>426.7</td><td>415.9</td><td>430.6</td><td>210.0</td><td>208.7</td><td>76.17</td><td>404.13</td><td>457.30</td><td>0.0000</td><td>0.67</td><td>0.27</td><td>1.00</td><td>0.10</td><td>1.49/2</td><td>0.006</td><td>0.08</td><td>0</td></tr><tr><td>4x0.50</td><td>4</td><td>3</td><td>387.3</td><td>371.2</td><td>396.7</td><td>191.5</td><td>191.2</td><td>10.14</td><td>24.87</td><td>33.90</td><td>0.0000</td><td>0.39</td><td>0.23</td><td>1.00</td><td>0.10</td><td>1.56/2</td><td>0.000</td><td>0.00</td><td>1</td></tr><tr><td>4x0.50</td><td>16</td><td>3</td><td>402.7</td><td>391.3</td><td>405.7</td><td>200.1</td><td>201.0</td><td>32.26</td><td>95.64</td><td>119.37</td><td>0.0000</td><td>0.38</td><td>0.26</td><td>1.00</td><td>0.11</td><td>1.59/2</td><td>0.000</td><td>0.00</td><td>3</td></tr><tr><td>4x0.50</td><td>64</td><td>3</td><td>419.0</td><td>407.6</td><td>420.2</td><td>210.3</td><td>206.5</td><td>213.44</td><td>343.64</td><td>390.49</td><td>0.0000</td><td>0.37</td><td>0.28</td><td>0.97</td><td>0.11</td><td>1.57/2</td><td>0.000</td><td>0.00</td><td>3</td></tr></tbody></table></div></details><h2>D_improvement — Кандидаты улучшения на 4×0.5 CPU</h2><p><b>Гипотеза:</b> Инвалидация кэша истории через SCAN (lab2) делает O(keyspace/100) запросов к Redis на каждую запись; ключ с версией чата (CACHE_INVALIDATION=version) делает 1 INCR и поднимает RPS записи при большом keyspace. Альтернативы: меньший пул на реплику, leastconn.</p><div class="charts"><figure><figcaption>Успешные RPS</figcaption><div class="legend"><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-1)" stroke-width="2" stroke-dasharray=""/></svg>baseline_scan</span><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-2)" stroke-width="2" stroke-dasharray="6 3"/></svg>cache_version</span><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-3)" stroke-width="2" stroke-dasharray="2 3"/></svg>pool_8</span><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-4)" stroke-width="2" stroke-dasharray="8 3 2 3"/></svg>leastconn</span></div><svg viewBox="0 0 640 300" role="img" aria-label="Успешные RPS"><line class="grid" x1="56" x2="520" y1="260.0" y2="260.0"/><text class="tick" x="50" y="260.0" text-anchor="end" dy="4">0</text><line class="grid" x1="56" x2="520" y1="205.7" y2="205.7"/><text class="tick" x="50" y="205.7" text-anchor="end" dy="4">200</text><line class="grid" x1="56" x2="520" y1="151.5" y2="151.5"/><text class="tick" x="50" y="151.5" text-anchor="end" dy="4">400</text><line class="grid" x1="56" x2="520" y1="97.2" y2="97.2"/><text class="tick" x="50" y="97.2" text-anchor="end" dy="4">600</text><line class="grid" x1="56" x2="520" y1="43.0" y2="43.0"/><text class="tick" x="50" y="43.0" text-anchor="end" dy="4">800</text><line class="axis" x1="56" x2="520" y1="260" y2="260"/><text class="tick" x="56.0" y="276" text-anchor="middle">32</text><text class="tick" x="520.0" y="276" text-anchor="middle">64</text><text class="tick" x="288" y="296" text-anchor="middle">параллелизм (closed-loop воркеры)</text><text class="tick" x="56" y="12">ok RPS</text><path d="M56.0 158.4 L520.0 161.8" fill="none" stroke="var(--series-1)" stroke-width="2" stroke-dasharray="" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="158.4" r="4" fill="var(--series-1)" data-tip="baseline_scan · c=32 · 374.5"/><circle class="hit" cx="56.0" cy="158.4" r="12" data-tip="baseline_scan · c=32 · 374.5"/><circle class="pt" cx="520.0" cy="161.8" r="4" fill="var(--series-1)" data-tip="baseline_scan · c=64 · 362.1"/><circle class="hit" cx="520.0" cy="161.8" r="12" data-tip="baseline_scan · c=64 · 362.1"/><text class="dlabel" x="528.0" y="157.3" dy="4">baseline_scan</text><path d="M56.0 64.2 L520.0 38.2" fill="none" stroke="var(--series-2)" stroke-width="2" stroke-dasharray="6 3" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="64.2" r="4" fill="var(--series-2)" data-tip="cache_version · c=32 · 721.6"/><circle class="hit" cx="56.0" cy="64.2" r="12" data-tip="cache_version · c=32 · 721.6"/><circle class="pt" cx="520.0" cy="38.2" r="4" fill="var(--series-2)" data-tip="cache_version · c=64 · 817.6"/><circle class="hit" cx="520.0" cy="38.2" r="12" data-tip="cache_version · c=64 · 817.6"/><text class="dlabel" x="528.0" y="36.7" dy="4">cache_version</text><path d="M56.0 161.9 L520.0 161.9" fill="none" stroke="var(--series-3)" stroke-width="2" stroke-dasharray="2 3" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="161.9" r="4" fill="var(--series-3)" data-tip="pool_8 · c=32 · 361.5"/><circle class="hit" cx="56.0" cy="161.9" r="12" data-tip="pool_8 · c=32 · 361.5"/><circle class="pt" cx="520.0" cy="161.9" r="4" fill="var(--series-3)" data-tip="pool_8 · c=64 · 361.7"/><circle class="hit" cx="520.0" cy="161.9" r="12" data-tip="pool_8 · c=64 · 361.7"/><text class="dlabel" x="528.0" y="163.4" dy="4">pool_8</text><path d="M56.0 160.9 L520.0 174.5" fill="none" stroke="var(--series-4)" stroke-width="2" stroke-dasharray="8 3 2 3" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="160.9" r="4" fill="var(--series-4)" data-tip="leastconn · c=32 · 365.3"/><circle class="hit" cx="56.0" cy="160.9" r="12" data-tip="leastconn · c=32 · 365.3"/><circle class="pt" cx="520.0" cy="174.5" r="4" fill="var(--series-4)" data-tip="leastconn · c=64 · 315.1"/><circle class="hit" cx="520.0" cy="174.5" r="12" data-tip="leastconn · c=64 · 315.1"/><text class="dlabel" x="528.0" y="179.0" dy="4">leastconn</text></svg></figure><figure><figcaption>p95 задержки, мс</figcaption><div class="legend"><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-1)" stroke-width="2" stroke-dasharray=""/></svg>baseline_scan</span><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-2)" stroke-width="2" stroke-dasharray="6 3"/></svg>cache_version</span><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-3)" stroke-width="2" stroke-dasharray="2 3"/></svg>pool_8</span><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-4)" stroke-width="2" stroke-dasharray="8 3 2 3"/></svg>leastconn</span></div><svg viewBox="0 0 640 300" role="img" aria-label="p95 задержки, мс"><line class="grid" x1="56" x2="520" y1="260.0" y2="260.0"/><text class="tick" x="50" y="260.0" text-anchor="end" dy="4">0</text><line class="grid" x1="56" x2="520" y1="210.8" y2="210.8"/><text class="tick" x="50" y="210.8" text-anchor="end" dy="4">100</text><line class="grid" x1="56" x2="520" y1="161.6" y2="161.6"/><text class="tick" x="50" y="161.6" text-anchor="end" dy="4">200</text><line class="grid" x1="56" x2="520" y1="112.4" y2="112.4"/><text class="tick" x="50" y="112.4" text-anchor="end" dy="4">300</text><line class="grid" x1="56" x2="520" y1="63.2" y2="63.2"/><text class="tick" x="50" y="63.2" text-anchor="end" dy="4">400</text><line class="axis" x1="56" x2="520" y1="260" y2="260"/><text class="tick" x="56.0" y="276" text-anchor="middle">32</text><text class="tick" x="520.0" y="276" text-anchor="middle">64</text><text class="tick" x="288" y="296" text-anchor="middle">параллелизм (closed-loop воркеры)</text><text class="tick" x="56" y="12">мс</text><path d="M56.0 156.3 L520.0 52.7" fill="none" stroke="var(--series-1)" stroke-width="2" stroke-dasharray="" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="156.3" r="4" fill="var(--series-1)" data-tip="baseline_scan · c=32 · 210.7"/><circle class="hit" cx="56.0" cy="156.3" r="12" data-tip="baseline_scan · c=32 · 210.7"/><circle class="pt" cx="520.0" cy="52.7" r="4" fill="var(--series-1)" data-tip="baseline_scan · c=64 · 421.5"/><circle class="hit" cx="520.0" cy="52.7" r="12" data-tip="baseline_scan · c=64 · 421.5"/><text class="dlabel" x="528.0" y="48.2" dy="4">baseline_scan</text><path d="M56.0 195.2 L520.0 140.0" fill="none" stroke="var(--series-2)" stroke-width="2" stroke-dasharray="6 3" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="195.2" r="4" fill="var(--series-2)" data-tip="cache_version · c=32 · 131.7"/><circle class="hit" cx="56.0" cy="195.2" r="12" data-tip="cache_version · c=32 · 131.7"/><circle class="pt" cx="520.0" cy="140.0" r="4" fill="var(--series-2)" data-tip="cache_version · c=64 · 243.8"/><circle class="hit" cx="520.0" cy="140.0" r="12" data-tip="cache_version · c=64 · 243.8"/><text class="dlabel" x="528.0" y="138.5" dy="4">cache_version</text><path d="M56.0 154.9 L520.0 56.9" fill="none" stroke="var(--series-3)" stroke-width="2" stroke-dasharray="2 3" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="154.9" r="4" fill="var(--series-3)" data-tip="pool_8 · c=32 · 213.6"/><circle class="hit" cx="56.0" cy="154.9" r="12" data-tip="pool_8 · c=32 · 213.6"/><circle class="pt" cx="520.0" cy="56.9" r="4" fill="var(--series-3)" data-tip="pool_8 · c=64 · 412.9"/><circle class="hit" cx="520.0" cy="56.9" r="12" data-tip="pool_8 · c=64 · 412.9"/><text class="dlabel" x="528.0" y="58.4" dy="4">pool_8</text><path d="M56.0 159.3 L520.0 38.2" fill="none" stroke="var(--series-4)" stroke-width="2" stroke-dasharray="8 3 2 3" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="159.3" r="4" fill="var(--series-4)" data-tip="leastconn · c=32 · 204.7"/><circle class="hit" cx="56.0" cy="159.3" r="12" data-tip="leastconn · c=32 · 204.7"/><circle class="pt" cx="520.0" cy="38.2" r="4" fill="var(--series-4)" data-tip="leastconn · c=64 · 450.9"/><circle class="hit" cx="520.0" cy="38.2" r="12" data-tip="leastconn · c=64 · 450.9"/><text class="dlabel" x="528.0" y="42.7" dy="4">leastconn</text></svg></figure></div><div class="wrap"><table><thead><tr><th>config</th><th>пик RPS</th><th>к первой</th><th>c пика</th><th>c насыщения</th><th>узкое место</th><th>CPU хоста</th><th>pool empty / wait ms</th></tr></thead><tbody><tr><td>baseline_scan</td><td>374.5</td><td>1.00×</td><td>32</td><td>64</td><td>redis (0.99) — насыщена</td><td>76%</td><td>0.000 / 0.01</td></tr><tr><td>cache_version</td><td>817.6</td><td>2.18×</td><td>64</td><td>64</td><td>postgres (0.76)</td><td>79%</td><td>0.103 / 0.65</td></tr><tr><td>pool_8</td><td>361.7</td><td>0.97×</td><td>64</td><td>64</td><td>redis (0.97) — насыщена</td><td>73%</td><td>0.012 / 0.39</td></tr><tr><td>leastconn</td><td>365.3</td><td>0.98×</td><td>32</td><td>64</td><td>redis (1.00) — насыщена</td><td>70%</td><td>0.000 / 0.00</td></tr></tbody></table></div><h3>Кандидаты против baseline_scan</h3><div class="wrap"><table><thead><tr><th>кандидат</th><th>c</th><th>ΔRPS %</th><th>Δp95 %</th><th>повторы b/c</th><th>подтверждено</th></tr></thead><tbody><tr><td>cache_version</td><td>64</td><td>125.8</td><td>-42.1</td><td>3/3</td><td>да</td></tr><tr><td>pool_8</td><td>64</td><td>-0.1</td><td>-2.0</td><td>3/3</td><td>нет</td></tr><tr><td>leastconn</td><td>64</td><td>-13.0</td><td>7.0</td><td>3/3</td><td>нет</td></tr></tbody></table></div><details><summary>Все точки серии</summary><div class="wrap"><table><thead><tr><th>config</th><th>c</th><th>repeats</th><th>ok_rps</th><th>rps_min</th><th>rps_max</th><th>write_rps</th><th>read_rps</th><th>p50_ms</th><th>p95_ms</th><th>p99_ms</th><th>err</th><th>util_api</th><th>util_pg</th><th>util_redis</th><th>util_lb</th><th>host_cores</th><th>pool_empty</th><th>pool_wait_ms</th><th>pg_active</th></tr></thead><tbody><tr><td>baseline_scan</td><td>32</td><td>3</td><td>374.5</td><td>367.3</td><td>374.7</td><td>185.8</td><td>187.5</td><td>49.48</td><td>210.73</td><td>259.88</td><td>0.0000</td><td>0.37</td><td>0.22</td><td>0.99</td><td>0.10</td><td>1.52/2</td><td>0.000</td><td>0.01</td><td>2</td></tr><tr><td>baseline_scan</td><td>64</td><td>3</td><td>362.1</td><td>357.8</td><td>391.1</td><td>179.5</td><td>182.7</td><td>49.47</td><td>421.49</td><td>490.89</td><td>0.0000</td><td>0.38</td><td>0.21</td><td>0.99</td><td>0.10</td><td>1.52/2</td><td>0.000</td><td>0.01</td><td>2</td></tr><tr><td>cache_version</td><td>32</td><td>3</td><td>721.6</td><td>670.7</td><td>790.6</td><td>357.4</td><td>364.2</td><td>28.89</td><td>131.66</td><td>234.13</td><td>0.0000</td><td>0.29</td><td>0.82</td><td>0.15</td><td>0.17</td><td>1.59/2</td><td>0.001</td><td>0.01</td><td>31</td></tr><tr><td>cache_version</td><td>64</td><td>3</td><td>817.6</td><td>781.9</td><td>870.0</td><td>410.5</td><td>407.1</td><td>47.20</td><td>243.84</td><td>516.49</td><td>0.0000</td><td>0.31</td><td>0.76</td><td>0.21</td><td>0.18</td><td>1.59/2</td><td>0.103</td><td>0.65</td><td>58</td></tr><tr><td>pool_8</td><td>32</td><td>3</td><td>361.5</td><td>270.6</td><td>395.8</td><td>181.5</td><td>179.9</td><td>80.97</td><td>213.58</td><td>259.73</td><td>0.0000</td><td>0.37</td><td>0.22</td><td>1.01</td><td>0.09</td><td>1.53/2</td><td>0.004</td><td>0.02</td><td>0</td></tr><tr><td>pool_8</td><td>64</td><td>3</td><td>361.7</td><td>308.7</td><td>388.8</td><td>180.5</td><td>181.2</td><td>111.06</td><td>412.93</td><td>635.54</td><td>0.0000</td><td>0.36</td><td>0.21</td><td>0.97</td><td>0.09</td><td>1.46/2</td><td>0.012</td><td>0.39</td><td>3</td></tr><tr><td>leastconn</td><td>32</td><td>3</td><td>365.3</td><td>361.9</td><td>366.3</td><td>181.6</td><td>183.5</td><td>49.28</td><td>204.72</td><td>245.42</td><td>0.0000</td><td>0.36</td><td>0.21</td><td>1.00</td><td>0.09</td><td>1.47/2</td><td>0.000</td><td>0.00</td><td>2</td></tr><tr><td>leastconn</td><td>64</td><td>3</td><td>315.1</td><td>313.0</td><td>337.1</td><td>157.5</td><td>157.6</td><td>221.25</td><td>450.90</td><td>512.51</td><td>0.0000</td><td>0.32</td><td>0.20</td><td>1.00</td><td>0.09</td><td>1.39/2</td><td>0.000</td><td>0.00</td><td>0</td></tr></tbody></table></div></details><h2>E_scale_out_after_fix — Рост реплик после улучшения (CACHE_INVALIDATION=version), реплики по 0.5 CPU</h2><p><b>Гипотеза:</b> После снятия упора в Redis рост реплик снова увеличивает RPS, пока не насытится следующая общая зависимость (ожидаем PostgreSQL) или CPU хоста.</p><div class="charts"><figure><figcaption>Успешные RPS</figcaption><div class="legend"><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-1)" stroke-width="2" stroke-dasharray=""/></svg>1x0.50</span><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-2)" stroke-width="2" stroke-dasharray="6 3"/></svg>2x0.50</span><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-3)" stroke-width="2" stroke-dasharray="2 3"/></svg>4x0.50</span></div><svg viewBox="0 0 640 300" role="img" aria-label="Успешные RPS"><line class="grid" x1="56" x2="520" y1="260.0" y2="260.0"/><text class="tick" x="50" y="260.0" text-anchor="end" dy="4">0</text><line class="grid" x1="56" x2="520" y1="185.9" y2="185.9"/><text class="tick" x="50" y="185.9" text-anchor="end" dy="4">200</text><line class="grid" x1="56" x2="520" y1="111.8" y2="111.8"/><text class="tick" x="50" y="111.8" text-anchor="end" dy="4">400</text><line class="grid" x1="56" x2="520" y1="37.8" y2="37.8"/><text class="tick" x="50" y="37.8" text-anchor="end" dy="4">600</text><line class="axis" x1="56" x2="520" y1="260" y2="260"/><text class="tick" x="56.0" y="276" text-anchor="middle">4</text><text class="tick" x="288.0" y="276" text-anchor="middle">16</text><text class="tick" x="520.0" y="276" text-anchor="middle">64</text><text class="tick" x="288" y="296" text-anchor="middle">параллелизм (closed-loop воркеры)</text><text class="tick" x="56" y="12">ok RPS</text><path d="M56.0 79.3 L288.0 64.7 L520.0 65.2" fill="none" stroke="var(--series-1)" stroke-width="2" stroke-dasharray="" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="79.3" r="4" fill="var(--series-1)" data-tip="1x0.50 · c=4 · 487.9"/><circle class="hit" cx="56.0" cy="79.3" r="12" data-tip="1x0.50 · c=4 · 487.9"/><circle class="pt" cx="288.0" cy="64.7" r="4" fill="var(--series-1)" data-tip="1x0.50 · c=16 · 527.3"/><circle class="hit" cx="288.0" cy="64.7" r="12" data-tip="1x0.50 · c=16 · 527.3"/><circle class="pt" cx="520.0" cy="65.2" r="4" fill="var(--series-1)" data-tip="1x0.50 · c=64 · 525.9"/><circle class="hit" cx="520.0" cy="65.2" r="12" data-tip="1x0.50 · c=64 · 525.9"/><text class="dlabel" x="528.0" y="60.7" dy="4">1x0.50</text><path d="M56.0 38.2 L288.0 40.3 L520.0 52.2" fill="none" stroke="var(--series-2)" stroke-width="2" stroke-dasharray="6 3" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="38.2" r="4" fill="var(--series-2)" data-tip="2x0.50 · c=4 · 598.9"/><circle class="hit" cx="56.0" cy="38.2" r="12" data-tip="2x0.50 · c=4 · 598.9"/><circle class="pt" cx="288.0" cy="40.3" r="4" fill="var(--series-2)" data-tip="2x0.50 · c=16 · 593.3"/><circle class="hit" cx="288.0" cy="40.3" r="12" data-tip="2x0.50 · c=16 · 593.3"/><circle class="pt" cx="520.0" cy="52.2" r="4" fill="var(--series-2)" data-tip="2x0.50 · c=64 · 561.0"/><circle class="hit" cx="520.0" cy="52.2" r="12" data-tip="2x0.50 · c=64 · 561.0"/><text class="dlabel" x="528.0" y="50.7" dy="4">2x0.50</text><path d="M56.0 56.2 L288.0 60.5 L520.0 69.9" fill="none" stroke="var(--series-3)" stroke-width="2" stroke-dasharray="2 3" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="56.2" r="4" fill="var(--series-3)" data-tip="4x0.50 · c=4 · 550.3"/><circle class="hit" cx="56.0" cy="56.2" r="12" data-tip="4x0.50 · c=4 · 550.3"/><circle class="pt" cx="288.0" cy="60.5" r="4" fill="var(--series-3)" data-tip="4x0.50 · c=16 · 538.7"/><circle class="hit" cx="288.0" cy="60.5" r="12" data-tip="4x0.50 · c=16 · 538.7"/><circle class="pt" cx="520.0" cy="69.9" r="4" fill="var(--series-3)" data-tip="4x0.50 · c=64 · 513.3"/><circle class="hit" cx="520.0" cy="69.9" r="12" data-tip="4x0.50 · c=64 · 513.3"/><text class="dlabel" x="528.0" y="71.4" dy="4">4x0.50</text></svg></figure><figure><figcaption>p95 задержки, мс</figcaption><div class="legend"><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-1)" stroke-width="2" stroke-dasharray=""/></svg>1x0.50</span><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-2)" stroke-width="2" stroke-dasharray="6 3"/></svg>2x0.50</span><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-3)" stroke-width="2" stroke-dasharray="2 3"/></svg>4x0.50</span></div><svg viewBox="0 0 640 300" role="img" aria-label="p95 задержки, мс"><line class="grid" x1="56" x2="520" y1="260.0" y2="260.0"/><text class="tick" x="50" y="260.0" text-anchor="end" dy="4">0</text><line class="grid" x1="56" x2="520" y1="203.4" y2="203.4"/><text class="tick" x="50" y="203.4" text-anchor="end" dy="4">100</text><line class="grid" x1="56" x2="520" y1="146.8" y2="146.8"/><text class="tick" x="50" y="146.8" text-anchor="end" dy="4">200</text><line class="grid" x1="56" x2="520" y1="90.2" y2="90.2"/><text class="tick" x="50" y="90.2" text-anchor="end" dy="4">300</text><line class="grid" x1="56" x2="520" y1="33.7" y2="33.7"/><text class="tick" x="50" y="33.7" text-anchor="end" dy="4">400</text><line class="axis" x1="56" x2="520" y1="260" y2="260"/><text class="tick" x="56.0" y="276" text-anchor="middle">4</text><text class="tick" x="288.0" y="276" text-anchor="middle">16</text><text class="tick" x="520.0" y="276" text-anchor="middle">64</text><text class="tick" x="288" y="296" text-anchor="middle">параллелизм (closed-loop воркеры)</text><text class="tick" x="56" y="12">мс</text><path d="M56.0 243.9 L288.0 222.9 L520.0 158.4" fill="none" stroke="var(--series-1)" stroke-width="2" stroke-dasharray="" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="243.9" r="4" fill="var(--series-1)" data-tip="1x0.50 · c=4 · 28.4"/><circle class="hit" cx="56.0" cy="243.9" r="12" data-tip="1x0.50 · c=4 · 28.4"/><circle class="pt" cx="288.0" cy="222.9" r="4" fill="var(--series-1)" data-tip="1x0.50 · c=16 · 65.5"/><circle class="hit" cx="288.0" cy="222.9" r="12" data-tip="1x0.50 · c=16 · 65.5"/><circle class="pt" cx="520.0" cy="158.4" r="4" fill="var(--series-1)" data-tip="1x0.50 · c=64 · 179.6"/><circle class="hit" cx="520.0" cy="158.4" r="12" data-tip="1x0.50 · c=64 · 179.6"/><text class="dlabel" x="528.0" y="153.9" dy="4">1x0.50</text><path d="M56.0 253.3 L288.0 227.5 L520.0 121.8" fill="none" stroke="var(--series-2)" stroke-width="2" stroke-dasharray="6 3" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="253.3" r="4" fill="var(--series-2)" data-tip="2x0.50 · c=4 · 11.9"/><circle class="hit" cx="56.0" cy="253.3" r="12" data-tip="2x0.50 · c=4 · 11.9"/><circle class="pt" cx="288.0" cy="227.5" r="4" fill="var(--series-2)" data-tip="2x0.50 · c=16 · 57.4"/><circle class="hit" cx="288.0" cy="227.5" r="12" data-tip="2x0.50 · c=16 · 57.4"/><circle class="pt" cx="520.0" cy="121.8" r="4" fill="var(--series-2)" data-tip="2x0.50 · c=64 · 244.1"/><circle class="hit" cx="520.0" cy="121.8" r="12" data-tip="2x0.50 · c=64 · 244.1"/><text class="dlabel" x="528.0" y="120.3" dy="4">2x0.50</text><path d="M56.0 252.0 L288.0 223.5 L520.0 38.2" fill="none" stroke="var(--series-3)" stroke-width="2" stroke-dasharray="2 3" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="252.0" r="4" fill="var(--series-3)" data-tip="4x0.50 · c=4 · 14.2"/><circle class="hit" cx="56.0" cy="252.0" r="12" data-tip="4x0.50 · c=4 · 14.2"/><circle class="pt" cx="288.0" cy="223.5" r="4" fill="var(--series-3)" data-tip="4x0.50 · c=16 · 64.6"/><circle class="hit" cx="288.0" cy="223.5" r="12" data-tip="4x0.50 · c=16 · 64.6"/><circle class="pt" cx="520.0" cy="38.2" r="4" fill="var(--series-3)" data-tip="4x0.50 · c=64 · 392.0"/><circle class="hit" cx="520.0" cy="38.2" r="12" data-tip="4x0.50 · c=64 · 392.0"/><text class="dlabel" x="528.0" y="39.7" dy="4">4x0.50</text></svg></figure></div><div class="wrap"><table><thead><tr><th>config</th><th>пик RPS</th><th>к первой</th><th>c пика</th><th>c насыщения</th><th>узкое место</th><th>CPU хоста</th><th>pool empty / wait ms</th></tr></thead><tbody><tr><td>1x0.50</td><td>527.3</td><td>1.00×</td><td>16</td><td>16</td><td>api (1.01) — насыщена</td><td>55%</td><td>0.000 / 0.00</td></tr><tr><td>2x0.50</td><td>598.9</td><td>1.14×</td><td>4</td><td>16</td><td>api (0.76)</td><td>81%</td><td>0.000 / 0.00</td></tr><tr><td>4x0.50</td><td>550.3</td><td>1.04×</td><td>4</td><td>16</td><td>postgres (0.55)</td><td>77%</td><td>0.000 / 0.00</td></tr></tbody></table></div><details><summary>Все точки серии</summary><div class="wrap"><table><thead><tr><th>config</th><th>c</th><th>repeats</th><th>ok_rps</th><th>rps_min</th><th>rps_max</th><th>write_rps</th><th>read_rps</th><th>p50_ms</th><th>p95_ms</th><th>p99_ms</th><th>err</th><th>util_api</th><th>util_pg</th><th>util_redis</th><th>util_lb</th><th>host_cores</th><th>pool_empty</th><th>pool_wait_ms</th><th>pg_active</th></tr></thead><tbody><tr><td>1x0.50</td><td>4</td><td>3</td><td>487.9</td><td>487.5</td><td>495.9</td><td>248.0</td><td>243.4</td><td>5.63</td><td>28.41</td><td>38.24</td><td>0.0000</td><td>1.00</td><td>0.42</td><td>0.18</td><td>0.18</td><td>1.11/2</td><td>0.000</td><td>0.00</td><td>2</td></tr><tr><td>1x0.50</td><td>16</td><td>3</td><td>527.3</td><td>526.0</td><td>530.6</td><td>264.7</td><td>265.9</td><td>24.38</td><td>65.49</td><td>82.53</td><td>0.0000</td><td>1.01</td><td>0.43</td><td>0.16</td><td>0.17</td><td>1.11/2</td><td>0.000</td><td>0.00</td><td>3</td></tr><tr><td>1x0.50</td><td>64</td><td>3</td><td>525.9</td><td>525.7</td><td>549.9</td><td>259.5</td><td>269.3</td><td>116.35</td><td>179.63</td><td>207.68</td><td>0.0000</td><td>1.00</td><td>0.49</td><td>0.18</td><td>0.18</td><td>1.21/2</td><td>0.977</td><td>20.57</td><td>3</td></tr><tr><td>2x0.50</td><td>4</td><td>3</td><td>598.9</td><td>593.0</td><td>634.0</td><td>304.7</td><td>298.5</td><td>5.76</td><td>11.88</td><td>20.15</td><td>0.0000</td><td>0.77</td><td>0.51</td><td>0.27</td><td>0.20</td><td>1.53/2</td><td>0.000</td><td>0.00</td><td>2</td></tr><tr><td>2x0.50</td><td>16</td><td>3</td><td>593.3</td><td>561.6</td><td>637.1</td><td>296.5</td><td>296.8</td><td>23.48</td><td>57.36</td><td>81.29</td><td>0.0000</td><td>0.76</td><td>0.57</td><td>0.36</td><td>0.19</td><td>1.61/2</td><td>0.000</td><td>0.00</td><td>8</td></tr><tr><td>2x0.50</td><td>64</td><td>3</td><td>561.0</td><td>531.3</td><td>595.4</td><td>278.7</td><td>282.3</td><td>101.03</td><td>244.15</td><td>335.72</td><td>0.0000</td><td>0.73</td><td>0.62</td><td>0.28</td><td>0.18</td><td>1.57/2</td><td>0.753</td><td>12.09</td><td>35</td></tr><tr><td>4x0.50</td><td>4</td><td>3</td><td>550.3</td><td>548.2</td><td>553.0</td><td>279.0</td><td>273.3</td><td>6.21</td><td>14.15</td><td>22.45</td><td>0.0000</td><td>0.41</td><td>0.53</td><td>0.21</td><td>0.20</td><td>1.54/2</td><td>0.000</td><td>0.00</td><td>3</td></tr><tr><td>4x0.50</td><td>16</td><td>3</td><td>538.7</td><td>535.8</td><td>545.1</td><td>266.4</td><td>272.3</td><td>24.95</td><td>64.57</td><td>96.19</td><td>0.0000</td><td>0.40</td><td>0.55</td><td>0.21</td><td>0.20</td><td>1.54/2</td><td>0.000</td><td>0.00</td><td>8</td></tr><tr><td>4x0.50</td><td>64</td><td>3</td><td>513.3</td><td>465.3</td><td>527.5</td><td>260.6</td><td>252.7</td><td>78.12</td><td>392.00</td><td>829.03</td><td>0.0000</td><td>0.37</td><td>0.63</td><td>0.19</td><td>0.17</td><td>1.57/2</td><td>0.120</td><td>1.57</td><td>59</td></tr></tbody></table></div></details><h2>C_shared_resources — 4×0.5 CPU API, меняем ресурсы общих зависимостей</h2><p><b>Гипотеза:</b> Если насыщение B вызвано общей зависимостью, увеличение её CPU поднимает пиковый RPS, а увеличение CPU других зависимостей — нет.</p><div class="charts"><figure><figcaption>Успешные RPS</figcaption><div class="legend"><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-1)" stroke-width="2" stroke-dasharray=""/></svg>pg1_lb0.5_redis0.5</span><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-2)" stroke-width="2" stroke-dasharray="6 3"/></svg>pg2</span><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-3)" stroke-width="2" stroke-dasharray="2 3"/></svg>lb1</span><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-4)" stroke-width="2" stroke-dasharray="8 3 2 3"/></svg>redis1</span></div><svg viewBox="0 0 640 300" role="img" aria-label="Успешные RPS"><line class="grid" x1="56" x2="520" y1="260.0" y2="260.0"/><text class="tick" x="50" y="260.0" text-anchor="end" dy="4">0</text><line class="grid" x1="56" x2="520" y1="213.6" y2="213.6"/><text class="tick" x="50" y="213.6" text-anchor="end" dy="4">100</text><line class="grid" x1="56" x2="520" y1="167.2" y2="167.2"/><text class="tick" x="50" y="167.2" text-anchor="end" dy="4">200</text><line class="grid" x1="56" x2="520" y1="120.8" y2="120.8"/><text class="tick" x="50" y="120.8" text-anchor="end" dy="4">300</text><line class="grid" x1="56" x2="520" y1="74.4" y2="74.4"/><text class="tick" x="50" y="74.4" text-anchor="end" dy="4">400</text><line class="grid" x1="56" x2="520" y1="27.9" y2="27.9"/><text class="tick" x="50" y="27.9" text-anchor="end" dy="4">500</text><line class="axis" x1="56" x2="520" y1="260" y2="260"/><text class="tick" x="56.0" y="276" text-anchor="middle">16</text><text class="tick" x="520.0" y="276" text-anchor="middle">64</text><text class="tick" x="288" y="296" text-anchor="middle">параллелизм (closed-loop воркеры)</text><text class="tick" x="56" y="12">ok RPS</text><path d="M56.0 94.4 L520.0 69.1" fill="none" stroke="var(--series-1)" stroke-width="2" stroke-dasharray="" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="94.4" r="4" fill="var(--series-1)" data-tip="pg1_lb0.5_redis0.5 · c=16 · 356.9"/><circle class="hit" cx="56.0" cy="94.4" r="12" data-tip="pg1_lb0.5_redis0.5 · c=16 · 356.9"/><circle class="pt" cx="520.0" cy="69.1" r="4" fill="var(--series-1)" data-tip="pg1_lb0.5_redis0.5 · c=64 · 411.3"/><circle class="hit" cx="520.0" cy="69.1" r="12" data-tip="pg1_lb0.5_redis0.5 · c=64 · 411.3"/><text class="dlabel" x="528.0" y="64.6" dy="4">pg1_lb0.5_redis0.5</text><path d="M56.0 61.5 L520.0 46.7" fill="none" stroke="var(--series-2)" stroke-width="2" stroke-dasharray="6 3" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="61.5" r="4" fill="var(--series-2)" data-tip="pg2 · c=16 · 427.7"/><circle class="hit" cx="56.0" cy="61.5" r="12" data-tip="pg2 · c=16 · 427.7"/><circle class="pt" cx="520.0" cy="46.7" r="4" fill="var(--series-2)" data-tip="pg2 · c=64 · 459.5"/><circle class="hit" cx="520.0" cy="46.7" r="12" data-tip="pg2 · c=64 · 459.5"/><text class="dlabel" x="528.0" y="45.2" dy="4">pg2</text><path d="M56.0 62.7 L520.0 54.4" fill="none" stroke="var(--series-3)" stroke-width="2" stroke-dasharray="2 3" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="62.7" r="4" fill="var(--series-3)" data-tip="lb1 · c=16 · 425.0"/><circle class="hit" cx="56.0" cy="62.7" r="12" data-tip="lb1 · c=16 · 425.0"/><circle class="pt" cx="520.0" cy="54.4" r="4" fill="var(--series-3)" data-tip="lb1 · c=64 · 442.9"/><circle class="hit" cx="520.0" cy="54.4" r="12" data-tip="lb1 · c=64 · 442.9"/><text class="dlabel" x="528.0" y="55.9" dy="4">lb1</text><path d="M56.0 54.7 L520.0 38.2" fill="none" stroke="var(--series-4)" stroke-width="2" stroke-dasharray="8 3 2 3" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="54.7" r="4" fill="var(--series-4)" data-tip="redis1 · c=16 · 442.4"/><circle class="hit" cx="56.0" cy="54.7" r="12" data-tip="redis1 · c=16 · 442.4"/><circle class="pt" cx="520.0" cy="38.2" r="4" fill="var(--series-4)" data-tip="redis1 · c=64 · 477.9"/><circle class="hit" cx="520.0" cy="38.2" r="12" data-tip="redis1 · c=64 · 477.9"/><text class="dlabel" x="528.0" y="42.7" dy="4">redis1</text></svg></figure><figure><figcaption>p95 задержки, мс</figcaption><div class="legend"><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-1)" stroke-width="2" stroke-dasharray=""/></svg>pg1_lb0.5_redis0.5</span><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-2)" stroke-width="2" stroke-dasharray="6 3"/></svg>pg2</span><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-3)" stroke-width="2" stroke-dasharray="2 3"/></svg>lb1</span><span class="key"><svg width="22" height="10"><line x1="1" x2="21" y1="5" y2="5" stroke="var(--series-4)" stroke-width="2" stroke-dasharray="8 3 2 3"/></svg>redis1</span></div><svg viewBox="0 0 640 300" role="img" aria-label="p95 задержки, мс"><line class="grid" x1="56" x2="520" y1="260.0" y2="260.0"/><text class="tick" x="50" y="260.0" text-anchor="end" dy="4">0</text><line class="grid" x1="56" x2="520" y1="198.5" y2="198.5"/><text class="tick" x="50" y="198.5" text-anchor="end" dy="4">100</text><line class="grid" x1="56" x2="520" y1="137.0" y2="137.0"/><text class="tick" x="50" y="137.0" text-anchor="end" dy="4">200</text><line class="grid" x1="56" x2="520" y1="75.5" y2="75.5"/><text class="tick" x="50" y="75.5" text-anchor="end" dy="4">300</text><line class="axis" x1="56" x2="520" y1="260" y2="260"/><text class="tick" x="56.0" y="276" text-anchor="middle">16</text><text class="tick" x="520.0" y="276" text-anchor="middle">64</text><text class="tick" x="288" y="296" text-anchor="middle">параллелизм (closed-loop воркеры)</text><text class="tick" x="56" y="12">мс</text><path d="M56.0 192.7 L520.0 38.2" fill="none" stroke="var(--series-1)" stroke-width="2" stroke-dasharray="" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="192.7" r="4" fill="var(--series-1)" data-tip="pg1_lb0.5_redis0.5 · c=16 · 109.4"/><circle class="hit" cx="56.0" cy="192.7" r="12" data-tip="pg1_lb0.5_redis0.5 · c=16 · 109.4"/><circle class="pt" cx="520.0" cy="38.2" r="4" fill="var(--series-1)" data-tip="pg1_lb0.5_redis0.5 · c=64 · 360.6"/><circle class="hit" cx="520.0" cy="38.2" r="12" data-tip="pg1_lb0.5_redis0.5 · c=64 · 360.6"/><text class="dlabel" x="528.0" y="33.7" dy="4">pg1_lb0.5_redis0.5</text><path d="M56.0 205.2 L520.0 63.5" fill="none" stroke="var(--series-2)" stroke-width="2" stroke-dasharray="6 3" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="205.2" r="4" fill="var(--series-2)" data-tip="pg2 · c=16 · 89.2"/><circle class="hit" cx="56.0" cy="205.2" r="12" data-tip="pg2 · c=16 · 89.2"/><circle class="pt" cx="520.0" cy="63.5" r="4" fill="var(--series-2)" data-tip="pg2 · c=64 · 319.5"/><circle class="hit" cx="520.0" cy="63.5" r="12" data-tip="pg2 · c=64 · 319.5"/><text class="dlabel" x="528.0" y="62.0" dy="4">pg2</text><path d="M56.0 203.7 L520.0 55.2" fill="none" stroke="var(--series-3)" stroke-width="2" stroke-dasharray="2 3" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="203.7" r="4" fill="var(--series-3)" data-tip="lb1 · c=16 · 91.5"/><circle class="hit" cx="56.0" cy="203.7" r="12" data-tip="lb1 · c=16 · 91.5"/><circle class="pt" cx="520.0" cy="55.2" r="4" fill="var(--series-3)" data-tip="lb1 · c=64 · 332.9"/><circle class="hit" cx="520.0" cy="55.2" r="12" data-tip="lb1 · c=64 · 332.9"/><text class="dlabel" x="528.0" y="56.7" dy="4">lb1</text><path d="M56.0 205.9 L520.0 71.6" fill="none" stroke="var(--series-4)" stroke-width="2" stroke-dasharray="8 3 2 3" stroke-linejoin="round" stroke-linecap="round"/><circle class="pt" cx="56.0" cy="205.9" r="4" fill="var(--series-4)" data-tip="redis1 · c=16 · 88.0"/><circle class="hit" cx="56.0" cy="205.9" r="12" data-tip="redis1 · c=16 · 88.0"/><circle class="pt" cx="520.0" cy="71.6" r="4" fill="var(--series-4)" data-tip="redis1 · c=64 · 306.2"/><circle class="hit" cx="520.0" cy="71.6" r="12" data-tip="redis1 · c=64 · 306.2"/><text class="dlabel" x="528.0" y="76.1" dy="4">redis1</text></svg></figure></div><div class="wrap"><table><thead><tr><th>config</th><th>пик RPS</th><th>к первой</th><th>c пика</th><th>c насыщения</th><th>узкое место</th><th>CPU хоста</th><th>pool empty / wait ms</th></tr></thead><tbody><tr><td>pg1_lb0.5_redis0.5</td><td>411.3</td><td>1.00×</td><td>64</td><td>64</td><td>redis (0.99) — насыщена</td><td>79%</td><td>0.000 / 0.00</td></tr><tr><td>pg2</td><td>459.5</td><td>1.12×</td><td>64</td><td>64</td><td>redis (0.97) — насыщена</td><td>81%</td><td>0.000 / 0.00</td></tr><tr><td>lb1</td><td>442.9</td><td>1.08×</td><td>64</td><td>64</td><td>redis (0.97) — насыщена</td><td>81%</td><td>0.000 / 0.00</td></tr><tr><td>redis1</td><td>477.9</td><td>1.16×</td><td>64</td><td>64</td><td>redis (0.50)</td><td>82%</td><td>0.000 / 0.00</td></tr><tr><td>baseline_again</td><td>457.5</td><td>1.11×</td><td>64</td><td>64</td><td>redis (0.97) — насыщена</td><td>80%</td><td>0.000 / 0.00</td></tr></tbody></table></div><details><summary>Все точки серии</summary><div class="wrap"><table><thead><tr><th>config</th><th>c</th><th>repeats</th><th>ok_rps</th><th>rps_min</th><th>rps_max</th><th>write_rps</th><th>read_rps</th><th>p50_ms</th><th>p95_ms</th><th>p99_ms</th><th>err</th><th>util_api</th><th>util_pg</th><th>util_redis</th><th>util_lb</th><th>host_cores</th><th>pool_empty</th><th>pool_wait_ms</th><th>pg_active</th></tr></thead><tbody><tr><td>pg1_lb0.5_redis0.5</td><td>16</td><td>5</td><td>356.9</td><td>315.1</td><td>405.1</td><td>181.1</td><td>175.7</td><td>39.42</td><td>109.42</td><td>143.12</td><td>0.0000</td><td>0.39</td><td>0.21</td><td>1.00</td><td>0.10</td><td>1.56/2</td><td>0.000</td><td>0.00</td><td>2</td></tr><tr><td>pg1_lb0.5_redis0.5</td><td>64</td><td>5</td><td>411.3</td><td>368.7</td><td>423.7</td><td>206.7</td><td>204.3</td><td>119.17</td><td>360.61</td><td>425.98</td><td>0.0000</td><td>0.41</td><td>0.24</td><td>0.99</td><td>0.10</td><td>1.59/2</td><td>0.000</td><td>0.00</td><td>1</td></tr><tr><td>pg2</td><td>16</td><td>5</td><td>427.7</td><td>425.3</td><td>438.2</td><td>215.0</td><td>212.5</td><td>28.96</td><td>89.15</td><td>110.21</td><td>0.0000</td><td>0.44</td><td>0.11</td><td>0.96</td><td>0.10</td><td>1.64/2</td><td>0.000</td><td>0.00</td><td>1</td></tr><tr><td>pg2</td><td>64</td><td>5</td><td>459.5</td><td>442.3</td><td>472.9</td><td>232.6</td><td>226.9</td><td>146.15</td><td>319.48</td><td>376.06</td><td>0.0000</td><td>0.42</td><td>0.12</td><td>0.97</td><td>0.10</td><td>1.62/2</td><td>0.000</td><td>0.00</td><td>2</td></tr><tr><td>lb1</td><td>16</td><td>5</td><td>425.0</td><td>416.9</td><td>437.7</td><td>214.3</td><td>210.7</td><td>30.42</td><td>91.48</td><td>108.30</td><td>0.0000</td><td>0.44</td><td>0.22</td><td>0.97</td><td>0.05</td><td>1.64/2</td><td>0.000</td><td>0.00</td><td>1</td></tr><tr><td>lb1</td><td>64</td><td>5</td><td>442.9</td><td>420.3</td><td>454.4</td><td>223.1</td><td>218.7</td><td>176.93</td><td>332.93</td><td>382.36</td><td>0.0000</td><td>0.41</td><td>0.24</td><td>0.97</td><td>0.05</td><td>1.62/2</td><td>0.000</td><td>0.00</td><td>1</td></tr><tr><td>redis1</td><td>16</td><td>5</td><td>442.4</td><td>428.1</td><td>447.8</td><td>219.5</td><td>222.9</td><td>21.49</td><td>87.98</td><td>111.23</td><td>0.0000</td><td>0.45</td><td>0.22</td><td>0.48</td><td>0.10</td><td>1.64/2</td><td>0.000</td><td>0.00</td><td>1</td></tr><tr><td>redis1</td><td>64</td><td>5</td><td>477.9</td><td>467.2</td><td>478.9</td><td>240.3</td><td>235.7</td><td>152.74</td><td>306.20</td><td>341.35</td><td>0.0000</td><td>0.43</td><td>0.23</td><td>0.50</td><td>0.10</td><td>1.64/2</td><td>0.000</td><td>0.00</td><td>1</td></tr><tr><td>baseline_again</td><td>16</td><td>5</td><td>427.3</td><td>412.2</td><td>437.1</td><td>212.2</td><td>215.1</td><td>22.91</td><td>91.81</td><td>115.11</td><td>0.0000</td><td>0.44</td><td>0.21</td><td>0.95</td><td>0.09</td><td>1.62/2</td><td>0.000</td><td>0.00</td><td>2</td></tr><tr><td>baseline_again</td><td>64</td><td>5</td><td>457.5</td><td>451.3</td><td>476.3</td><td>230.0</td><td>228.7</td><td>134.21</td><td>313.13</td><td>349.82</td><td>0.0000</td><td>0.42</td><td>0.22</td><td>0.97</td><td>0.10</td><td>1.60/2</td><td>0.000</td><td>0.00</td><td>1</td></tr></tbody></table></div></details><div id="tip"></div></div><script>
const tip=document.getElementById('tip');
document.querySelectorAll('[data-tip]').forEach(el=>{
el.addEventListener('mousemove',e=>{tip.textContent=el.dataset.tip;tip.style.display='block';
tip.style.left=Math.min(e.clientX+12,innerWidth-220)+'px';tip.style.top=(e.clientY+12)+'px'});
el.addEventListener('mouseleave',()=>tip.style.display='none')});
</script></body></html>