configurable for load and stat statistics logs (#980)

This commit is contained in:
Kevin Wan
2021-08-31 17:14:31 +08:00
committed by GitHub
parent 4bee60eb7f
commit db95b3f0e3
5 changed files with 62 additions and 12 deletions

View File

@@ -25,6 +25,7 @@ func init() {
}
func TestAdaptiveShedder(t *testing.T) {
DisableLog()
shedder := NewAdaptiveShedder(WithWindow(bucketDuration), WithBuckets(buckets), WithCpuThreshold(100))
var wg sync.WaitGroup
var drop int64