Skip to content

Commit

Permalink
feat: change capacity and quantum for manager job (#315)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <gaius.qi@gmail.com>
  • Loading branch information
gaius-qi authored Sep 4, 2024
1 parent dbaba91 commit a86156e
Show file tree
Hide file tree
Showing 3 changed files with 7 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.5
version: 1.2.6
appVersion: 2.1.55
keywords:
- dragonfly
Expand All @@ -27,7 +27,7 @@ sources:

annotations:
artifacthub.io/changes: |
- Add ratelimit for job in manager.
- Change capacity and quantum for manager job.
artifacthub.io/links: |
- name: Chart Source
Expand Down
6 changes: 3 additions & 3 deletions charts/dragonfly/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,10 @@ helm delete dragonfly --namespace dragonfly-system
| manager.config.jaeger | string | `""` | |
| 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":100,"fillInterval":"1m","quantum":100}` | rateLimit configuration. |
| manager.config.job.rateLimit.capacity | int | `100` | capacity is the maximum number of requests that can be consumed in a single fillInterval. |
| 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.fillInterval | string | `"1m"` | fillInterval is the interval for refilling the bucket. |
| manager.config.job.rateLimit.quantum | int | `100` | quantum is the number of tokens taken from the bucket for each request. |
| manager.config.job.rateLimit.quantum | int | `10` | 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
4 changes: 2 additions & 2 deletions charts/dragonfly/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ 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: 100
capacity: 10
# -- quantum is the number of tokens taken from the bucket for each request.
quantum: 100
quantum: 10
# -- Sync peers configuration.
syncPeers:
# -- interval is the interval for syncing all peers information from the scheduler and
Expand Down

0 comments on commit a86156e

Please sign in to comment.