From a6c06c3bbd445c19025f49c9944a72e2fbad954f Mon Sep 17 00:00:00 2001 From: BruceAko Date: Sun, 22 Sep 2024 17:50:04 +0800 Subject: [PATCH] feat: reduce host gc interval to clear offline peers' metadata in time Signed-off-by: BruceAko --- charts/dragonfly/Chart.yaml | 4 ++-- charts/dragonfly/README.md | 2 +- charts/dragonfly/values.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/dragonfly/Chart.yaml b/charts/dragonfly/Chart.yaml index 2720fa95..0edd5d37 100644 --- a/charts/dragonfly/Chart.yaml +++ b/charts/dragonfly/Chart.yaml @@ -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 @@ -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 diff --git a/charts/dragonfly/README.md b/charts/dragonfly/README.md index 39a3dfe3..894d5c81 100644 --- a/charts/dragonfly/README.md +++ b/charts/dragonfly/README.md @@ -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. | diff --git a/charts/dragonfly/values.yaml b/charts/dragonfly/values.yaml index 09197499..0aed629a 100644 --- a/charts/dragonfly/values.yaml +++ b/charts/dragonfly/values.yaml @@ -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