Skip to content

Commit 7799a87

Browse files
authored
feat: update plugin dir for client (#401)
Signed-off-by: Gaius <[email protected]>
1 parent 62969f3 commit 7799a87

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

charts/dragonfly/Chart.yaml

Lines changed: 2 additions & 2 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.4.1
6+
version: 1.4.2
77
appVersion: 2.3.0
88
keywords:
99
- dragonfly
@@ -27,7 +27,7 @@ sources:
2727

2828
annotations:
2929
artifacthub.io/changes: |
30-
- Bump Client to v1.0.1.
30+
- Update default plugin directory to /usr/local/lib/dragonfly/plugins/ on Linux
3131
3232
artifacthub.io/links: |
3333
- name: Chart Source

charts/dragonfly/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ helm delete dragonfly --namespace dragonfly-system
157157
| client.config.scheduler.maxScheduleCount | int | `5` | maxScheduleCount is the max count of schedule. |
158158
| client.config.scheduler.scheduleTimeout | string | `"3h"` | scheduleTimeout is timeout for the scheduler to respond to a scheduling request from dfdaemon, default is 3 hours. If the scheduler's response time for a scheduling decision exceeds this timeout, dfdaemon will encounter a `TokioStreamElapsed(Elapsed(()))` error. Behavior upon timeout: - If `enable_back_to_source` is `true`, dfdaemon will attempt to download directly from the source. - Otherwise (if `enable_back_to_source` is `false`), dfdaemon will report a download failure. **Important Considerations Regarding Timeout Triggers**: This timeout isn't solely for the scheduler's direct response. It can also be triggered if the overall duration of the client's interaction with the scheduler for a task (e.g., client downloading initial pieces and reporting their status back to the scheduler) exceeds `schedule_timeout`. During such client-side processing and reporting, the scheduler might be awaiting these updates before sending its comprehensive scheduling response, and this entire period is subject to the `schedule_timeout`. **Configuration Guidance**: To prevent premature timeouts, `schedule_timeout` should be configured to a value greater than the maximum expected time for the *entire scheduling interaction*. This includes: 1. The scheduler's own processing and response time. 2. The time taken by the client to download any initial pieces and download all pieces finished, as this communication is part of the scheduling phase. Setting this value too low can lead to `TokioStreamElapsed` errors even if the network and scheduler are functioning correctly but the combined interaction time is longer than the configured timeout. |
159159
| client.config.server.cacheDir | string | `"/var/cache/dragonfly/dfdaemon/"` | cacheDir is the directory to store cache files. |
160-
| client.config.server.pluginDir | string | `"/var/lib/dragonfly/plugins/dfdaemon/"` | pluginDir is the directory to store plugins. |
160+
| client.config.server.pluginDir | string | `"/usr/local/lib/dragonfly/plugins/dfdaemon/"` | pluginDir is the directory to store plugins. |
161161
| client.config.stats.server.port | int | `4004` | port is the port to the stats server. |
162162
| client.config.storage.dir | string | `"/var/lib/dragonfly/"` | dir is the directory to store task's metadata and content. |
163163
| client.config.storage.keep | bool | `true` | keep indicates whether keep the task's metadata and content when the dfdaemon restarts. |
@@ -458,7 +458,7 @@ helm delete dragonfly --namespace dragonfly-system
458458
| seedClient.config.seedPeer.keepaliveInterval | string | `"15s"` | keepaliveInterval is the interval to keep alive with manager. |
459459
| seedClient.config.seedPeer.type | string | `"super"` | type is the type of seed peer. |
460460
| seedClient.config.server.cacheDir | string | `"/var/cache/dragonfly/dfdaemon/"` | cacheDir is the directory to store cache files. |
461-
| seedClient.config.server.pluginDir | string | `"/var/lib/dragonfly/plugins/dfdaemon/"` | pluginDir is the directory to store plugins. |
461+
| seedClient.config.server.pluginDir | string | `"/usr/local/lib/dragonfly/plugins/dfdaemon/"` | pluginDir is the directory to store plugins. |
462462
| seedClient.config.stats.server.port | int | `4004` | port is the port to the stats server. |
463463
| seedClient.config.storage.dir | string | `"/var/lib/dragonfly/"` | dir is the directory to store task's metadata and content. |
464464
| seedClient.config.storage.keep | bool | `true` | keep indicates whether keep the task's metadata and content when the dfdaemon restarts. |

charts/dragonfly/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ seedClient:
809809
# ip: ""
810810
server:
811811
# -- pluginDir is the directory to store plugins.
812-
pluginDir: /var/lib/dragonfly/plugins/dfdaemon/
812+
pluginDir: /usr/local/lib/dragonfly/plugins/dfdaemon/
813813
# -- cacheDir is the directory to store cache files.
814814
cacheDir: /var/cache/dragonfly/dfdaemon/
815815
download:
@@ -1304,7 +1304,7 @@ client:
13041304
# ip: ""
13051305
server:
13061306
# -- pluginDir is the directory to store plugins.
1307-
pluginDir: /var/lib/dragonfly/plugins/dfdaemon/
1307+
pluginDir: /usr/local/lib/dragonfly/plugins/dfdaemon/
13081308
# -- cacheDir is the directory to store cache files.
13091309
cacheDir: /var/cache/dragonfly/dfdaemon/
13101310
download:

0 commit comments

Comments
 (0)