Skip to content

Commit

Permalink
Merge pull request etcd-io#19176 from jmao-dd/jmao/increase-limiter-b…
Browse files Browse the repository at this point in the history
…urst

tests: use high burst value in limiter.
  • Loading branch information
serathius authored Jan 13, 2025
2 parents a03bdaa + 47bd258 commit abf65dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/robustness/traffic/traffic.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ func SimulateTraffic(ctx context.Context, t *testing.T, lg *zap.Logger, clus *e2

lm := identity.NewLeaseIDStorage()
reports := []report.ClientReport{}
limiter := rate.NewLimiter(rate.Limit(profile.MaximalQPS), 200)
// Use the highest MaximalQPS of all traffic profiles as burst otherwise actual traffic may be accidentally limited
limiter := rate.NewLimiter(rate.Limit(profile.MaximalQPS), 1000)

cc, err := client.NewRecordingClient(endpoints, ids, baseTime)
require.NoError(t, err)
Expand Down

0 comments on commit abf65dd

Please sign in to comment.