From 5bd05a3a7e58ec3882987b51bfc102c1886c7039 Mon Sep 17 00:00:00 2001 From: haozhicui Date: Mon, 16 Dec 2024 16:42:43 +0800 Subject: [PATCH] fix default serviceExpireTime Signed-off-by: haozhicui --- pkg/config/default.go | 2 +- polaris.yaml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/config/default.go b/pkg/config/default.go index b7b71de1..8f287468 100644 --- a/pkg/config/default.go +++ b/pkg/config/default.go @@ -38,7 +38,7 @@ const ( // DefaultDiscoverServiceRetryInterval 默认首次发现discovery服务重试间隔. DefaultDiscoverServiceRetryInterval = 5 * time.Second // DefaultServiceExpireTime 默认的服务超时淘汰时间. - DefaultServiceExpireTime = 24 * time.Hour + DefaultServiceExpireTime = 1 * time.Hour // DefaultServiceRefreshIntervalDuration 默认的服务刷新间隔. DefaultServiceRefreshIntervalDuration = 2 * time.Second // DefaultServerConnectTimeout 默认SDK往Server连接超时时间间隔. diff --git a/polaris.yaml b/polaris.yaml index 9ccb2bac..201bf4b0 100644 --- a/polaris.yaml +++ b/polaris.yaml @@ -160,9 +160,9 @@ consumer: #描述:服务过期淘汰时间 #类型:string #格式:^\d+(ms|s|m|h)$ - #范围:[1m:...] - #默认值:24h - serviceExpireTime: 24h + #范围:[5s:1h] + #默认值:1h + serviceExpireTime: 1h #描述:服务定期刷新周期 #类型:string #格式:^\d+(ms|s|m|h)$