Change the etcd session timeout to 20s (#22400)

Signed-off-by: xiaofan-luan <xiaofan.luan@zilliz.com>
This commit is contained in:
Xiaofan 2023-02-27 18:11:48 +08:00 committed by GitHub
parent a4149ee7fc
commit ea039bbd37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -432,7 +432,7 @@ common:
tlsMode: 0
session:
ttl: 60 # ttl value when session granting a lease to register service
ttl: 20 # ttl value when session granting a lease to register service
retryTimes: 30 # retry times when session sending etcd requests
# QuotaConfig, configurations of Milvus quota and limits.

View File

@ -36,7 +36,7 @@ const (
DefaultGracefulStopTimeout = 30 // s
DefaultThreadCoreCoefficient = 10
DefaultSessionTTL = 60 //s
DefaultSessionTTL = 20 //s
DefaultSessionRetryTimes = 30
DefaultMaxDegree = 56
@ -485,7 +485,7 @@ func (p *commonConfig) initClusterName() {
}
func (p *commonConfig) initSessionTTL() {
p.SessionTTL = p.Base.ParseInt64WithDefault("common.session.ttl", 60)
p.SessionTTL = p.Base.ParseInt64WithDefault("common.session.ttl", 20)
}
func (p *commonConfig) initSessionRetryTimes() {