diff --git a/configs/milvus.yaml b/configs/milvus.yaml index ed4c0accfe..1d890c35aa 100644 --- a/configs/milvus.yaml +++ b/configs/milvus.yaml @@ -909,7 +909,7 @@ common: internaltlsEnabled: false tlsMode: 0 session: - ttl: 30 # ttl value when session granting a lease to register service + ttl: 10 # ttl value when session granting a lease to register service retryTimes: 30 # retry times when session sending etcd requests locks: metrics: diff --git a/pkg/util/paramtable/component_param.go b/pkg/util/paramtable/component_param.go index 740e892e2f..8ff6899857 100644 --- a/pkg/util/paramtable/component_param.go +++ b/pkg/util/paramtable/component_param.go @@ -47,7 +47,7 @@ const ( DefaultMiddlePriorityThreadCoreCoefficient = 5 DefaultLowPriorityThreadCoreCoefficient = 1 - DefaultSessionTTL = 30 // s + DefaultSessionTTL = 10 // s DefaultSessionRetryTimes = 30 DefaultMaxDegree = 56 @@ -719,7 +719,7 @@ Large numeric passwords require double quotes to avoid yaml parsing precision is p.SessionTTL = ParamItem{ Key: "common.session.ttl", Version: "2.0.0", - DefaultValue: "60", + DefaultValue: "10", Doc: "ttl value when session granting a lease to register service", Export: true, }