diff --git a/client/config/constants.go b/client/config/constants.go index 651e37e3590..386c8c9720e 100644 --- a/client/config/constants.go +++ b/client/config/constants.go @@ -60,7 +60,7 @@ const ( ServerPortLowerLimit = 15000 ServerPortUpperLimit = 65000 - DefaultTaskExpireTime = 3 * time.Minute + DefaultTaskExpireTime = 1 * time.Hour DefaultGCInterval = 1 * time.Minute DefaultDaemonAliveTime = 5 * time.Minute DefaultScheduleTimeout = 5 * time.Minute diff --git a/docs/en/deployment/configuration/dfget.yaml b/docs/en/deployment/configuration/dfget.yaml index caafb574a3a..c7f4043959e 100644 --- a/docs/en/deployment/configuration/dfget.yaml +++ b/docs/en/deployment/configuration/dfget.yaml @@ -163,7 +163,7 @@ upload: storage: # task data expire time # when there is no access to a task data, this task will be gc. - taskExpireTime: 3m0s + taskExpireTime: 1h # storage strategy when process task data # io.d7y.storage.v2.simple : download file to data directory first, then copy to output path, this is default action # the download file in date directory will be the peer data for uploading to other peers diff --git a/docs/en/deployment/configuration/scheduler.yaml b/docs/en/deployment/configuration/scheduler.yaml index 1fcb69f6daa..ba463adfcd2 100644 --- a/docs/en/deployment/configuration/scheduler.yaml +++ b/docs/en/deployment/configuration/scheduler.yaml @@ -35,13 +35,13 @@ scheduler: # gc metadata configuration gc: # peerGCInterval peer's gc interval - peerGCInterval: 1m + peerGCInterval: 10m # peerTTL peer's TTL duration - peerTTL: 5m + peerTTL: 24h # taskGCInterval task's gc interval - taskGCInterval: 1m + taskGCInterval: 10m # taskTTL task's TTL duration - taskTTL: 10m + taskTTL: 24h # dynamic data configuration dynConfig: diff --git a/docs/zh-CN/deployment/configuration/dfget.yaml b/docs/zh-CN/deployment/configuration/dfget.yaml index e69b9be0532..a52dad7653b 100644 --- a/docs/zh-CN/deployment/configuration/dfget.yaml +++ b/docs/zh-CN/deployment/configuration/dfget.yaml @@ -141,7 +141,7 @@ upload: storage: # task data 过期时间 # 超过指定时间没有访问之后,缓存数据将会被清理 - taskExpireTime: 3m0s + taskExpireTime: 1h # storage strategy when process task data # io.d7y.storage.v2.simple : download file to data directory first, then copy to output path, this is default action # the download file in date directory will be the peer data for uploading to other peers diff --git a/docs/zh-CN/deployment/configuration/scheduler.yaml b/docs/zh-CN/deployment/configuration/scheduler.yaml index 11854c6aa7b..3f5eb1f3844 100644 --- a/docs/zh-CN/deployment/configuration/scheduler.yaml +++ b/docs/zh-CN/deployment/configuration/scheduler.yaml @@ -33,13 +33,13 @@ scheduler: # 数据回收策略 gc: # peer 的回收间隔 - peerGCInterval: 1m + peerGCInterval: 10m # 不活跃的 peer 的存活时间 - peerTTL: 5m + peerTTL: 24h # task 的回收间隔 - taskGCInterval: 1m + taskGCInterval: 10m # 不活跃的 task 的存活时间 - taskTTL: 10m + taskTTL: 24h # 动态数据配置 dynConfig: diff --git a/scheduler/config/config.go b/scheduler/config/config.go index 02967e1fd90..57778adff49 100644 --- a/scheduler/config/config.go +++ b/scheduler/config/config.go @@ -67,10 +67,10 @@ func New() *Config { RetryLimit: 10, RetryInterval: 1 * time.Second, GC: &GCConfig{ - PeerGCInterval: 1 * time.Minute, - PeerTTL: 5 * time.Minute, - TaskGCInterval: 1 * time.Minute, - TaskTTL: 10 * time.Minute, + PeerGCInterval: 10 * time.Minute, + PeerTTL: 24 * time.Hour, + TaskGCInterval: 10 * time.Minute, + TaskTTL: 24 * time.Hour, }, }, DynConfig: &DynConfig{