Measure scaling cost and confirm two-replica operating point

This commit is contained in:
Самохвалов Андрей Ремович
2026-10-02 13:59:18 +03:00
parent 23ed63f593
commit 750e56d0c6
13 changed files with 739 additions and 5 deletions
+19
View File
@@ -0,0 +1,19 @@
mode,replicas,rate,successful_rps,error_ratio,p50_ms,p95_ms,p99_ms,api_cpu_percent,postgres_cpu_percent,lb_cpu_percent,api_memory_mib,postgres_memory_mib,lb_memory_mib,pool_wait_ms,queue_dropped
fixed,1,250,249.951,0.0,2.787,3.703,5.882,29.56,5.803,1.86,46.79,49.26,41.58,0,0
fixed,1,750,746.986,0.0,3.533,103.334,137.788,84.993,12.417,4.407,52.01,49.39,41.64,51465,0
fixed,1,1500,780.299,0.4285,378.91,466.704,725.297,96.24,13.42,4.423,53.53,49.48,41.64,182073,5142
fixed,2,250,249.959,0.0,2.873,25.949,100.083,42.983,5.957,1.753,102.69,64.63,41.64,14,0
fixed,2,750,749.772,0.0,1.755,108.359,175.477,69.88,12.173,3.88,97.41,64.76,41.91,7867,0
fixed,2,1500,956.631,0.338833,314.99,467.748,516.41,98.82,14.147,4.87,113.26,64.77,42.0,72376,4066
fixed,4,250,249.958,0.0,3.016,60.482,80.401,60.467,5.16,1.68,205.43,79.71,41.74,0,0
fixed,4,750,732.997,0.0,110.445,397.681,480.195,92.41,12.887,3.723,207.79,95.05,42.23,24258,0
fixed,4,1500,693.857,0.508167,413.811,747.7,851.226,87.06,13.59,3.993,204.21,95.16,42.35,33271,6098
growth,1,250,249.97,0.0,2.572,59.465,80.414,33.947,6.093,1.697,48.01,49.47,41.68,410,0
growth,1,750,362.33,0.472667,809.855,1071.351,1182.579,50.493,6.57,2.083,64.7,49.75,41.69,185658,2836
growth,1,1500,384.74,0.720917,797.336,1018.139,1070.497,50.96,6.02,2.257,64.4,49.52,41.7,190945,8651
growth,2,250,249.98,0.0,2.886,15.37,54.353,38.787,6.023,1.707,96.67,64.64,41.7,2,0
growth,2,750,749.669,0.0,2.224,167.623,254.554,86.027,13.147,4.19,107.99,64.73,41.94,15549,0
growth,2,1500,938.324,0.351167,321.365,493.5,548.275,98.067,14.437,4.527,100.03,64.75,41.98,85412,4214
growth,4,250,249.9,0.0,2.907,17.675,76.487,73.133,5.717,1.753,177.49,70.47,41.91,22,0
growth,4,750,747.495,0.0,2.595,182.257,369.613,111.363,15.23,4.083,213.65,95.12,42.04,3249,0
growth,4,1500,1127.648,0.20575,230.705,456.887,547.176,142.593,20.28,6.687,221.61,96.34,42.45,18841,2469
1 mode replicas rate successful_rps error_ratio p50_ms p95_ms p99_ms api_cpu_percent postgres_cpu_percent lb_cpu_percent api_memory_mib postgres_memory_mib lb_memory_mib pool_wait_ms queue_dropped
2 fixed 1 250 249.951 0.0 2.787 3.703 5.882 29.56 5.803 1.86 46.79 49.26 41.58 0 0
3 fixed 1 750 746.986 0.0 3.533 103.334 137.788 84.993 12.417 4.407 52.01 49.39 41.64 51465 0
4 fixed 1 1500 780.299 0.4285 378.91 466.704 725.297 96.24 13.42 4.423 53.53 49.48 41.64 182073 5142
5 fixed 2 250 249.959 0.0 2.873 25.949 100.083 42.983 5.957 1.753 102.69 64.63 41.64 14 0
6 fixed 2 750 749.772 0.0 1.755 108.359 175.477 69.88 12.173 3.88 97.41 64.76 41.91 7867 0
7 fixed 2 1500 956.631 0.338833 314.99 467.748 516.41 98.82 14.147 4.87 113.26 64.77 42.0 72376 4066
8 fixed 4 250 249.958 0.0 3.016 60.482 80.401 60.467 5.16 1.68 205.43 79.71 41.74 0 0
9 fixed 4 750 732.997 0.0 110.445 397.681 480.195 92.41 12.887 3.723 207.79 95.05 42.23 24258 0
10 fixed 4 1500 693.857 0.508167 413.811 747.7 851.226 87.06 13.59 3.993 204.21 95.16 42.35 33271 6098
11 growth 1 250 249.97 0.0 2.572 59.465 80.414 33.947 6.093 1.697 48.01 49.47 41.68 410 0
12 growth 1 750 362.33 0.472667 809.855 1071.351 1182.579 50.493 6.57 2.083 64.7 49.75 41.69 185658 2836
13 growth 1 1500 384.74 0.720917 797.336 1018.139 1070.497 50.96 6.02 2.257 64.4 49.52 41.7 190945 8651
14 growth 2 250 249.98 0.0 2.886 15.37 54.353 38.787 6.023 1.707 96.67 64.64 41.7 2 0
15 growth 2 750 749.669 0.0 2.224 167.623 254.554 86.027 13.147 4.19 107.99 64.73 41.94 15549 0
16 growth 2 1500 938.324 0.351167 321.365 493.5 548.275 98.067 14.437 4.527 100.03 64.75 41.98 85412 4214
17 growth 4 250 249.9 0.0 2.907 17.675 76.487 73.133 5.717 1.753 177.49 70.47 41.91 22 0
18 growth 4 750 747.495 0.0 2.595 182.257 369.613 111.363 15.23 4.083 213.65 95.12 42.04 3249 0
19 growth 4 1500 1127.648 0.20575 230.705 456.887 547.176 142.593 20.28 6.687 221.61 96.34 42.45 18841 2469