From dd406f17ece949720dde41b580353f8aa5eb49ed Mon Sep 17 00:00:00 2001 From: Gaius Date: Sat, 14 Sep 2024 17:53:10 +0800 Subject: [PATCH] feat: add gc configuration for manager job (#151) Signed-off-by: Gaius --- docs/reference/configuration/manager.md | 10 ++++++++-- .../current/reference/configuration/manager.md | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/docs/reference/configuration/manager.md b/docs/reference/configuration/manager.md index 43c200e..41caa2d 100644 --- a/docs/reference/configuration/manager.md +++ b/docs/reference/configuration/manager.md @@ -137,9 +137,15 @@ job: # fillInterval is the interval for refilling the bucket. fillInterval: 1m # capacity is the maximum number of requests that can be consumed in a single fillInterval. - capacity: 10 + capacity: 5 # quantum is the number of tokens taken from the bucket for each request. - quantum: 10 + quantum: 5 + # gc configuration. + gc: + # Interval is the interval for garbage collection. + interval: 24h + # TTL is the time to live for the job. + ttl: 24h # Sync peers configuration. syncPeers: # Interval is the interval for syncing all peers information from the scheduler and diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/reference/configuration/manager.md b/i18n/zh/docusaurus-plugin-content-docs/current/reference/configuration/manager.md index 1b5a3af..42c8e2c 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/reference/configuration/manager.md +++ b/i18n/zh/docusaurus-plugin-content-docs/current/reference/configuration/manager.md @@ -131,9 +131,15 @@ job: # 向桶中添加令牌的时间间隔。 fillInterval: 1m # 桶的最大容量,即桶中最多可以存储的令牌数量。 - capacity: 10 + capacity: 5 # 每次添加的令牌数量。 - quantum: 10 + quantum: 5 + # GC 配置。 + gc: + # Interval 是垃圾回收的间隔时间。 + interval: 24h + # TTL 是任务的生存时间。 + ttl: 24h # 同步 Peer 信息配置。 syncPeers: # 同步 Peer 信息的间隔时间。Manager 同步会从 Scheduler 同步所有的 Peer 信息,并将 Peer 统计信息展示在 Manager 控制台。