From ea039bbd376eb5a3fe6a4df87f19e41dbf19e2ac Mon Sep 17 00:00:00 2001 From: Xiaofan <83447078+xiaofan-luan@users.noreply.github.com> Date: Mon, 27 Feb 2023 18:11:48 +0800 Subject: [PATCH] Change the etcd session timeout to 20s (#22400) Signed-off-by: xiaofan-luan --- configs/milvus.yaml | 2 +- internal/util/paramtable/component_param.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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() {