Skip to content

Commit

Permalink
feat: add gc config for manager job (#321)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi authored Sep 14, 2024
1 parent 10ece27 commit 8eb6a9d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
4 changes: 2 additions & 2 deletions charts/dragonfly/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: dragonfly
description: Dragonfly is an intelligent P2P based image and file distribution system
icon: https://raw.githubusercontent.com/dragonflyoss/Dragonfly2/main/docs/images/logo/dragonfly.svg
type: application
version: 1.2.10
version: 1.2.11
appVersion: 2.1.56
keywords:
- dragonfly
Expand All @@ -27,7 +27,7 @@ sources:

annotations:
artifacthub.io/changes: |
- Add disableShared for client to disable shared data for other peers.
- Add gc config for manager job.
artifacthub.io/links: |
- name: Chart Source
Expand Down
9 changes: 6 additions & 3 deletions charts/dragonfly/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,15 @@ helm delete dragonfly --namespace dragonfly-system
| manager.config.cache.redis.ttl | string | `"5m"` | Redis cache TTL duration. |
| manager.config.console | bool | `true` | Console shows log on console. |
| manager.config.jaeger | string | `""` | |
| manager.config.job.gc | object | `{"interval":"24h","ttl":"24h"}` | gc configuration. |
| manager.config.job.gc.interval | string | `"24h"` | interval is the interval of gc. |
| manager.config.job.gc.ttl | string | `"24h"` | ttl is the ttl of job. |
| manager.config.job.preheat | object | `{"registryTimeout":"1m"}` | Preheat configuration. |
| manager.config.job.preheat.registryTimeout | string | `"1m"` | registryTimeout is the timeout for requesting registry to get token and manifest. |
| manager.config.job.rateLimit | object | `{"capacity":10,"fillInterval":"1m","quantum":10}` | rateLimit configuration. |
| manager.config.job.rateLimit.capacity | int | `10` | capacity is the maximum number of requests that can be consumed in a single fillInterval. |
| manager.config.job.rateLimit | object | `{"capacity":5,"fillInterval":"1m","quantum":5}` | rateLimit configuration. |
| manager.config.job.rateLimit.capacity | int | `5` | capacity is the maximum number of requests that can be consumed in a single fillInterval. |
| manager.config.job.rateLimit.fillInterval | string | `"1m"` | fillInterval is the interval for refilling the bucket. |
| manager.config.job.rateLimit.quantum | int | `10` | quantum is the number of tokens taken from the bucket for each request. |
| manager.config.job.rateLimit.quantum | int | `5` | quantum is the number of tokens taken from the bucket for each request. |
| manager.config.job.syncPeers | object | `{"interval":"24h","timeout":"10m"}` | Sync peers configuration. |
| manager.config.job.syncPeers.interval | string | `"24h"` | interval is the interval for syncing all peers information from the scheduler and display peers information in the manager console. |
| manager.config.job.syncPeers.timeout | string | `"10m"` | timeout is the timeout for syncing peers information from the single scheduler. |
Expand Down
10 changes: 8 additions & 2 deletions charts/dragonfly/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,15 @@ manager:
# -- 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 of gc.
interval: 24h
# -- ttl is the ttl of job.
ttl: 24h
# -- Sync peers configuration.
syncPeers:
# -- interval is the interval for syncing all peers information from the scheduler and
Expand Down

0 comments on commit 8eb6a9d

Please sign in to comment.