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