docs: add series db plots and host check
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 560" width="720" height="560" font-family='system-ui, -apple-system, "Segoe UI", sans-serif'>
|
||||
<rect x="0" y="0" width="720" height="560" fill="#fcfcfb"/>
|
||||
<text x="24.0" y="30.0" font-size="16" font-weight="600" fill="#52514e" text-anchor="start">CPU по компонентам на R*</text>
|
||||
<text x="24.0" y="52.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="start">Медиана занятых ядер по ячейкам на ступени R*;</text>
|
||||
<text x="24.0" y="70.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="start">«остальное в ВМ» — загрузка ВМ сверх контейнеров стенда</text>
|
||||
<line x1="64.0" y1="476.0" x2="696.0" y2="476.0" stroke="#e1e0d9" stroke-width="1"/>
|
||||
<text x="56.0" y="480.0" font-size="12" font-weight="400" fill="#898781" text-anchor="end">0</text>
|
||||
<line x1="64.0" y1="360.7" x2="696.0" y2="360.7" stroke="#e1e0d9" stroke-width="1"/>
|
||||
<text x="56.0" y="364.7" font-size="12" font-weight="400" fill="#898781" text-anchor="end">5</text>
|
||||
<line x1="64.0" y1="245.3" x2="696.0" y2="245.3" stroke="#e1e0d9" stroke-width="1"/>
|
||||
<text x="56.0" y="249.3" font-size="12" font-weight="400" fill="#898781" text-anchor="end">10</text>
|
||||
<line x1="64.0" y1="130.0" x2="696.0" y2="130.0" stroke="#e1e0d9" stroke-width="1"/>
|
||||
<text x="56.0" y="134.0" font-size="12" font-weight="400" fill="#898781" text-anchor="end">15</text>
|
||||
<line x1="64.0" y1="476.0" x2="696.0" y2="476.0" stroke="#c3c2b7" stroke-width="1"/>
|
||||
<line x1="64.0" y1="199.2" x2="696.0" y2="199.2" stroke="#52514e" stroke-width="1.5" stroke-dasharray="6 4"/>
|
||||
<text x="692.0" y="193.2" font-size="12" font-weight="400" fill="#52514e" text-anchor="end">12 vCPU ВМ</text>
|
||||
<line x1="64.0" y1="337.6" x2="696.0" y2="337.6" stroke="#898781" stroke-width="1.5" stroke-dasharray="2 4"/>
|
||||
<g><title>1x1-pg0.5: реплики API 0.96 ядра (R* 630 запросов/с)</title><rect x="131.0" y="453.8" width="24.0" height="22.2" fill="#2a78d6"/></g>
|
||||
<g><title>1x1-pg0.5: PostgreSQL 0.19 ядра (R* 630 запросов/с)</title><rect x="131.0" y="449.5" width="24.0" height="2.3" fill="#eb6834"/></g>
|
||||
<g><title>1x1-pg0.5: k6 0.15 ядра (R* 630 запросов/с)</title><rect x="131.0" y="444.9" width="24.0" height="1.4" fill="#e87ba4"/></g>
|
||||
<g><title>1x1-pg0.5: остальное в ВМ 0.48 ядра (R* 630 запросов/с)</title><path d="M131.0,442.9 L131.0,437.9 Q131.0,433.9 135.0,433.9 L151.0,433.9 Q155.0,433.9 155.0,437.9 L155.0,442.9 Z" fill="#008300"/></g>
|
||||
<text x="143.0" y="427.9" font-size="12" font-weight="400" fill="#0b0b0b" text-anchor="middle">1.8</text>
|
||||
<text x="143.0" y="494.0" font-size="12" font-weight="400" fill="#898781" text-anchor="middle">1x1-pg0.5</text>
|
||||
<text x="143.0" y="510.0" font-size="12" font-weight="400" fill="#898781" text-anchor="middle">R* 630</text>
|
||||
<g><title>2x1-pg0.5: реплики API 1.92 ядра (R* 1101 запросов/с)</title><rect x="289.0" y="431.6" width="24.0" height="44.4" fill="#2a78d6"/></g>
|
||||
<g><title>2x1-pg0.5: PostgreSQL 0.38 ядра (R* 1101 запросов/с)</title><rect x="289.0" y="422.8" width="24.0" height="6.8" fill="#eb6834"/></g>
|
||||
<g><title>2x1-pg0.5: k6 0.27 ядра (R* 1101 запросов/с)</title><rect x="289.0" y="414.3" width="24.0" height="4.3" fill="#e87ba4"/></g>
|
||||
<g><title>2x1-pg0.5: остальное в ВМ 0.61 ядра (R* 1101 запросов/с)</title><path d="M289.0,412.3 L289.0,404.2 Q289.0,400.2 293.0,400.2 L309.0,400.2 Q313.0,400.2 313.0,404.2 L313.0,412.3 Z" fill="#008300"/></g>
|
||||
<text x="301.0" y="394.2" font-size="12" font-weight="400" fill="#0b0b0b" text-anchor="middle">3.3</text>
|
||||
<text x="301.0" y="494.0" font-size="12" font-weight="400" fill="#898781" text-anchor="middle">2x1-pg0.5</text>
|
||||
<text x="301.0" y="510.0" font-size="12" font-weight="400" fill="#898781" text-anchor="middle">R* 1101</text>
|
||||
<g><title>4x1-pg0.5: реплики API 1.94 ядра (R* 931 запросов/с)</title><rect x="447.0" y="431.3" width="24.0" height="44.7" fill="#2a78d6"/></g>
|
||||
<g><title>4x1-pg0.5: PostgreSQL 0.26 ядра (R* 931 запросов/с)</title><rect x="447.0" y="425.3" width="24.0" height="4.0" fill="#eb6834"/></g>
|
||||
<g><title>4x1-pg0.5: k6 0.24 ядра (R* 931 запросов/с)</title><rect x="447.0" y="417.6" width="24.0" height="3.6" fill="#e87ba4"/></g>
|
||||
<g><title>4x1-pg0.5: остальное в ВМ 0.56 ядра (R* 931 запросов/с)</title><path d="M447.0,415.6 L447.0,408.6 Q447.0,404.6 451.0,404.6 L467.0,404.6 Q471.0,404.6 471.0,408.6 L471.0,415.6 Z" fill="#008300"/></g>
|
||||
<text x="459.0" y="398.6" font-size="12" font-weight="400" fill="#0b0b0b" text-anchor="middle">3.1</text>
|
||||
<text x="459.0" y="494.0" font-size="12" font-weight="400" fill="#898781" text-anchor="middle">4x1-pg0.5</text>
|
||||
<text x="459.0" y="510.0" font-size="12" font-weight="400" fill="#898781" text-anchor="middle">R* 931</text>
|
||||
<g><title>4x1-pg2: реплики API 3.79 ядра (R* 1627 запросов/с)</title><rect x="605.0" y="388.5" width="24.0" height="87.5" fill="#2a78d6"/></g>
|
||||
<g><title>4x1-pg2: PostgreSQL 0.76 ядра (R* 1627 запросов/с)</title><rect x="605.0" y="370.9" width="24.0" height="15.6" fill="#eb6834"/></g>
|
||||
<g><title>4x1-pg2: HAProxy 0.15 ядра (R* 1627 запросов/с)</title><rect x="605.0" y="367.5" width="24.0" height="1.4" fill="#1baf7a"/></g>
|
||||
<g><title>4x1-pg2: k6 0.48 ядра (R* 1627 запросов/с)</title><rect x="605.0" y="355.2" width="24.0" height="9.1" fill="#e87ba4"/></g>
|
||||
<g><title>4x1-pg2: остальное в ВМ 0.58 ядра (R* 1627 запросов/с)</title><path d="M605.0,353.2 L605.0,346.0 Q605.0,342.0 609.0,342.0 L625.0,342.0 Q629.0,342.0 629.0,346.0 L629.0,353.2 Z" fill="#008300"/></g>
|
||||
<text x="617.0" y="336.0" font-size="12" font-weight="400" fill="#0b0b0b" text-anchor="middle">5.8</text>
|
||||
<text x="617.0" y="494.0" font-size="12" font-weight="400" fill="#898781" text-anchor="middle">4x1-pg2</text>
|
||||
<text x="617.0" y="510.0" font-size="12" font-weight="400" fill="#898781" text-anchor="middle">R* 1627</text>
|
||||
<text x="16.0" y="303.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="middle" transform="rotate(-90 16.0 303.0)">Занятые ядра</text>
|
||||
<rect x="64.0" y="89.0" width="12" height="12" rx="2" fill="#2a78d6"/>
|
||||
<text x="86.0" y="99.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="start">реплики API</text>
|
||||
<rect x="175.0" y="89.0" width="12" height="12" rx="2" fill="#eb6834"/>
|
||||
<text x="197.0" y="99.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="start">PostgreSQL</text>
|
||||
<rect x="279.0" y="89.0" width="12" height="12" rx="2" fill="#1baf7a"/>
|
||||
<text x="301.0" y="99.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="start">HAProxy</text>
|
||||
<rect x="362.0" y="89.0" width="12" height="12" rx="2" fill="#eda100"/>
|
||||
<text x="384.0" y="99.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="start">Valkey</text>
|
||||
<rect x="438.0" y="89.0" width="12" height="12" rx="2" fill="#e87ba4"/>
|
||||
<text x="460.0" y="99.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="start">k6</text>
|
||||
<rect x="486.0" y="89.0" width="12" height="12" rx="2" fill="#008300"/>
|
||||
<text x="508.0" y="99.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="start">остальное в ВМ</text>
|
||||
<line x1="64.0" y1="115.0" x2="80.0" y2="115.0" stroke="#898781" stroke-width="2" stroke-dasharray="2 4"/>
|
||||
<text x="86.0" y="119.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="start">6 производительных ядер хоста</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 7.5 KiB |
@@ -0,0 +1,73 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 860 520" width="860" height="520" font-family='system-ui, -apple-system, "Segoe UI", sans-serif'>
|
||||
<rect x="0" y="0" width="860" height="520" fill="#fcfcfb"/>
|
||||
<text x="24.0" y="30.0" font-size="16" font-weight="600" fill="#52514e" text-anchor="start">Серия db: p95 от интенсивности</text>
|
||||
<text x="24.0" y="52.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="start">Метка scaling-db: медиана p95 успешных запросов по повторам на каждом уровне; полые точки — ступени деления</text>
|
||||
<line x1="76.0" y1="456.0" x2="836.0" y2="456.0" stroke="#e1e0d9" stroke-width="1"/>
|
||||
<text x="68.0" y="460.0" font-size="12" font-weight="400" fill="#898781" text-anchor="end">1</text>
|
||||
<line x1="76.0" y1="419.9" x2="836.0" y2="419.9" stroke="#e1e0d9" stroke-width="1"/>
|
||||
<text x="68.0" y="423.9" font-size="12" font-weight="400" fill="#898781" text-anchor="end">2</text>
|
||||
<line x1="76.0" y1="372.1" x2="836.0" y2="372.1" stroke="#e1e0d9" stroke-width="1"/>
|
||||
<text x="68.0" y="376.1" font-size="12" font-weight="400" fill="#898781" text-anchor="end">5</text>
|
||||
<line x1="76.0" y1="336.0" x2="836.0" y2="336.0" stroke="#e1e0d9" stroke-width="1"/>
|
||||
<text x="68.0" y="340.0" font-size="12" font-weight="400" fill="#898781" text-anchor="end">10</text>
|
||||
<line x1="76.0" y1="299.9" x2="836.0" y2="299.9" stroke="#e1e0d9" stroke-width="1"/>
|
||||
<text x="68.0" y="303.9" font-size="12" font-weight="400" fill="#898781" text-anchor="end">20</text>
|
||||
<line x1="76.0" y1="252.1" x2="836.0" y2="252.1" stroke="#e1e0d9" stroke-width="1"/>
|
||||
<text x="68.0" y="256.1" font-size="12" font-weight="400" fill="#898781" text-anchor="end">50</text>
|
||||
<line x1="76.0" y1="216.0" x2="836.0" y2="216.0" stroke="#e1e0d9" stroke-width="1"/>
|
||||
<text x="68.0" y="220.0" font-size="12" font-weight="400" fill="#898781" text-anchor="end">100</text>
|
||||
<line x1="76.0" y1="179.9" x2="836.0" y2="179.9" stroke="#e1e0d9" stroke-width="1"/>
|
||||
<text x="68.0" y="183.9" font-size="12" font-weight="400" fill="#898781" text-anchor="end">200</text>
|
||||
<line x1="76.0" y1="132.1" x2="836.0" y2="132.1" stroke="#e1e0d9" stroke-width="1"/>
|
||||
<text x="68.0" y="136.1" font-size="12" font-weight="400" fill="#898781" text-anchor="end">500</text>
|
||||
<line x1="76.0" y1="96.0" x2="836.0" y2="96.0" stroke="#e1e0d9" stroke-width="1"/>
|
||||
<text x="68.0" y="100.0" font-size="12" font-weight="400" fill="#898781" text-anchor="end">1K</text>
|
||||
<text x="76.0" y="474.0" font-size="12" font-weight="400" fill="#898781" text-anchor="middle">0</text>
|
||||
<text x="266.0" y="474.0" font-size="12" font-weight="400" fill="#898781" text-anchor="middle">500</text>
|
||||
<text x="456.0" y="474.0" font-size="12" font-weight="400" fill="#898781" text-anchor="middle">1K</text>
|
||||
<text x="646.0" y="474.0" font-size="12" font-weight="400" fill="#898781" text-anchor="middle">1.5K</text>
|
||||
<text x="836.0" y="474.0" font-size="12" font-weight="400" fill="#898781" text-anchor="middle">2K</text>
|
||||
<line x1="76.0" y1="456.0" x2="836.0" y2="456.0" stroke="#c3c2b7" stroke-width="1"/>
|
||||
<line x1="76.0" y1="179.9" x2="836.0" y2="179.9" stroke="#52514e" stroke-width="1.5" stroke-dasharray="6 4"/>
|
||||
<text x="82.0" y="173.9" font-size="12" font-weight="400" fill="#52514e" text-anchor="start">SLO p95 200 мс</text>
|
||||
<text x="456.0" y="502.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="middle">Интенсивность, запросов/с</text>
|
||||
<text x="20.0" y="276.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="middle" transform="rotate(-90 20.0 276.0)">p95, мс (логарифмическая шкала)</text>
|
||||
<polyline points="171.0,378.5 266.0,233.6 302.5,210.8 359.1,107.8" fill="none" stroke="#2a78d6" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
|
||||
<g><title>1x1-pg0.5: 250 запросов/с, p95 4.4 мс (повторов 3)</title><circle cx="171.0" cy="378.5" r="7" fill="transparent"/><circle cx="171.0" cy="378.5" r="4.5" fill="#2a78d6" stroke="#fcfcfb" stroke-width="2"/></g>
|
||||
<g><title>1x1-pg0.5: 500 запросов/с, p95 71.4 мс (повторов 3)</title><circle cx="266.0" cy="233.6" r="7" fill="transparent"/><circle cx="266.0" cy="233.6" r="4.5" fill="#2a78d6" stroke="#fcfcfb" stroke-width="2"/></g>
|
||||
<g><title>1x1-pg0.5: 596 запросов/с, p95 110.4 мс (повторов 3)</title><circle cx="302.5" cy="210.8" r="7" fill="transparent"/><circle cx="302.5" cy="210.8" r="4.5" fill="#2a78d6" stroke="#fcfcfb" stroke-width="2"/></g>
|
||||
<g><title>1x1-pg0.5: 745 запросов/с, p95 796.9 мс (повторов 3)</title><circle cx="359.1" cy="107.8" r="7" fill="transparent"/><circle cx="359.1" cy="107.8" r="4.5" fill="#2a78d6" stroke="#fcfcfb" stroke-width="2"/></g>
|
||||
<g><title>1x1-pg0.5: деление 630 запросов/с, p95 128.5 мс (повторов 3)</title><circle cx="315.4" cy="202.9" r="7" fill="transparent"/><circle cx="315.4" cy="202.9" r="4.5" fill="#fcfcfb" stroke="#2a78d6" stroke-width="2"/></g>
|
||||
<g><title>1x1-pg0.5: деление 666 запросов/с, p95 544.1 мс (повторов 3)</title><circle cx="329.1" cy="127.7" r="7" fill="transparent"/><circle cx="329.1" cy="127.7" r="4.5" fill="#fcfcfb" stroke="#2a78d6" stroke-width="2"/></g>
|
||||
<polyline points="171.0,385.1 266.0,388.1 359.1,270.0 429.8,221.3 518.3,113.4" fill="none" stroke="#eb6834" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
|
||||
<g><title>2x1-pg0.5: 250 запросов/с, p95 3.9 мс (повторов 3)</title><circle cx="171.0" cy="385.1" r="7" fill="transparent"/><circle cx="171.0" cy="385.1" r="4.5" fill="#eb6834" stroke="#fcfcfb" stroke-width="2"/></g>
|
||||
<g><title>2x1-pg0.5: 500 запросов/с, p95 3.7 мс (повторов 3)</title><circle cx="266.0" cy="388.1" r="7" fill="transparent"/><circle cx="266.0" cy="388.1" r="4.5" fill="#eb6834" stroke="#fcfcfb" stroke-width="2"/></g>
|
||||
<g><title>2x1-pg0.5: 745 запросов/с, p95 35.5 мс (повторов 3)</title><circle cx="359.1" cy="270.0" r="7" fill="transparent"/><circle cx="359.1" cy="270.0" r="4.5" fill="#eb6834" stroke="#fcfcfb" stroke-width="2"/></g>
|
||||
<g><title>2x1-pg0.5: 931 запросов/с, p95 90.3 мс (повторов 3)</title><circle cx="429.8" cy="221.3" r="7" fill="transparent"/><circle cx="429.8" cy="221.3" r="4.5" fill="#eb6834" stroke="#fcfcfb" stroke-width="2"/></g>
|
||||
<g><title>2x1-pg0.5: 1164 запросов/с, p95 716.2 мс (повторов 3)</title><circle cx="518.3" cy="113.4" r="7" fill="transparent"/><circle cx="518.3" cy="113.4" r="4.5" fill="#eb6834" stroke="#fcfcfb" stroke-width="2"/></g>
|
||||
<g><title>2x1-pg0.5: деление 1041 запросов/с, p95 117.0 мс (повторов 3)</title><circle cx="471.6" cy="207.8" r="7" fill="transparent"/><circle cx="471.6" cy="207.8" r="4.5" fill="#fcfcfb" stroke="#eb6834" stroke-width="2"/></g>
|
||||
<g><title>2x1-pg0.5: деление 1101 запросов/с, p95 161.1 мс (повторов 3)</title><circle cx="494.4" cy="191.1" r="7" fill="transparent"/><circle cx="494.4" cy="191.1" r="4.5" fill="#fcfcfb" stroke="#eb6834" stroke-width="2"/></g>
|
||||
<polyline points="171.0,390.6 266.0,394.5 429.8,386.1 518.3,125.0 628.9,105.3" fill="none" stroke="#1baf7a" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
|
||||
<g><title>4x1-pg0.5: 250 запросов/с, p95 3.5 мс (повторов 3)</title><circle cx="171.0" cy="390.6" r="7" fill="transparent"/><circle cx="171.0" cy="390.6" r="4.5" fill="#1baf7a" stroke="#fcfcfb" stroke-width="2"/></g>
|
||||
<g><title>4x1-pg0.5: 500 запросов/с, p95 3.3 мс (повторов 3)</title><circle cx="266.0" cy="394.5" r="7" fill="transparent"/><circle cx="266.0" cy="394.5" r="4.5" fill="#1baf7a" stroke="#fcfcfb" stroke-width="2"/></g>
|
||||
<g><title>4x1-pg0.5: 931 запросов/с, p95 3.8 мс (повторов 3)</title><circle cx="429.8" cy="386.1" r="7" fill="transparent"/><circle cx="429.8" cy="386.1" r="4.5" fill="#1baf7a" stroke="#fcfcfb" stroke-width="2"/></g>
|
||||
<g><title>4x1-pg0.5: 1164 запросов/с, p95 573.5 мс (повторов 3)</title><circle cx="518.3" cy="125.0" r="7" fill="transparent"/><circle cx="518.3" cy="125.0" r="4.5" fill="#1baf7a" stroke="#fcfcfb" stroke-width="2"/></g>
|
||||
<g><title>4x1-pg0.5: 1455 запросов/с, p95 837.2 мс (повторов 3)</title><circle cx="628.9" cy="105.3" r="7" fill="transparent"/><circle cx="628.9" cy="105.3" r="4.5" fill="#1baf7a" stroke="#fcfcfb" stroke-width="2"/></g>
|
||||
<g><title>4x1-pg0.5: деление 984 запросов/с, p95 243.7 мс (повторов 3)</title><circle cx="449.9" cy="169.6" r="7" fill="transparent"/><circle cx="449.9" cy="169.6" r="4.5" fill="#fcfcfb" stroke="#1baf7a" stroke-width="2"/></g>
|
||||
<g><title>4x1-pg0.5: деление 1041 запросов/с, p95 446.1 мс (повторов 3)</title><circle cx="471.6" cy="138.1" r="7" fill="transparent"/><circle cx="471.6" cy="138.1" r="4.5" fill="#fcfcfb" stroke="#1baf7a" stroke-width="2"/></g>
|
||||
<polyline points="171.0,393.1 266.0,394.6 628.9,221.2 767.2,105.6" fill="none" stroke="#eda100" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
|
||||
<g><title>4x1-pg2: 250 запросов/с, p95 3.3 мс (повторов 3)</title><circle cx="171.0" cy="393.1" r="7" fill="transparent"/><circle cx="171.0" cy="393.1" r="4.5" fill="#eda100" stroke="#fcfcfb" stroke-width="2"/></g>
|
||||
<g><title>4x1-pg2: 500 запросов/с, p95 3.2 мс (повторов 3)</title><circle cx="266.0" cy="394.6" r="7" fill="transparent"/><circle cx="266.0" cy="394.6" r="4.5" fill="#eda100" stroke="#fcfcfb" stroke-width="2"/></g>
|
||||
<g><title>4x1-pg2: 1455 запросов/с, p95 90.5 мс (повторов 3)</title><circle cx="628.9" cy="221.2" r="7" fill="transparent"/><circle cx="628.9" cy="221.2" r="4.5" fill="#eda100" stroke="#fcfcfb" stroke-width="2"/></g>
|
||||
<g><title>4x1-pg2: 1819 запросов/с, p95 832.5 мс (повторов 3)</title><circle cx="767.2" cy="105.6" r="7" fill="transparent"/><circle cx="767.2" cy="105.6" r="4.5" fill="#eda100" stroke="#fcfcfb" stroke-width="2"/></g>
|
||||
<g><title>4x1-pg2: деление 1627 запросов/с, p95 143.4 мс (повторов 3)</title><circle cx="694.3" cy="197.2" r="7" fill="transparent"/><circle cx="694.3" cy="197.2" r="4.5" fill="#fcfcfb" stroke="#eda100" stroke-width="2"/></g>
|
||||
<g><title>4x1-pg2: деление 1720 запросов/с, p95 588.9 мс (повторов 3)</title><circle cx="729.6" cy="123.6" r="7" fill="transparent"/><circle cx="729.6" cy="123.6" r="4.5" fill="#fcfcfb" stroke="#eda100" stroke-width="2"/></g>
|
||||
<line x1="76.0" y1="73.0" x2="92.0" y2="73.0" stroke="#2a78d6" stroke-width="2"/>
|
||||
<text x="98.0" y="77.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="start">1x1-pg0.5</text>
|
||||
<line x1="173.0" y1="73.0" x2="189.0" y2="73.0" stroke="#eb6834" stroke-width="2"/>
|
||||
<text x="195.0" y="77.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="start">2x1-pg0.5</text>
|
||||
<line x1="270.0" y1="73.0" x2="286.0" y2="73.0" stroke="#1baf7a" stroke-width="2"/>
|
||||
<text x="292.0" y="77.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="start">4x1-pg0.5</text>
|
||||
<line x1="367.0" y1="73.0" x2="383.0" y2="73.0" stroke="#eda100" stroke-width="2"/>
|
||||
<text x="389.0" y="77.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="start">4x1-pg2</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 11 KiB |
@@ -0,0 +1,39 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 860 520" width="860" height="520" font-family='system-ui, -apple-system, "Segoe UI", sans-serif'>
|
||||
<rect x="0" y="0" width="860" height="520" fill="#fcfcfb"/>
|
||||
<text x="24.0" y="30.0" font-size="16" font-weight="600" fill="#52514e" text-anchor="start">R* от числа реплик API</text>
|
||||
<text x="24.0" y="52.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="start">Медиана R* по повторам, усы — min–max</text>
|
||||
<line x1="76.0" y1="456.0" x2="836.0" y2="456.0" stroke="#e1e0d9" stroke-width="1"/>
|
||||
<text x="68.0" y="460.0" font-size="12" font-weight="400" fill="#898781" text-anchor="end">0</text>
|
||||
<line x1="76.0" y1="366.0" x2="836.0" y2="366.0" stroke="#e1e0d9" stroke-width="1"/>
|
||||
<text x="68.0" y="370.0" font-size="12" font-weight="400" fill="#898781" text-anchor="end">500</text>
|
||||
<line x1="76.0" y1="276.0" x2="836.0" y2="276.0" stroke="#e1e0d9" stroke-width="1"/>
|
||||
<text x="68.0" y="280.0" font-size="12" font-weight="400" fill="#898781" text-anchor="end">1K</text>
|
||||
<line x1="76.0" y1="186.0" x2="836.0" y2="186.0" stroke="#e1e0d9" stroke-width="1"/>
|
||||
<text x="68.0" y="190.0" font-size="12" font-weight="400" fill="#898781" text-anchor="end">1.5K</text>
|
||||
<line x1="76.0" y1="96.0" x2="836.0" y2="96.0" stroke="#e1e0d9" stroke-width="1"/>
|
||||
<text x="68.0" y="100.0" font-size="12" font-weight="400" fill="#898781" text-anchor="end">2K</text>
|
||||
<text x="171.0" y="474.0" font-size="12" font-weight="400" fill="#898781" text-anchor="middle">1</text>
|
||||
<text x="361.0" y="474.0" font-size="12" font-weight="400" fill="#898781" text-anchor="middle">2</text>
|
||||
<text x="551.0" y="474.0" font-size="12" font-weight="400" fill="#898781" text-anchor="middle">3</text>
|
||||
<text x="741.0" y="474.0" font-size="12" font-weight="400" fill="#898781" text-anchor="middle">4</text>
|
||||
<line x1="76.0" y1="456.0" x2="836.0" y2="456.0" stroke="#c3c2b7" stroke-width="1"/>
|
||||
<text x="456.0" y="502.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="middle">Число реплик API</text>
|
||||
<text x="20.0" y="276.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="middle" transform="rotate(-90 20.0 276.0)">R*, запросов/с</text>
|
||||
<line x1="171.0" y1="342.6" x2="171.0" y2="342.6" stroke="#1baf7a" stroke-width="1.5"/>
|
||||
<line x1="361.0" y1="257.8" x2="361.0" y2="257.8" stroke="#1baf7a" stroke-width="1.5"/>
|
||||
<line x1="741.0" y1="288.4" x2="741.0" y2="288.4" stroke="#1baf7a" stroke-width="1.5"/>
|
||||
<polyline points="171.0,342.6 361.0,257.8 741.0,288.4" fill="none" stroke="#1baf7a" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
|
||||
<g><title>серия db, 1x1-pg0.5: R* 630 (630–630) запросов/с</title><circle cx="171.0" cy="342.6" r="7" fill="transparent"/><circle cx="171.0" cy="342.6" r="4.5" fill="#1baf7a" stroke="#fcfcfb" stroke-width="2"/></g>
|
||||
<text x="179.0" y="334.6" font-size="12" font-weight="400" fill="#0b0b0b" text-anchor="start">630</text>
|
||||
<g><title>серия db, 2x1-pg0.5: R* 1101 (1101–1101) запросов/с</title><circle cx="361.0" cy="257.8" r="7" fill="transparent"/><circle cx="361.0" cy="257.8" r="4.5" fill="#1baf7a" stroke="#fcfcfb" stroke-width="2"/></g>
|
||||
<text x="369.0" y="249.8" font-size="12" font-weight="400" fill="#0b0b0b" text-anchor="start">1101</text>
|
||||
<g><title>серия db, 4x1-pg0.5: R* 931 (931–931) запросов/с</title><circle cx="741.0" cy="288.4" r="7" fill="transparent"/><circle cx="741.0" cy="288.4" r="4.5" fill="#1baf7a" stroke="#fcfcfb" stroke-width="2"/></g>
|
||||
<text x="749.0" y="280.4" font-size="12" font-weight="400" fill="#0b0b0b" text-anchor="start">931</text>
|
||||
<line x1="741.0" y1="163.1" x2="741.0" y2="163.1" stroke="#eda100" stroke-width="1.5"/>
|
||||
<g><title>серия db, 4x1-pg2: R* 1627 (1627–1627) запросов/с</title><circle cx="741.0" cy="163.1" r="7" fill="transparent"/><circle cx="741.0" cy="163.1" r="4.5" fill="#eda100" stroke="#fcfcfb" stroke-width="2"/></g>
|
||||
<text x="749.0" y="155.1" font-size="12" font-weight="400" fill="#0b0b0b" text-anchor="start">1627</text>
|
||||
<line x1="76.0" y1="73.0" x2="92.0" y2="73.0" stroke="#1baf7a" stroke-width="2"/>
|
||||
<text x="98.0" y="77.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="start">серия db: PostgreSQL 0.5 CPU</text>
|
||||
<circle cx="312.0" cy="73.0" r="4.5" fill="#eda100"/>
|
||||
<text x="328.0" y="77.0" font-size="12" font-weight="400" fill="#52514e" text-anchor="start">серия db: PostgreSQL 2 CPU</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 4.4 KiB |
@@ -0,0 +1,43 @@
|
||||
# Цена масштабирования: сводка серий
|
||||
|
||||
- Команда: `make bench_plots LABELS="scaling-db" PLOTS=scaling-db`
|
||||
- Метки: `scaling-db` (серия `db`, commit `46e8f75`, complete)
|
||||
- Спек: `load-benchmark`, change `scaling-bench`
|
||||
- Даты меток (UTC): `scaling-db` 2026-10-11T08:31:46+00:00 — 2026-10-11T09:20:39+00:00
|
||||
- Хост (паспорт `meta.json`): Apple M3 Pro (6 P + 6 E ядер, 18.0 ГиБ), macOS 26.6.2; ВМ Docker 12 vCPU / 7.7 GiB, Docker 29.8.2
|
||||
- R* — медиана (min–max) по повторам; предельный CPU на запрос — наклон CPU реплик от успешных запросов/с по ступеням, прошедшим SLO; host_cost — он же против 1 × 1 своей метки (порог 1.2); эффективность — только вместе с серией `b`
|
||||
|
||||
## R* по конфигурациям
|
||||
|
||||
| Серия | Конфигурация | R*, запросов/с | Эффективность | p95 на 250 / 500, мс | p99 на 250 / 500, мс | CPU реплик на запрос на 500, мкс | Предельный CPU на запрос, мкс | host_cost | Признаки на R* | Признаки на первой нарушившей |
|
||||
|---|---|---|---|---|---|---|---|---|---|---|
|
||||
| db | 1x1-pg0.5 | 630 (630–630) | — | 4.4 / 71.4 | 7.3 / 99.0 | 1480 | 1472 | 1.00 | app | app |
|
||||
| db | 2x1-pg0.5 | 1101 (1101–1101) | — | 3.9 / 3.7 | 5.0 / 6.0 | 1684 | 1733 | 1.18 | app | app |
|
||||
| db | 4x1-pg0.5 | 931 (931–931) | — | 3.5 / 3.3 | 4.2 / 4.8 | 2020 | 2085 | 1.42 | host_cost | db_cpu db_wal host host_cost |
|
||||
| db | 4x1-pg2 | 1627 (1627–1627) | — | 3.3 / 3.2 | 4.2 / 4.7 | 2012 | 2401 | 1.63 | app host_cost | app host_cost |
|
||||
|
||||
## Насыщение PostgreSQL (серия `db`)
|
||||
|
||||
Медианы по повторам. Доля лимита — CPU PostgreSQL / его лимит; троттлинг — доля периодов CFS контейнера PostgreSQL; CPU PostgreSQL на запрос — `db_us_per_request`; доля WAL — от всех активных соединений; признак `db_cpu` — CPU ≥ 90 % лимита или троттлинг ≥ 10 %.
|
||||
|
||||
| Конфигурация | Лимит CPU PostgreSQL | Ступень | Уровень, запросов/с | CPU PostgreSQL, ядер | Доля лимита | Троттлинг PostgreSQL | CPU PostgreSQL на запрос, мкс | Ожидания WAL, доля активных | Соединений | p95, мс | Признаки |
|
||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||
| 1x1-pg0.5 | 0.5 | R* | 630 (630–630) | 0.19 | 0.38 | 0.000 | 298 | 0 % | 15 | 128.5 | app |
|
||||
| 1x1-pg0.5 | 0.5 | первая нарушившая | 666 (666–666) | 0.18 | 0.37 | 0.000 | 284 | 33 % | 15 | 544.1 | app |
|
||||
| 2x1-pg0.5 | 0.5 | R* | 1101 (1101–1101) | 0.38 | 0.77 | 0.037 | 348 | 30 % | 30 | 161.1 | app |
|
||||
| 2x1-pg0.5 | 0.5 | первая нарушившая | 1164 (1164–1164) | 0.40 | 0.80 | 0.048 | 349 | 0 % | 30 | 716.2 | app |
|
||||
| 4x1-pg0.5 | 0.5 | R* | 931 (931–931) | 0.26 | 0.52 | 0.020 | 279 | 50 % | 41 | 3.8 | — |
|
||||
| 4x1-pg0.5 | 0.5 | первая нарушившая | 984 (984–984) | 0.43 | 0.86 | 0.682 | 441 | 39 % | 60 | 243.7 | db_cpu db_wal host |
|
||||
| 4x1-pg2 | 2 | R* | 1627 (1627–1627) | 0.76 | 0.38 | 0.000 | 468 | 18 % | 60 | 143.4 | app |
|
||||
| 4x1-pg2 | 2 | первая нарушившая | 1720 (1720–1720) | 0.83 | 0.42 | 0.000 | 492 | 31 % | 60 | 588.9 | app |
|
||||
|
||||
## Память: пики за серию
|
||||
|
||||
Наибольшее по всем ступеням конфигурации, МиБ. RSS — сумма RSS процессов реплик (`rss_max_mib`) и она же на реплику; cgroup — сумма пиков `memory.current` реплик (`app_mem_peak_mib`). Лимит PostgreSQL и k6 — 1 ГиБ.
|
||||
|
||||
| Серия | Конфигурация | Лимит реплики | RSS реплик, сумма | RSS на реплику | cgroup реплик, сумма | PostgreSQL | k6 |
|
||||
|---|---|---|---|---|---|---|---|
|
||||
| db | 1x1-pg0.5 | 512m | 106 | 106 | 92 | 173 | 112 |
|
||||
| db | 2x1-pg0.5 | 512m | 215 | 108 | 185 | 236 | 150 |
|
||||
| db | 4x1-pg0.5 | 512m | 417 | 104 | 358 | 321 | 175 |
|
||||
| db | 4x1-pg2 | 512m | 441 | 110 | 385 | 318 | 208 |
|
||||
@@ -339,6 +339,35 @@ $ make bench_scaling_quick → complete: 2/2 runs, код 0
|
||||
`BEFORE=scaling-b AFTER=scaling-a`: добавлены строка спека и строка
|
||||
«Машина» в таблице меток, остальное то же.
|
||||
|
||||
## 10. Серия `db`: калибровка и проверка хоста (`95539a1`, `46e8f75`)
|
||||
|
||||
Код серии — `95539a1`; метка `scaling-db` снята на `46e8f75` (тот же
|
||||
код, дописан design), `dirty: false`.
|
||||
|
||||
Калибровка — `make bench_scaling SERIES=db_quick
|
||||
SCALING_LABEL=quick-scaling-db-20261011T082730Z` (08:27–08:31 UTC, код
|
||||
0, в git не идёт):
|
||||
|
||||
```text
|
||||
[00:01:41] cell 1/2 2x1-pg0.5-r1: R* 1041 rps (complete), first fail 1164 p95+errors, resolution 1.1182, 5 steps; writes 9049 ok / 9049 stored / 9049 sent
|
||||
[00:02:26] cell 2/2 4x1-pg0.5-r1 step 2 up 1455 rps: FAIL (p95+errors) ok 1166/s p95 650.4 p99 969.0 ms err 19.83% app 2.58 db 0.50 k6 0.34 cores [db_cpu db_wal host]
|
||||
[00:03:36] cell 2/2 4x1-pg0.5-r1: R* 1041 rps (complete), first fail 1164 p95+errors, resolution 1.1182, 5 steps; writes 10338 ok / 10338 stored / 10338 sent
|
||||
```
|
||||
|
||||
Проверка хоста перед серией (08:31 UTC): `pmset -g batt` — `AC Power`;
|
||||
`memory_pressure` — свободно 50 %, давления нет; `docker ps` — пусто
|
||||
(рабочий стенд остановлен `make stop`); `docker info` — 12 CPU, 7,75
|
||||
GiB; `Swapouts` 6 697 411 до и 6 697 411 после серии (0). Docker
|
||||
Desktop 29.8.2.
|
||||
|
||||
`make bench_scaling SERIES=db` — 08:31:46–09:20:39 UTC (49 мин), код 0,
|
||||
`complete: 12/12 runs`; в паспорте `host_warnings` пусто,
|
||||
`swapouts_delta` 0, свободно 49 % памяти в начале и в конце; лимит CPU
|
||||
PostgreSQL прочитан у контейнера по конфигурациям (`nano_cpus`
|
||||
500000000 и 2000000000), лимиты сэмплера — в паспорте; брака
|
||||
генератора нет. Метка закоммичена (`48d10da`) до графиков. Рабочий
|
||||
стенд снова поднят `make run_docker`.
|
||||
|
||||
SVG в каталогах меток `scaling-a`, `scaling-b`, `scaling-pool` нарисованы
|
||||
`plots.py` до `b7e787a` (прежнее место подписи SLO и линий ядер);
|
||||
каталоги меток неизменяемы, отчёт ссылается на `evidence/plots/scaling/`.
|
||||
|
||||
Reference in New Issue
Block a user