mirror of https://github.com/milvus-io/milvus.git
parent
f9341f6640
commit
74133a3996
|
@ -419,7 +419,7 @@ grpc:
|
||||||
keepAliveTimeout: 20000
|
keepAliveTimeout: 20000
|
||||||
maxMaxAttempts: 5
|
maxMaxAttempts: 5
|
||||||
initialBackoff: 1
|
initialBackoff: 1
|
||||||
maxBackoff: 60
|
maxBackoff: 10
|
||||||
backoffMultiplier: 2
|
backoffMultiplier: 2
|
||||||
clientMaxSendSize: 268435456
|
clientMaxSendSize: 268435456
|
||||||
clientMaxRecvSize: 268435456
|
clientMaxRecvSize: 268435456
|
||||||
|
|
|
@ -222,8 +222,8 @@ func (c *ClientBase[T]) connect(ctx context.Context) error {
|
||||||
MinConnectTimeout: c.DialTimeout,
|
MinConnectTimeout: c.DialTimeout,
|
||||||
}),
|
}),
|
||||||
grpc.WithPerRPCCredentials(&Token{Value: crypto.Base64Encode(util.MemberCredID)}),
|
grpc.WithPerRPCCredentials(&Token{Value: crypto.Base64Encode(util.MemberCredID)}),
|
||||||
grpc.WithDisableRetry(),
|
|
||||||
grpc.FailOnNonTempDialError(true),
|
grpc.FailOnNonTempDialError(true),
|
||||||
|
grpc.WithReturnConnectionError(),
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
conn, err = grpc.DialContext(
|
conn, err = grpc.DialContext(
|
||||||
|
@ -260,8 +260,8 @@ func (c *ClientBase[T]) connect(ctx context.Context) error {
|
||||||
MinConnectTimeout: c.DialTimeout,
|
MinConnectTimeout: c.DialTimeout,
|
||||||
}),
|
}),
|
||||||
grpc.WithPerRPCCredentials(&Token{Value: crypto.Base64Encode(util.MemberCredID)}),
|
grpc.WithPerRPCCredentials(&Token{Value: crypto.Base64Encode(util.MemberCredID)}),
|
||||||
grpc.WithDisableRetry(),
|
|
||||||
grpc.FailOnNonTempDialError(true),
|
grpc.FailOnNonTempDialError(true),
|
||||||
|
grpc.WithReturnConnectionError(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ const (
|
||||||
// Grpc retry policy
|
// Grpc retry policy
|
||||||
DefaultMaxAttempts = 5
|
DefaultMaxAttempts = 5
|
||||||
DefaultInitialBackoff float64 = 1.0
|
DefaultInitialBackoff float64 = 1.0
|
||||||
DefaultMaxBackoff float64 = 60.0
|
DefaultMaxBackoff float64 = 10.0
|
||||||
DefaultBackoffMultiplier float64 = 2.0
|
DefaultBackoffMultiplier float64 = 2.0
|
||||||
|
|
||||||
DefaultCompressionEnabled bool = false
|
DefaultCompressionEnabled bool = false
|
||||||
|
|
Loading…
Reference in New Issue