mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcd-tester:limit max retry backoff delay
grpc uses expoential retry if a connection is lost. grpc will sleep base on exponential delay. if delay is too large, it slows down tester.
This commit is contained in:
parent
0326d6fdd3
commit
2ac1c4c9ed
@ -114,7 +114,7 @@ func (ls *leaseStresser) setupOnce() error {
|
||||
panic("expect keysPerLease to be set")
|
||||
}
|
||||
|
||||
conn, err := grpc.Dial(ls.endpoint, grpc.WithInsecure())
|
||||
conn, err := grpc.Dial(ls.endpoint, grpc.WithInsecure(), grpc.WithBackoffMaxDelay(1*time.Second))
|
||||
if err != nil {
|
||||
return fmt.Errorf("%v (%s)", err, ls.endpoint)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user