Commit Graph

410 Commits

Author SHA1 Message Date
dependabot[bot] 511117fe4e
chore(deps): Bump indicatif from 0.17.11 to 0.18.0 (#1221)
Bumps [indicatif](https://github.com/console-rs/indicatif) from 0.17.11 to 0.18.0.
- [Release notes](https://github.com/console-rs/indicatif/releases)
- [Commits](https://github.com/console-rs/indicatif/compare/0.17.11...0.18.0)

---
updated-dependencies:
- dependency-name: indicatif
  dependency-version: 0.18.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-08 14:03:57 +08:00
Gaius 38abfaf4f3
feat: Update error message in task.rs to remove 'persistent cache' reference (#1215)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-07-03 19:04:30 +08:00
Gaius cad36b3a19
feat: remove write buffer and check piece length when write piece finished
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-07-03 02:03:59 +08:00
Gaius cec3407126
fix: OTLP endpoint URL parsing to correctly include protocol in tracing module (#1209)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-06-30 18:53:10 +08:00
Gaius 23fa1ba3b7
feat: verify digest when file is downloaded (#1208)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-06-30 14:32:07 +08:00
Gaius 4711bd86af
feat: bump version to 0.2.41 and optimize vector initialization in dfdaemon_upload (#1207)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-06-25 12:46:31 +00:00
Gaius a81a67a7bc
feat: support HTTPS protocol for otel (#1206)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-06-25 15:54:01 +08:00
dependabot[bot] cb6d583225
chore(deps): Bump tabled from 0.19.0 to 0.20.0 (#1198)
Bumps [tabled](https://github.com/zhiburt/tabled) from 0.19.0 to 0.20.0.
- [Changelog](https://github.com/zhiburt/tabled/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zhiburt/tabled/commits)

---
updated-dependencies:
- dependency-name: tabled
  dependency-version: 0.20.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-24 10:58:32 +08:00
Gaius cdc6e30425
feat: add per-piece collection timeout for sync_pieces and sync_persistent_cache_pieces (#1205)
* feat: add per-piece collection timeout for sync_pieces and sync_persistent_cache_pieces

Signed-off-by: Gaius <gaius.qi@gmail.com>

* feat: update

Signed-off-by: Gaius <gaius.qi@gmail.com>

---------

Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-06-24 00:03:24 +08:00
Gaius 2a9ae049af
feat: if the task has started downloading, wait for the first piece to begin downloading (#1196)
For the first sync, if the task has started downloading, wait for the
first piece to begin downloading. This prevents the child from receiving
an empty piece, which would cause disconnection from the parent and
rescheduling. Waiting ensures the child avoids unnecessary rescheduling
and maximizes the chance to download pieces from the parent.

Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-06-20 18:31:47 +08:00
Gaius 40c9e62ebd
feat(dragonfly-client): support http protocol for otel (#1195)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-06-19 08:54:19 +00:00
Gaius 78505d46fc
feat: remove DISK_WRITTEN_BYTES and DISK_READ_BYTES metrics (#1194)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-06-18 23:10:23 +08:00
Gaius 19e233cc46
feat: add url, content_length and piece_length for tracing span (#1192)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-06-17 12:58:34 +08:00
Gaius 4bee58a863
feat(dragonfly-client): add tracing header for exporter (#1183)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-06-13 18:42:13 +08:00
Gaius d899d9982f
feat: collects pieces from multiple parents with load balancing strategy (#1173)
* feat: collects pieces from multiple parents with load balancing strategy

Signed-off-by: Gaius <gaius.qi@gmail.com>

* feat: update

Signed-off-by: Gaius <gaius.qi@gmail.com>

* feat: update

Signed-off-by: Gaius <gaius.qi@gmail.com>

* feat: update

Signed-off-by: Gaius <gaius.qi@gmail.com>

---------

Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-06-05 11:19:23 +00:00
Gaius 7f5b517f37
feat: add piece_length for download piece span (#1172)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-06-04 13:02:58 +00:00
Gaius fe178726e8
feat: remove span in get piece (#1171)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-06-04 20:03:04 +08:00
dependabot[bot] 4952a60c10
chore(deps): Bump opentelemetry-semantic-conventions from 0.29.0 to 0.30.0 (#1169)
chore(deps): Bump opentelemetry-semantic-conventions

Bumps [opentelemetry-semantic-conventions](https://github.com/open-telemetry/opentelemetry-rust) from 0.29.0 to 0.30.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-rust/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-rust/blob/main/docs/release_0.30.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-rust/compare/opentelemetry-semantic-conventions-0.29.0...opentelemetry-semantic-conventions-0.30.0)

---
updated-dependencies:
- dependency-name: opentelemetry-semantic-conventions
  dependency-version: 0.30.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-04 11:14:43 +08:00
dependabot[bot] eda6ba65cb
chore(deps): Bump pprof from 0.14.0 to 0.15.0 (#1166)
Bumps [pprof](https://github.com/tikv/pprof-rs) from 0.14.0 to 0.15.0.
- [Changelog](https://github.com/tikv/pprof-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tikv/pprof-rs/commits)

---
updated-dependencies:
- dependency-name: pprof
  dependency-version: 0.15.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-04 11:13:55 +08:00
Gaius 7819702b67
feat(tracing): align resource attributes with OpenTelemetry semantic conventions (#1164)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-05-29 00:00:12 +08:00
Gaius 3959bb9330
feat: rename --log-to-stdout to --console (#1163)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-05-27 15:31:14 +08:00
Gaius 7b1cdbe1f1
feat: add --log-to-stdout for command (#1162)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-05-27 14:15:56 +08:00
Gaius 57caa35900
feat(tracing): migrate to OpenTelemetry OTLP and enrich trace metadata (#1160)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-05-26 22:00:31 +08:00
Gaius 3811569f29
feat: add hardlink when task is downloaded (#1151)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-05-19 18:33:59 +08:00
Gaius 44362c6a00
feat: increase GRPC REQUEST_TIMEOUT to 15 seconds and add comment (#1150)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-05-19 11:49:36 +08:00
Gaius 086bc6d226
feat: move hard link creation after download_task_started in task.rs
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-05-13 23:43:51 +08:00
Gaius f8ae582fa3
feat(dragonfly-client): replace inspect_err with unwrap_or_else for error handling in piece download requests (#1148)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-05-13 23:24:14 +08:00
Gaius c11f533637
feat(dragonfly-client): add logs for finished piece from local (#1147)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-05-12 23:47:02 +08:00
Gaius f2315f2804
feat(dragonfly-client-storage): add write_piece_timeout to storage config and enhance piece download timeout handling (#1146)
feat(dragonfly-client-storage): add write_piece_timeout to storage config and enhance piece download timeout handling

This change introduces a `write_piece_timeout` configuration to the storage module, allowing customizable timeouts for writing pieces to storage (e.g., disk or cache). The default timeout is set to 90 seconds. The total timeout for piece operations now combines `download.piece was timeout` and `storage.write_piece_timeout`. Key changes include:

- Added `write_piece_timeout` field to `Storage` config with default and serialization support.
- Updated `wait_for_piece_finished` and `wait_for_piece_finished_by_task_id` to use combined timeout (`download.piece_timeout + storage.write_piece_timeout`).
- Introduced `DownloadPieceFinished` error for piece download timeouts and refactored `download_piece_from_source_finished` and `download_piece_from_parent_finished` to enforce timeouts using `tokio::select!`.
- Increased default `download.piece_timeout` from 60s to 120s for robustness.
- Removed `wait_for_piece_count` debug logging to simplify code.
- Updated tests to validate `write_piece_timeout` parsing.

These changes improve timeout granularity and reliability for piece operations.

Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-05-12 20:52:21 +08:00
Gaius 8c6f9771c9
fix: scheduling and piece collection logic for task abortion (#1139)
Modify scheduling logic in persistent_cache_task.rs and task.rs to use strict inequality (>) for max_schedule_count comparison,
ensuring tasks abort only after exceeding the configured limit. Correct piece collection logic in piece_collector.rs to abort
tasks when collected_pieces is empty, fixing the condition for both PieceCollector and PersistentCachePieceCollector to align with intended behavior.

Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-05-09 19:23:42 +08:00
Gaius a15d556f95
feat(dragonfly-client): change MAX_PIECE_LENGTH to 64MiB (#1128)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-04-29 04:02:16 +00:00
Gaius a2ba39026e
feat: support fallocate for creating task (#1119)
* feat: support fallocate and filling zero for creating task

* feat: support fallocate and filling zero for creating task

---------

Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-04-29 11:43:42 +08:00
dependabot[bot] ff0cce2fc8
chore(deps): Bump tabled from 0.18.0 to 0.19.0 (#1123)
Bumps [tabled](https://github.com/zhiburt/tabled) from 0.18.0 to 0.19.0.
- [Changelog](https://github.com/zhiburt/tabled/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zhiburt/tabled/commits)

---
updated-dependencies:
- dependency-name: tabled
  dependency-version: 0.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-29 11:37:15 +08:00
yxxhero cfa7dba465
refactor(ci/Dockerfile.dfinit, dragonfly-client/src/dynconfig/mod.rs): format and optimize code (#1117)
Signed-off-by: yxxhero <aiopsclub@163.com>
2025-04-27 10:13:17 +08:00
Gaius c21159037a
feat(dragonfly-client): add support for content-based task ID generation in Dragonfly client (#1111)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-04-24 20:54:46 +08:00
Gaius e2c7d9000a
feat(dragonfly-client): remove dfstore command (#1109)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-04-24 10:33:49 +08:00
KennyMcCormick 657d8867bf
test: add ut for resource.task (#1101)
Signed-off-by: cormick <cormick1080@gmail.com>
2025-04-18 10:25:16 +00:00
Gaius 2a0ef8ec19
fix: solve the memory leak caused by rayon (#1102)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-04-18 09:49:05 +00:00
KennyMcCormick f3b1b67607
test: add ut for shutdown (#1100)
Signed-off-by: cormick <cormick1080@gmail.com>
2025-04-18 09:55:00 +08:00
KennyMcCormick 938d17c0cf
chore: opt code under persistent_cache_task (#1098)
chroe: opt code under persistent_cache_task

Signed-off-by: cormick <cormick1080@gmail.com>
2025-04-16 13:02:47 +00:00
Gaius 3b3fbf7abb
fix: cargo deb building
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-04-15 15:24:38 +08:00
Gaius 5d2b719626
chore(dragonfly-client): fix building for deb package
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-04-15 15:03:06 +08:00
Gaius 3299a2aa20
refactor: add network interface utilities and enhance upload rate limiting (#1091)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-04-14 16:57:45 +08:00
baowj a0c3494d7a
feat: add DfdaemonUpload.sync_host. (#929)
Signed-off-by: baowj <bwj_678@qq.com>
2025-04-14 13:27:18 +08:00
Gaius 3abe3654ef
chore: update verison to 0.2.23 (#1090)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-04-11 17:22:41 +08:00
Gaius 8631030c97
test(dragonfly-client-storage/benches): remove 1u64 when create cache (#1089)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-04-11 16:27:04 +08:00
Gaius f1a9f0af55
feat: remove unnecessary dependencies (#1085)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-04-10 17:03:04 +08:00
SouthWest7 9c3019f88b
feat: add cache support for piece download/upload. (#1074)
Signed-off-by: southwest miao <1403572259@qq.com>
2025-04-09 17:16:19 +08:00
dependabot[bot] 64369470f4
chore(deps): Bump termion from 4.0.4 to 4.0.5 (#1079)
Bumps termion from 4.0.4 to 4.0.5.

---
updated-dependencies:
- dependency-name: termion
  dependency-version: 4.0.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-08 10:57:52 +08:00
Gaius ccddebc7a6
feat(dragonfly-client/src/proxy): add X-Dragonfly-Force-Hard-Link header for proxy (#1073)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-04-03 12:05:24 +08:00
Gaius ddde4da033
feat(dragonfly-client/src/proxy): add port parameter to HTTPS proxy handler (#1066)
- Modified `https_handler` to extract port from URI, defaulting to 443 if not present
- Updated `upgraded_tunnel` and `upgraded_handler` to accept port parameter
- Adjusted URI construction in `upgraded_handler` to include port in HTTPS format

Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-31 18:33:57 +08:00
Gaius 250f083980
feat: optimize hard link and copy logic (#1064)
* feat: optimize hard link and copy logic

Refer to https://github.com/dragonflyoss/design/blob/main/systems-analysis/file-download-workflow-with-hard-link/README.md

Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-28 18:29:20 +08:00
Gaius ce4b748c19
feat: remove repeat piece from piece collector (#1062)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-27 22:37:43 +08:00
Gaius 216ac0937a
feat(dragonfly-client): reducing lock contention and improving concurrency (#1061)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-27 14:27:44 +08:00
Gaius ac7f2d7388
feat(dragonfly-client/src/resource): reuse grpc client in piece downloader (#1060)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-27 10:26:09 +08:00
Gaius 991855ef21
feat(dragonfly-client/src/grpc): support exchange_ib_verbs_queue_pair_endpoint api (#1059)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-25 21:03:32 +08:00
dependabot[bot] 3f5def40c3
chore(deps): Bump http-body-util from 0.1.2 to 0.1.3 (#1054)
Bumps [http-body-util](https://github.com/hyperium/http-body) from 0.1.2 to 0.1.3.
- [Release notes](https://github.com/hyperium/http-body/releases)
- [Commits](https://github.com/hyperium/http-body/compare/http-body-util-v0.1.2...http-body-util-v0.1.3)

---
updated-dependencies:
- dependency-name: http-body-util
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-25 12:18:35 +08:00
Gaius fcea789ec8
feat: remove proxy cache (#1042)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-14 19:07:51 +08:00
Gaius e5b8dcb383
refactor: optimize storage cache (#1041)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-14 18:49:37 +08:00
SouthWest7 9ca89909f3
feat: add a LRU cache module for preheat jobs (#945)
Signed-off-by: southwest miao <1403572259@qq.com>
2025-03-14 13:47:53 +08:00
Gaius c91138d2eb
feat(dragonfly-client): optimize piece download performance (#1027)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-07 16:55:19 +08:00
Gaius 32a102da38
feat: add static SUPPORTED_HTTP_PROTOCOLS for proxy (#1026)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-07 14:50:33 +08:00
Gaius 0f04e07797
feat: add certs cache for generating self-signed certs (#1025)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-07 14:25:19 +08:00
Gaius 85ad3f81d0
feat: optimize profile.release and remove tracing-flame (#1024)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-06 20:27:07 +08:00
Gaius 00ef5fdfbd
refactor(dragonfly-client-storage): optimize buffer creation sequence for better readability (#1022)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-05 22:39:59 +08:00
Gaius 22c37712f0
feat(dragonfly-client/proxy): improved data transfer efficiency in the proxy (#1021)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-05 19:15:15 +08:00
Gaius 232ba0a5e7
fix(dragonfly-client/resource/piece_collector.rs): remove download piece number (#1019)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-04 22:57:35 +08:00
Gaius 8b7645df2a
feat(dragonfly-client/proxy): eliminate potential memory leak in piece reader handling (#1018)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-03 22:47:15 +08:00
dependabot[bot] b0045ffc14
chore(deps): Bump termion from 4.0.3 to 4.0.4 (#1015)
Bumps termion from 4.0.3 to 4.0.4.

---
updated-dependencies:
- dependency-name: termion
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-03 21:06:59 +08:00
Gaius eadbc46e51
feat(dragonfly-client/proxy): remove finished_piece_readers when copy finished (#1011)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-03 17:54:46 +08:00
Gaius cd9f5ca356
feat(dragonfly-client/proxy): add switch for cache in proxy (#1010)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-03-03 17:45:10 +08:00
Gaius 1af3cccb64
feat(dragonfly-client/proxy): optimize map_or in proxy (#1007)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-27 09:23:25 +08:00
Gaius 31e4d136d0
feat(dragonfly-client-storage): optimize hard link handling and cache logic (#1005)
- Bump all crate versions from 0.2.15 to 0.2.16
- Add cross-platform device/inode check for hard link operations
- Refactor hard link logic to remove redundant helper methods
- Implement proper file existence checks with same-device/inode validation

Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-27 00:23:03 +08:00
Gaius 300bb7b786
chore(release): set toolchain to 1.82.0 (#1006)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-27 00:22:25 +08:00
Gaius 746adece0a
fix(dragonfly-client/proxy): resolve OOM issues caused by LRU cache memory leak (#1004)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-26 18:50:50 +08:00
Gaius 237d3d7173
feat: cleaning up Unix Domain Sockets to avoid crashes (#1003)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-26 18:11:31 +08:00
Gaius 5e659a210b
feat: remove piece_length in Register process (#1002)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-26 12:19:55 +08:00
Gaius 5b0da70938
feat(dragonfly-client-util): remove wyhash package (#1001)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-25 15:14:44 +08:00
Gaius 259ebc0d52
feat: add piece length for calculating task id (#994)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-24 18:13:41 +08:00
Gaius 6d6a802f09
feat: add X-Dragonfly-Output-Path header for proxy (#993)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-24 12:06:28 +08:00
Gaius c3911f0469
test(dragonfly-client-storage): add test case for has_enough_space (#992)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-20 20:21:49 +08:00
Gaius d0fa28a879
feat: add concurrency limit for grpc server (#982)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-14 18:31:51 +08:00
Gaius 991ecd34ac
feat: set permissions for Unix Domain Socket in dfdaemon_download (#981)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-14 14:10:12 +08:00
Gaius 04c71e6e2b
feat: calculate digest of the persistent cache piece to check the integrity of the metadata (#980)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-14 12:00:53 +08:00
KennyMcCormick 32c99b711e
add checksum in download request to verify its consistency (#979)
Signed-off-by: cormick <cormick1080@gmail.com>
2025-02-14 10:37:57 +08:00
Gaius 3339d5ca2f
feat: bump api from v2.1.23 to v2.1.25 and optimize gc for persistent cache task (#978)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-12 17:23:49 +08:00
Gaius a33f861443
feat: get absolute path for dfdaemon import file (#974)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-11 18:41:16 +08:00
Gaius 4407ecd2fd
fix: if disk has no enough space, client return failed (#973)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-11 12:34:16 +08:00
dependabot[bot] 5b287feccc
chore(deps): Bump bytes from 1.9.0 to 1.10.0 (#971)
Bumps [bytes](https://github.com/tokio-rs/bytes) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/tokio-rs/bytes/releases)
- [Changelog](https://github.com/tokio-rs/bytes/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/bytes/compare/v1.9.0...v1.10.0)

---
updated-dependencies:
- dependency-name: bytes
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-11 11:03:44 +08:00
dependabot[bot] f73978cd49
chore(deps): Bump tabled from 0.17.0 to 0.18.0 (#967)
Bumps [tabled](https://github.com/zhiburt/tabled) from 0.17.0 to 0.18.0.
- [Changelog](https://github.com/zhiburt/tabled/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zhiburt/tabled/commits)

---
updated-dependencies:
- dependency-name: tabled
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-11 11:02:23 +08:00
Gaius c063a2ed32
feat: set max of the RateLimiter to the rate limit in config (#966)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-02-10 11:20:55 +08:00
wgeeker 40264df280
fix: the maximum download speed is less than 16M/s in v0.2.5 client (#964)
Signed-off-by: wgeeker <wangyao2221@gmail.com>
2025-02-10 11:06:24 +08:00
dependabot[bot] 3d34e2e368
chore(deps): Bump indicatif from 0.17.9 to 0.17.11 (#958) 2025-02-07 15:47:29 +08:00
Gaius 58da38d9f9
feat: support persist cache task when scheduler replicates task (#953)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-01-26 22:25:05 +08:00
Gaius e787afeab3
feat: update ttl, persistent and piece_length when download persistent cache task started (#952)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-01-26 10:46:01 +08:00
e-ngo 785d4642c9
bug: Remove download server UDS file on client startup if UDS file al… (#951) 2025-01-26 09:33:49 +08:00
Gaius d4096db1e2
feat: support download persistent cache task from parents (#950)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-01-21 21:18:22 +08:00
Gaius 2d4c54da99
feat: add args for dfcache (#947)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-01-20 11:22:52 +08:00
Gaius bb86c3b63b
feat: generate persistent task id by wyhash (#946)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2025-01-17 20:02:38 +08:00
Gaius 80dfd4dc39
feat: upload persistent cache task by piece level (#944) 2025-01-15 19:02:05 +08:00