Skip to content

Commit

Permalink
feat: add prefetch comment for dfdaemon and update client image (#331)
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 Oct 22, 2024
1 parent 4872c78 commit d9c9564
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 14 deletions.
12 changes: 6 additions & 6 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.19
version: 1.2.20
appVersion: 2.1.61
keywords:
- dragonfly
Expand All @@ -27,8 +27,8 @@ sources:

annotations:
artifacthub.io/changes: |
- Add basic auth configuration for dfdaemon.
- Update tag of the image to v2.1.61.
- Update client version to v0.1.113.
- Add prefetch comment for dfdaemon.
artifacthub.io/links: |
- name: Chart Source
Expand All @@ -43,11 +43,11 @@ annotations:
- name: scheduler
image: dragonflyoss/scheduler:v2.1.61
- name: client
image: dragonflyoss/client:v0.1.112
image: dragonflyoss/client:v0.1.113
- name: seed-client
image: dragonflyoss/client:v0.1.112
image: dragonflyoss/client:v0.1.113
- name: dfinit
image: dragonflyoss/dfinit:v0.1.112
image: dragonflyoss/dfinit:v0.1.113
dependencies:
- name: mysql
Expand Down
10 changes: 5 additions & 5 deletions charts/dragonfly/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ helm delete dragonfly --namespace dragonfly-system
| client.config.manager.addr | string | `""` | addr is manager address. |
| client.config.metrics.server.port | int | `4002` | port is the port to the metrics server. |
| client.config.proxy.disableBackToSource | bool | `false` | disableBackToSource indicates whether disable to download back-to-source when download failed. |
| client.config.proxy.prefetch | bool | `false` | prefetch pre-downloads full of the task when download with range request. |
| client.config.proxy.prefetch | bool | `false` | prefetch pre-downloads full of the task when download with range request. `X-Dragonfly-Prefetch` header's priority is higher than prefetch in config. If the value is "true", the range request will prefetch the entire file. If the value is "false", the range request will fetch the range content. |
| client.config.proxy.readBufferSize | int | `32768` | readBufferSize is the buffer size for reading piece from disk, default is 32KB. |
| client.config.proxy.registryMirror.addr | string | `"https://index.docker.io"` | addr is the default address of the registry mirror. Proxy will start a registry mirror service for the client to pull the image. The client can use the default address of the registry mirror in configuration to pull the image. The `X-Dragonfly-Registry` header can instead of the default address of registry mirror. |
| client.config.proxy.rules | list | `[{"regex":"blobs/sha256.*"}]` | rules is the list of rules for the proxy server. regex is the regex of the request url. useTLS indicates whether use tls for the proxy backend. redirect is the redirect url. filteredQueryParams is the filtered query params to generate the task id. When filter is ["Signature", "Expires", "ns"], for example: http://example.com/xyz?Expires=e1&Signature=s1&ns=docker.io and http://example.com/xyz?Expires=e2&Signature=s2&ns=docker.io will generate the same task id. Default value includes the filtered query params of s3, gcs, oss, obs, cos. `X-Dragonfly-Use-P2P` header can instead of the regular expression of the rule. If the value is "true", the request will use P2P technology to distribute the content. If the value is "false", but url matches the regular expression in rules. The request will also use P2P technology to distribute the content. |
Expand Down Expand Up @@ -173,7 +173,7 @@ helm delete dragonfly --namespace dragonfly-system
| client.dfinit.image.pullPolicy | string | `"IfNotPresent"` | Image pull policy. |
| client.dfinit.image.registry | string | `"docker.io"` | Image registry. |
| client.dfinit.image.repository | string | `"dragonflyoss/dfinit"` | Image repository. |
| client.dfinit.image.tag | string | `"v0.1.112"` | Image tag. |
| client.dfinit.image.tag | string | `"v0.1.113"` | Image tag. |
| client.enable | bool | `true` | Enable client. |
| client.extraVolumeMounts | list | `[{"mountPath":"/var/lib/dragonfly/","name":"storage"},{"mountPath":"/var/log/dragonfly/dfdaemon/","name":"logs"}]` | Extra volumeMounts for dfdaemon. |
| client.extraVolumes | list | `[{"hostPath":{"path":"/var/lib/dragonfly/","type":"DirectoryOrCreate"},"name":"storage"},{"emptyDir":{},"name":"logs"}]` | Extra volumes for dfdaemon. |
Expand All @@ -187,7 +187,7 @@ helm delete dragonfly --namespace dragonfly-system
| client.image.pullSecrets | list | `[]` (defaults to global.imagePullSecrets). | Image pull secrets. |
| client.image.registry | string | `"docker.io"` | Image registry. |
| client.image.repository | string | `"dragonflyoss/client"` | Image repository. |
| client.image.tag | string | `"v0.1.112"` | Image tag. |
| client.image.tag | string | `"v0.1.113"` | Image tag. |
| client.initContainer.image.digest | string | `""` | Image digest. |
| client.initContainer.image.pullPolicy | string | `"IfNotPresent"` | Image pull policy. |
| client.initContainer.image.registry | string | `"docker.io"` | Image registry. |
Expand Down Expand Up @@ -445,7 +445,7 @@ helm delete dragonfly --namespace dragonfly-system
| seedClient.config.manager.addr | string | `""` | addr is manager address. |
| seedClient.config.metrics.server.port | int | `4002` | port is the port to the metrics server. |
| seedClient.config.proxy.disableBackToSource | bool | `false` | disableBackToSource indicates whether disable to download back-to-source when download failed. |
| seedClient.config.proxy.prefetch | bool | `false` | prefetch pre-downloads full of the task when download with range request. |
| seedClient.config.proxy.prefetch | bool | `false` | prefetch pre-downloads full of the task when download with range request. `X-Dragonfly-Prefetch` header's priority is higher than prefetch in config. If the value is "true", the range request will prefetch the entire file. If the value is "false", the range request will fetch the range content. |
| seedClient.config.proxy.readBufferSize | int | `32768` | readBufferSize is the buffer size for reading piece from disk, default is 32KB. |
| seedClient.config.proxy.registryMirror.addr | string | `"https://index.docker.io"` | addr is the default address of the registry mirror. Proxy will start a registry mirror service for the client to pull the image. The client can use the default address of the registry mirror in configuration to pull the image. The `X-Dragonfly-Registry` header can instead of the default address of registry mirror. |
| seedClient.config.proxy.rules | list | `[{"regex":"blobs/sha256.*"}]` | rules is the list of rules for the proxy server. regex is the regex of the request url. useTLS indicates whether use tls for the proxy backend. redirect is the redirect url. filteredQueryParams is the filtered query params to generate the task id. When filter is ["Signature", "Expires", "ns"], for example: http://example.com/xyz?Expires=e1&Signature=s1&ns=docker.io and http://example.com/xyz?Expires=e2&Signature=s2&ns=docker.io will generate the same task id. Default value includes the filtered query params of s3, gcs, oss, obs, cos. `X-Dragonfly-Use-P2P` header can instead of the regular expression of the rule. If the value is "true", the request will use P2P technology to distribute the content. If the value is "false", but url matches the regular expression in rules. The request will also use P2P technology to distribute the content. |
Expand Down Expand Up @@ -477,7 +477,7 @@ helm delete dragonfly --namespace dragonfly-system
| seedClient.image.pullSecrets | list | `[]` (defaults to global.imagePullSecrets). | Image pull secrets. |
| seedClient.image.registry | string | `"docker.io"` | Image registry. |
| seedClient.image.repository | string | `"dragonflyoss/client"` | Image repository. |
| seedClient.image.tag | string | `"v0.1.112"` | Image tag. |
| seedClient.image.tag | string | `"v0.1.113"` | Image tag. |
| seedClient.initContainer.image.digest | string | `""` | Image digest. |
| seedClient.initContainer.image.pullPolicy | string | `"IfNotPresent"` | Image pull policy. |
| seedClient.initContainer.image.registry | string | `"docker.io"` | Image registry. |
Expand Down
12 changes: 9 additions & 3 deletions charts/dragonfly/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ seedClient:
# -- Image repository.
repository: dragonflyoss/client
# -- Image tag.
tag: v0.1.112
tag: v0.1.113
# -- Image digest.
digest: ""
# -- Image pull policy.
Expand Down Expand Up @@ -981,6 +981,9 @@ seedClient:
# -- disableBackToSource indicates whether disable to download back-to-source when download failed.
disableBackToSource: false
# -- prefetch pre-downloads full of the task when download with range request.
# `X-Dragonfly-Prefetch` header's priority is higher than prefetch in config.
# If the value is "true", the range request will prefetch the entire file.
# If the value is "false", the range request will fetch the range content.
prefetch: false
# -- readBufferSize is the buffer size for reading piece from disk, default is 32KB.
readBufferSize: 32768
Expand Down Expand Up @@ -1077,7 +1080,7 @@ client:
# -- Image repository.
repository: dragonflyoss/client
# -- Image tag.
tag: v0.1.112
tag: v0.1.113
# -- Image digest.
digest: ""
# -- Image pull policy.
Expand Down Expand Up @@ -1160,7 +1163,7 @@ client:
# -- Image repository.
repository: dragonflyoss/dfinit
# -- Image tag.
tag: v0.1.112
tag: v0.1.113
# -- Image digest.
digest: ""
# -- Image pull policy.
Expand Down Expand Up @@ -1390,6 +1393,9 @@ client:
# -- disableBackToSource indicates whether disable to download back-to-source when download failed.
disableBackToSource: false
# -- prefetch pre-downloads full of the task when download with range request.
# `X-Dragonfly-Prefetch` header's priority is higher than prefetch in config.
# If the value is "true", the range request will prefetch the entire file.
# If the value is "false", the range request will fetch the range content.
prefetch: false
# -- readBufferSize is the buffer size for reading piece from disk, default is 32KB.
readBufferSize: 32768
Expand Down

0 comments on commit d9c9564

Please sign in to comment.