mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Change the etcd session timeout to 20s (#22400)
Signed-off-by: xiaofan-luan <xiaofan.luan@zilliz.com>
This commit is contained in:
parent
a4149ee7fc
commit
ea039bbd37
@ -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.
|
||||
|
||||
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user