Skip to content

Commit eea09df

Browse files
committed
feat: add diskThreshold to dfdaemon and bump client to v0.2.35.
Signed-off-by: Gaius <gaius.qi@gmail.com>
1 parent aadd5d2 commit eea09df

3 files changed

Lines changed: 36 additions & 11 deletions

File tree

charts/dragonfly/Chart.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: dragonfly
33
description: Dragonfly is an intelligent P2P based image and file distribution system
44
icon: https://raw.githubusercontent.com/dragonflyoss/dragonfly/main/docs/images/logo/dragonfly.svg
55
type: application
6-
version: 1.3.34
6+
version: 1.3.35
77
appVersion: 2.2.4-beta.1
88
keywords:
99
- dragonfly
@@ -27,7 +27,8 @@ sources:
2727

2828
annotations:
2929
artifacthub.io/changes: |
30-
- Add headers for tracing in seed client and client.
30+
- Add diskThreshold to dfdaemon.
31+
- Bump client to v0.2.35.
3132
3233
artifacthub.io/links: |
3334
- name: Chart Source
@@ -42,11 +43,11 @@ annotations:
4243
- name: scheduler
4344
image: dragonflyoss/scheduler:v2.2.4-beta.1
4445
- name: client
45-
image: dragonflyoss/client:v0.2.34
46+
image: dragonflyoss/client:v0.2.35
4647
- name: seed-client
47-
image: dragonflyoss/client:v0.2.34
48+
image: dragonflyoss/client:v0.2.35
4849
- name: dfinit
49-
image: dragonflyoss/dfinit:v0.2.34
50+
image: dragonflyoss/dfinit:v0.2.35
5051
5152
dependencies:
5253
- name: mysql

charts/dragonfly/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ helm delete dragonfly --namespace dragonfly-system
177177
| client.dfinit.image.pullPolicy | string | `"IfNotPresent"` | Image pull policy. |
178178
| client.dfinit.image.registry | string | `"docker.io"` | Image registry. |
179179
| client.dfinit.image.repository | string | `"dragonflyoss/dfinit"` | Image repository. |
180-
| client.dfinit.image.tag | string | `"v0.2.34"` | Image tag. |
180+
| client.dfinit.image.tag | string | `"v0.2.35"` | Image tag. |
181181
| client.dfinit.restartContainerRuntime | bool | `true` | restartContainerRuntime indicates whether to restart container runtime when dfinit is enabled. it should be set to true when your first install dragonfly. If non-hot load configuration changes are made, the container runtime needs to be restarted. |
182182
| client.enable | bool | `true` | Enable client. |
183183
| client.extraVolumeMounts | list | `[{"mountPath":"/var/lib/dragonfly/","name":"storage"},{"mountPath":"/var/log/dragonfly/dfdaemon/","name":"logs"}]` | Extra volumeMounts for dfdaemon. |
@@ -192,7 +192,7 @@ helm delete dragonfly --namespace dragonfly-system
192192
| client.image.pullSecrets | list | `[]` (defaults to global.imagePullSecrets). | Image pull secrets. |
193193
| client.image.registry | string | `"docker.io"` | Image registry. |
194194
| client.image.repository | string | `"dragonflyoss/client"` | Image repository. |
195-
| client.image.tag | string | `"v0.2.34"` | Image tag. |
195+
| client.image.tag | string | `"v0.2.35"` | Image tag. |
196196
| client.initContainer.image.digest | string | `""` | Image digest. |
197197
| client.initContainer.image.pullPolicy | string | `"IfNotPresent"` | Image pull policy. |
198198
| client.initContainer.image.registry | string | `"docker.io"` | Image registry. |
@@ -481,7 +481,7 @@ helm delete dragonfly --namespace dragonfly-system
481481
| seedClient.image.pullSecrets | list | `[]` (defaults to global.imagePullSecrets). | Image pull secrets. |
482482
| seedClient.image.registry | string | `"docker.io"` | Image registry. |
483483
| seedClient.image.repository | string | `"dragonflyoss/client"` | Image repository. |
484-
| seedClient.image.tag | string | `"v0.2.34"` | Image tag. |
484+
| seedClient.image.tag | string | `"v0.2.35"` | Image tag. |
485485
| seedClient.initContainer.image.digest | string | `""` | Image digest. |
486486
| seedClient.initContainer.image.pullPolicy | string | `"IfNotPresent"` | Image pull policy. |
487487
| seedClient.initContainer.image.registry | string | `"docker.io"` | Image registry. |

