Skip to content

Commit

Permalink
feat: reduce host gc interval to clear offline peers' metadata in time (
Browse files Browse the repository at this point in the history
#322)

Signed-off-by: BruceAko <[email protected]>
  • Loading branch information
BruceAko authored Sep 23, 2024
1 parent 8eb6a9d commit 90d0b38
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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.11
version: 1.2.12
appVersion: 2.1.56
keywords:
- dragonfly
Expand All @@ -27,7 +27,7 @@ sources:

annotations:
artifacthub.io/changes: |
- Add gc config for manager job.
- Reduce host gc interval to clear offline peers' metadata in time.
artifacthub.io/links: |
- name: Chart Source
Expand Down
2 changes: 1 addition & 1 deletion charts/dragonfly/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ helm delete dragonfly --namespace dragonfly-system
| scheduler.config.resource.task.downloadTiny.tls.insecureSkipVerify | bool | `true` | insecureSkipVerify controls whether a client verifies the server's certificate chain and hostname. |
| scheduler.config.scheduler.algorithm | string | `"default"` | Algorithm configuration to use different scheduling algorithms, default configuration supports "default", "ml" and "nt". "default" is the rule-based scheduling algorithm, "ml" is the machine learning scheduling algorithm, "nt" is the rule-based and networkTopology-based scheduling algorithm. It also supports user plugin extension, the algorithm value is "plugin", and the compiled `d7y-scheduler-plugin-evaluator.so` file is added to the dragonfly working directory plugins. |
| scheduler.config.scheduler.backToSourceCount | int | `200` | backToSourceCount is single task allows the peer to back-to-source count. |
| scheduler.config.scheduler.gc.hostGCInterval | string | `"6h"` | hostGCInterval is the interval of host gc. |
| scheduler.config.scheduler.gc.hostGCInterval | string | `"5m"` | hostGCInterval is the interval of host gc. |
| scheduler.config.scheduler.gc.hostTTL | string | `"1h"` | hostTTL is time to live of host. If host announces message to scheduler, then HostTTl will be reset. |
| scheduler.config.scheduler.gc.peerGCInterval | string | `"10s"` | peerGCInterval is the interval of peer gc. |
| 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. |
Expand Down
2 changes: 1 addition & 1 deletion charts/dragonfly/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ scheduler:
# then the task will also be reclaimed.
taskGCInterval: 30m
# -- hostGCInterval is the interval of host gc.
hostGCInterval: 6h
hostGCInterval: 5m
# -- hostTTL is time to live of host. If host announces message to scheduler,
# then HostTTl will be reset.
hostTTL: 1h
Expand Down

0 comments on commit 90d0b38

Please sign in to comment.