Files
mtusi2026lab3/evidence/scaling-summary.md
T

4.6 KiB

Масштабирование: измеренные результаты

Raw: scaling.json. График: scaling.png; таблица: scaling-summary.csv.

Медианы двух 6-секундных прогонов после 2 s прогрева на каждую конкуренцию. PostgreSQL2 CPU/512MiB, LB1 CPU/128MiB. 16 чатов, 4/16/64 closed-loop клиента, reusable HTTP connections; без retry. Процентили только успешных HTTP201; ошибки отдельно. Каждый point содержит raw cgroups и samples PostgreSQL.

Серия API Клиенты RPS Ошибки % p50 ms p95 ms p99 ms
fixed 1 4 2526.8 0.000 1.466 2.239 3.348
fixed 1 16 3168.6 0.000 3.825 9.702 22.809
fixed 1 64 3455.8 0.000 14.178 41.173 49.584
fixed 2 4 2550.0 0.000 1.498 2.010 2.623
fixed 2 16 3475.4 0.000 3.052 12.922 37.828
fixed 2 64 3790.2 0.000 11.024 51.482 61.118
fixed 4 4 2337.5 0.000 1.648 2.157 2.783
fixed 4 16 3216.8 0.000 3.010 17.400 44.255
fixed 4 64 3562.1 0.000 8.338 65.682 71.892
growing 1 4 2613.5 0.000 1.421 2.148 3.145
growing 1 16 1589.9 0.000 3.604 67.692 76.371
growing 1 64 1612.0 0.000 15.611 87.815 91.053
growing 2 4 2552.6 0.000 1.494 2.020 2.760
growing 2 16 3473.7 0.000 3.034 17.183 34.192
growing 2 64 3735.5 0.000 11.508 53.346 61.755
growing 4 4 2344.6 0.000 1.645 2.157 2.790
growing 4 16 3735.0 0.000 3.064 6.175 33.475
growing 4 64 3624.7 0.000 9.866 61.297 69.813
pool_improvement pool=1 2 32 2134.6 0.000 14.851 21.305 24.438
pool_improvement pool=10 2 32 3845.3 0.000 4.961 31.460 40.739

Ресурсы и ожидания

Серия API Клиенты CPU API sum % CPU PostgreSQL % CPU LB % API max cgroup peak MiB
fixed 1 4 93.8 90.9 16.1 141.2
fixed 1 16 150.4 161.7 25.0 141.2
fixed 1 64 187.3 161.0 25.7 141.2
fixed 2 4 122.2 97.0 16.8 140.1
fixed 2 16 186.5 165.8 25.1 140.1
fixed 2 64 183.5 185.6 26.6 140.1
fixed 4 4 162.2 101.1 17.7 137.5
fixed 4 16 184.9 164.6 25.0 137.5
fixed 4 64 156.7 185.8 28.2 137.5
growing 1 4 93.1 96.4 15.8 137.8
growing 1 16 94.3 78.9 12.1 137.8
growing 1 64 95.3 81.2 12.8 137.8
growing 2 4 125.1 97.4 16.8 137.1
growing 2 16 188.8 164.1 24.9 137.1
growing 2 64 182.7 185.7 26.3 137.1
growing 4 4 161.6 99.2 17.5 137.0
growing 4 16 207.2 185.6 35.8 137.0
growing 4 64 156.8 186.8 27.0 137.0

CPU100%=один core. CPU измерен за окно snapshots, включающее небольшую инструментальную накладную стоимость, не только ровно6s. memory.peak накоплен с запуска контейнера, current до/после тоже сохранён. Pg_stat_activity samples позволяют наблюдать WAL/locks/CPU, но не являются непрерывным профилем.

  • Pool1, instance420ec0304c59: acquires=64076, empty_acquires=63562, accumulated empty wait=227.262s (process lifetime counters).
  • Pool1, instance95ed258e2e00: acquires=63957, empty_acquires=63919, accumulated empty wait=348.705s (process lifetime counters).
  • Pool10, instance0ee0266b5951: acquires=115748, empty_acquires=75758, accumulated empty wait=48.476s (process lifetime counters).
  • Pool10, instance0a0d445bde35: acquires=115747, empty_acquires=79577, accumulated empty wait=56.580s (process lifetime counters).

Границы измерения

Короткие прогоны на одном host, warm caches, fixed ordering, растущие tables и coordinated omission. Предельные задержки во время перегрузки могут быть недооценены closed-loop моделью. Токены только в памяти и stdin генератора, в evidence не сохраняются. SQL/RAM/WAL и работа нескольких процессов ограничивают масштабирование; выводы относятся к измеренному POST-профилю.