Skip to content

Commit d7525b8

Browse files
committed
added log messages about read and write RPS
1 parent 6fb3f52 commit d7525b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/slo/native/query/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"context"
55
"fmt"
66
"os/signal"
7+
"strconv"
78
"sync"
89
"syscall"
910
"time"
@@ -127,12 +128,14 @@ func main() {
127128
for i := 0; i < cfg.ReadRPS; i++ {
128129
go w.Read(ctx, &wg, readRL)
129130
}
131+
log.Println("started " + strconv.Itoa(cfg.ReadRPS) + " read workers")
130132

131133
writeRL := rate.NewLimiter(rate.Limit(cfg.WriteRPS), 1)
132134
wg.Add(cfg.WriteRPS)
133135
for i := 0; i < cfg.WriteRPS; i++ {
134136
go w.Write(ctx, &wg, writeRL, gen)
135137
}
138+
log.Println("started " + strconv.Itoa(cfg.ReadRPS) + " write workers")
136139

137140
metricsRL := rate.NewLimiter(rate.Every(time.Duration(cfg.ReportPeriod)*time.Millisecond), 1)
138141
wg.Add(1)

0 commit comments

Comments
 (0)