Доработать инструменты экспериментов: чередовать повторы, останавливать лестницу на первой проваленной ступени, задавать 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
+2 -5
View File
@@ -12,11 +12,8 @@ import (
"time"
)
// scraper samples, once a second, what the balancer and every replica report
// about themselves, so a saturated step can be explained: the HAProxy
// statistics per replica and the expvar of each API process (pool waits,
// GOMAXPROCS, memory and GC). Replicas are found the way HAProxy finds them,
// through Docker DNS, and asked directly on their internal debug port.
// scraper samples the HAProxy statistics and every replica's expvar once a
// second; replicas are found through Docker DNS, as HAProxy finds them.
type scraper struct {
statsURL string
apiHost string