Skip to content

Commit

Permalink
feat: change default value of the retry config (#221)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi authored Jan 8, 2024
1 parent 40b7ad4 commit f927159
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
5 changes: 2 additions & 3 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.1.17
version: 1.1.18
appVersion: 2.1.28
keywords:
- dragonfly
Expand All @@ -26,8 +26,7 @@ sources:

annotations:
artifacthub.io/changes: |
- Add verbose args to client command.
- Update client image version to v0.1.10.
- Change default value of the retry config.
artifacthub.io/links: |
- name: Chart Source
Expand Down
7 changes: 3 additions & 4 deletions charts/dragonfly/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -459,10 +459,9 @@ helm delete dragonfly --namespace dragonfly-system
| scheduler.config.scheduler.gc.peerTTL | string | `"24h"` | peerTTL is the ttl of peer. If the peer has been downloaded by other peers, then PeerTTL will be reset. |
| scheduler.config.scheduler.gc.pieceDownloadTimeout | string | `"30m"` | pieceDownloadTimeout is the timeout of downloading piece. |
| scheduler.config.scheduler.gc.taskGCInterval | string | `"30m"` | taskGCInterval is the interval of task gc. If all the peers have been reclaimed in the task, then the task will also be reclaimed. |
| scheduler.config.scheduler.maxScheduleCount | int | `30` | maxScheduleCount is max schedule count. If scheduling exceeds the maxScheduleCount, scheduler will notify peer back-to-source. |
| scheduler.config.scheduler.retryBackToSourceLimit | int | `5` | retryBackToSourceLimit reaches the limit, then the peer back-to-source. |
| scheduler.config.scheduler.retryInterval | string | `"50ms"` | Retry scheduling interval. |
| scheduler.config.scheduler.retryLimit | int | `10` | Retry scheduling limit times. |
| scheduler.config.scheduler.retryBackToSourceLimit | int | `30` | retryBackToSourceLimit reaches the limit, then the peer back-to-source. |
| scheduler.config.scheduler.retryInterval | string | `"100ms"` | Retry scheduling interval. |
| scheduler.config.scheduler.retryLimit | int | `40` | Retry scheduling limit times. |
| scheduler.config.security.autoIssueCert | bool | `false` | AutoIssueCert indicates to issue client certificates for all grpc call. If AutoIssueCert is false, any other option in Security will be ignored. |
| scheduler.config.security.caCert | string | `""` | CACert is the root CA certificate for all grpc tls handshake, it can be path or PEM format string. |
| scheduler.config.security.certSpec.dnsNames | list | `["dragonfly-scheduler","dragonfly-scheduler.dragonfly-system.svc","dragonfly-scheduler.dragonfly-system.svc.cluster.local"]` | DNSNames is a list of dns names be set on the certificate. |
Expand Down
9 changes: 3 additions & 6 deletions charts/dragonfly/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -504,15 +504,12 @@ scheduler:
algorithm: default
# -- backToSourceCount is single task allows the peer to back-to-source count.
backToSourceCount: 3
# -- maxScheduleCount is max schedule count. If scheduling exceeds the maxScheduleCount,
# scheduler will notify peer back-to-source.
maxScheduleCount: 30
# -- retryBackToSourceLimit reaches the limit, then the peer back-to-source.
retryBackToSourceLimit: 5
retryBackToSourceLimit: 30
# -- Retry scheduling limit times.
retryLimit: 10
retryLimit: 40
# -- Retry scheduling interval.
retryInterval: 50ms
retryInterval: 100ms
gc:
# -- pieceDownloadTimeout is the timeout of downloading piece.
pieceDownloadTimeout: 30m
Expand Down

0 comments on commit f927159

Please sign in to comment.