diff --git a/configs/milvus.yaml b/configs/milvus.yaml index 37d07e693f..ab1a11d3e0 100644 --- a/configs/milvus.yaml +++ b/configs/milvus.yaml @@ -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. diff --git a/internal/util/paramtable/component_param.go b/internal/util/paramtable/component_param.go index e30196b037..cbf2a658cd 100644 --- a/internal/util/paramtable/component_param.go +++ b/internal/util/paramtable/component_param.go @@ -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() {