Дать подготовке данных в генераторе нагрузки отдельный длинный таймаут: регистрация с Argon2id на реплике с половиной CPU не укладывается в таймаут измерений

This commit is contained in:
2026-11-04 13:36:26 +03:00
parent 0b99894fef
commit 25f9564fd7
3 changed files with 39 additions and 3 deletions
+5
View File
@@ -7,6 +7,7 @@ import (
"fmt"
mrand "math/rand/v2"
"sync"
"time"
"github.com/google/uuid"
)
@@ -14,6 +15,10 @@ import (
// seedPassword is shared by the synthetic users of one run.
const seedPassword = "loadgen-synthetic-password"
// seedTimeout bounds one setup request. The setup is not measured, and
// registration hashes a password with Argon2id, slow on a small replica.
const seedTimeout = 30 * time.Second
// seedWorkers bounds the parallel registrations: each one hashes a password
// with Argon2id, and the setup must not be what the study measures.
const seedWorkers = 8