charts/dragonfly/values.yaml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ seedClient:
688688
# -- Image repository.
689689
repository: dragonflyoss/client
690690
# -- Image tag.
691-
tag: v0.2.34
691+
tag: v0.2.35
692692
# -- Image digest.
693693
digest: ""
694694
# -- Image pull policy.
@@ -918,6 +918,18 @@ seedClient:
918918
policy:
919919
# -- taskTTL is the ttl of the task.
920920
taskTTL: 720h
921+
# # distThreshold optionally defines a specific disk capacity to be used as the base for
922+
# # calculating GC trigger points with `distHighThresholdPercent` and `distLowThresholdPercent`.
923+
# #
924+
# # - If a value is provided (e.g., "500GB"), the percentage-based thresholds (`distHighThresholdPercent`,
925+
# # `distLowThresholdPercent`) are applied relative to this specified capacity.
926+
# # - If not provided or set to 0 (the default behavior), these percentage-based thresholds are applied
927+
# # relative to the total actual disk space.
928+
# #
929+
# # This allows dfdaemon to effectively manage a logical portion of the disk for its cache,
930+
# # rather than always considering the entire disk volume.
931+
#
932+
# distThreshold: 10TiB
921933
# -- distHighThresholdPercent is the high threshold percent of the disk usage.
922934
# If the disk usage is greater than the threshold, dfdaemon will do gc.
923935
distHighThresholdPercent: 80
@@ -1095,7 +1107,7 @@ client:
10951107
# -- Image repository.
10961108
repository: dragonflyoss/client
10971109
# -- Image tag.
1098-
tag: v0.2.34
1110+
tag: v0.2.35
10991111
# -- Image digest.
11001112
digest: ""
11011113
# -- Image pull policy.
@@ -1182,7 +1194,7 @@ client:
11821194
# -- Image repository.
11831195
repository: dragonflyoss/dfinit
11841196
# -- Image tag.
1185-
tag: v0.2.34
1197+
tag: v0.2.35
11861198
# -- Image digest.
11871199
digest: ""
11881200
# -- Image pull policy.
@@ -1390,6 +1402,18 @@ client:
13901402
policy:
13911403
# -- taskTTL is the ttl of the task.
13921404
taskTTL: 720h
1405+
# # distThreshold optionally defines a specific disk capacity to be used as the base for
1406+
# # calculating GC trigger points with `distHighThresholdPercent` and `distLowThresholdPercent`.
1407+
# #
1408+
# # - If a value is provided (e.g., "500GB"), the percentage-based thresholds (`distHighThresholdPercent`,
1409+
# # `distLowThresholdPercent`) are applied relative to this specified capacity.
1410+
# # - If not provided or set to 0 (the default behavior), these percentage-based thresholds are applied
1411+
# # relative to the total actual disk space.
1412+
# #
1413+
# # This allows dfdaemon to effectively manage a logical portion of the disk for its cache,
1414+
# # rather than always considering the entire disk volume.
1415+
#
1416+
# distThreshold: 10TiB
13931417
# -- distHighThresholdPercent is the high threshold percent of the disk usage.
13941418
# If the disk usage is greater than the threshold, dfdaemon will do gc.
13951419
distHighThresholdPercent: 80

0 commit comments

Comments
 (0)