Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client-rs
Submodule client-rs updated 57 files
+1 −1 .github/workflows/auto-assign.yml
+3 −3 .github/workflows/docker.yml
+126 −47 Cargo.lock
+22 −12 Cargo.toml
+6 −4 README.md
+3 −0 ci/Dockerfile
+3 −0 ci/Dockerfile.debug
+3 −0 ci/Dockerfile.dfinit
+2 −2 dragonfly-client-backend/Cargo.toml
+1 −1 dragonfly-client-config/Cargo.toml
+0 −8 dragonfly-client-config/src/dfcache.rs
+55 −14 dragonfly-client-config/src/dfdaemon.rs
+0 −7 dragonfly-client-config/src/dfget.rs
+0 −11 dragonfly-client-config/src/dfinit.rs
+1 −0 dragonfly-client-core/Cargo.toml
+17 −1 dragonfly-client-core/src/error/mod.rs
+2 −28 dragonfly-client-init/src/bin/main.rs
+84 −6 dragonfly-client-init/src/container_runtime/containerd.rs
+22 −0 dragonfly-client-metric/Cargo.toml
+2 −2 dragonfly-client-metric/src/lib.rs
+3 −0 dragonfly-client-storage/Cargo.toml
+17 −0 dragonfly-client-storage/src/client/mod.rs
+276 −0 dragonfly-client-storage/src/client/tcp.rs
+6 −4 dragonfly-client-storage/src/lib.rs
+17 −0 dragonfly-client-storage/src/server/mod.rs
+478 −0 dragonfly-client-storage/src/server/tcp.rs
+17 −2 dragonfly-client-util/Cargo.toml
+254 −0 dragonfly-client-util/src/hashring/mod.rs
+4 −0 dragonfly-client-util/src/lib.rs
+274 −0 dragonfly-client-util/src/pool/mod.rs
+82 −0 dragonfly-client-util/src/request/errors.rs
+741 −0 dragonfly-client-util/src/request/mod.rs
+433 −0 dragonfly-client-util/src/request/selector.rs
+0 −0 dragonfly-client-util/src/shutdown/mod.rs
+8 −4 dragonfly-client/Cargo.toml
+1 −2 dragonfly-client/src/announcer/mod.rs
+1 −27 dragonfly-client/src/bin/dfcache/export.rs
+1 −27 dragonfly-client/src/bin/dfcache/import.rs
+1 −1 dragonfly-client/src/bin/dfcache/main.rs
+1 −27 dragonfly-client/src/bin/dfcache/stat.rs
+65 −4 dragonfly-client/src/bin/dfdaemon/main.rs
+323 −35 dragonfly-client/src/bin/dfget/main.rs
+1 −1 dragonfly-client/src/dynconfig/mod.rs
+1 −1 dragonfly-client/src/gc/mod.rs
+67 −11 dragonfly-client/src/grpc/dfdaemon_download.rs
+30 −9 dragonfly-client/src/grpc/dfdaemon_upload.rs
+3 −3 dragonfly-client/src/grpc/mod.rs
+1 −1 dragonfly-client/src/health/mod.rs
+0 −2 dragonfly-client/src/lib.rs
+6 −5 dragonfly-client/src/proxy/mod.rs
+17 −2 dragonfly-client/src/resource/persistent_cache_task.rs
+123 −102 dragonfly-client/src/resource/piece.rs
+20 −4 dragonfly-client/src/resource/piece_collector.rs
+154 −157 dragonfly-client/src/resource/piece_downloader.rs
+20 −6 dragonfly-client/src/resource/task.rs
+1 −1 dragonfly-client/src/stats/mod.rs
+49 −0 dragonfly-client/src/tracing/mod.rs
9 changes: 9 additions & 0 deletions deploy/docker-compose/template/client.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ server:
cacheDir: /var/cache/dragonfly/dfdaemon/

download:
# Protocol that peers use to download piece (e.g., "tcp", "quic").
# When dfdaemon acts as a parent, it announces this protocol so downstream
# peers fetch pieces using it.
protocol: tcp
server:
# socketPath is the unix socket path for dfdaemon GRPC service.
socketPath: /var/run/dragonfly/dfdaemon.sock
Expand Down Expand Up @@ -122,6 +126,11 @@ dynconfig:
refreshInterval: 1m

storage:
server:
# port is the port to the tcp server.
tcpPort: 4005
# port is the port to the quic server.
quicPort: 4006
# dir is the directory to store task's metadata and content.
dir: /var/lib/dragonfly/
# keep indicates whether keep the task's metadata and content when the dfdaemon restarts.
Expand Down
9 changes: 9 additions & 0 deletions deploy/docker-compose/template/seed-client.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ server:
cacheDir: /var/cache/dragonfly/dfdaemon/

download:
# Protocol that peers use to download piece (e.g., "tcp", "quic").
# When dfdaemon acts as a parent, it announces this protocol so downstream
# peers fetch pieces using it.
protocol: tcp
server:
# socketPath is the unix socket path for dfdaemon GRPC service.
socketPath: /var/run/dragonfly/dfdaemon.sock
Expand Down Expand Up @@ -105,6 +109,11 @@ dynconfig:
refreshInterval: 1m

storage:
server:
# port is the port to the tcp server.
tcpPort: 4005
# port is the port to the quic server.
quicPort: 4006
# dir is the directory to store task's metadata and content.
dir: /var/lib/dragonfly/
# keep indicates whether keep the task's metadata and content when the dfdaemon restarts.
Expand Down