Skip to content

Commit

Permalink
feat: add gc configuration for manager job (#151)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi committed Sep 14, 2024
1 parent 3bf4adf commit dd406f1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 8 additions & 2 deletions docs/reference/configuration/manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 控制台。
Expand Down

0 comments on commit dd406f1

Please sign in to comment.