Дать подготовке данных в генераторе нагрузки отдельный длинный таймаут: регистрация с Argon2id на реплике с половиной CPU не укладывается в таймаут измерений
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user