Доработать инструменты экспериментов: чередовать повторы, останавливать лестницу на первой проваленной ступени, задавать maxconn и CPU базы в сериях, записывать замер скорости хоста и контроль шума, сократить комментарии

This commit is contained in:
2026-11-04 12:39:04 +03:00
parent ce47c138e4
commit baa5995938
24 changed files with 253 additions and 240 deletions
+6 -6
View File
@@ -1,6 +1,6 @@
# Series A: the same API budget, 2 CPU and 1 GiB, cut into 1, 2 or 4 replicas.
# The pool stays 10 per replica, so the total grows with the replicas.
# name replicas cpus_per_replica memory_per_replica gomemlimit pool_per_replica
A1 1 2.0 1024M 920MiB 10
A2 2 1.0 512M 460MiB 10
A4 4 0.5 256M 230MiB 10
# Series A: the same API budget, 2 CPU and 1 GiB, cut into 1, 2 or 4 replicas;
# the pool stays 10 per replica, so the total grows with the replicas.
# name replicas cpus memory gomemlimit pool maxconn pg_cpus
A1 1 2.0 1024M 920MiB 10 0 1.0
A2 2 1.0 512M 460MiB 10 0 1.0
A4 4 0.5 256M 230MiB 10 0 1.0
+5 -5
View File
@@ -1,5 +1,5 @@
# Series A': the budget of series A with the total pool fixed at 20
# connections. A'2 equals A2 and is not run again.
# name replicas cpus_per_replica memory_per_replica gomemlimit pool_per_replica
Ap1 1 2.0 1024M 920MiB 20
Ap4 4 0.5 256M 230MiB 5
# Series A': the budget of series A with the total pool fixed at 20 connections;
# A'2 equals A2.
# name replicas cpus memory gomemlimit pool maxconn pg_cpus
Ap1 1 2.0 1024M 920MiB 20 0 1.0
Ap4 4 0.5 256M 230MiB 5 0 1.0
+5 -7
View File
@@ -1,7 +1,5 @@
# Series B: replicas of one fixed size (1 CPU, 512 MiB, pool 10) added one by
# one, so the API budget grows from 1 to 4 CPU. B2 equals A2 and is not run
# again.
# name replicas cpus_per_replica memory_per_replica gomemlimit pool_per_replica
B1 1 1.0 512M 460MiB 10
B3 3 1.0 512M 460MiB 10
B4 4 1.0 512M 460MiB 10
# Series B: replicas of 1 CPU, 512 MiB and pool 10 added one by one; B2 equals A2.
# name replicas cpus memory gomemlimit pool maxconn pg_cpus
B1 1 1.0 512M 460MiB 10 0 1.0
B3 3 1.0 512M 460MiB 10 0 1.0
B4 4 1.0 512M 460MiB 10 0 1.0
+10
View File
@@ -0,0 +1,10 @@
# Improvement C: maxconn per replica on the balancer, before (0, no limit) and
# after (20) on 1 and 4 replicas, under an overload ladder (STOP_ON_FAIL=0);
# 10 and 40 show how much the value matters.
# name replicas cpus memory gomemlimit pool maxconn pg_cpus
R1m0 1 1.0 512M 460MiB 10 0 1.0
R1m20 1 1.0 512M 460MiB 10 20 1.0
R4m0 4 1.0 512M 460MiB 10 0 1.0
R4m20 4 1.0 512M 460MiB 10 20 1.0
R1m10 1 1.0 512M 460MiB 10 10 1.0
R1m40 1 1.0 512M 460MiB 10 40 1.0
-4
View File
@@ -1,4 +0,0 @@
# Calibration: the smallest API budget of the study (one replica, one CPU)
# with a wide range of rates finds where the common rate grid must reach.
# name replicas cpus_per_replica memory_per_replica gomemlimit pool_per_replica
cal 1 1.0 512M 460MiB 10
+4
View File
@@ -0,0 +1,4 @@
# Control: A2 with twice the database CPU. If the database is the bottleneck,
# the capacity rises.
# name replicas cpus memory gomemlimit pool maxconn pg_cpus
A2pg2 2 1.0 512M 460MiB 10 0 2.0