Skip to content

Commit

Permalink
chore: add disableShared for client config (#150)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi committed Sep 14, 2024
1 parent 8892651 commit 3bf4adf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 9 additions & 7 deletions docs/reference/configuration/client/dfdaemon.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,23 @@ server:
cacheDir: /var/cache/dragonfly/dfdaemon/
download:
server:
# -- socketPath is the unix socket path for dfdaemon GRPC service.
# socketPath is the unix socket path for dfdaemon GRPC service.
socketPath: /var/run/dragonfly/dfdaemon.sock
# -- rateLimit is the default rate limit of the download speed in KiB/MiB/GiB per second, default is 10GiB/s.
# rateLimit is the default rate limit of the download speed in KiB/MiB/GiB per second, default is 10GiB/s.
rateLimit: 10GiB
# -- pieceTimeout is the timeout for downloading a piece from source.
# pieceTimeout is the timeout for downloading a piece from source.
pieceTimeout: 30s
# -- concurrentPieceCount is the number of concurrent pieces to download.
# concurrentPieceCount is the number of concurrent pieces to download.
concurrentPieceCount: 10
upload:
server:
# -- port is the port to the grpc server.
# port is the port to the grpc server.
port: 4000
## ip is the listen ip of the grpc server.
# ip: ""
# -- rateLimit is the default rate limit of the upload speed in KiB/MiB/GiB per second, default is 10GiB/s.
# disableShared indicates whether disable to share data for other peers.
disableShared: false
# rateLimit is the default rate limit of the upload speed in KiB/MiB/GiB per second, default is 10GiB/s.
rateLimit: 10GiB
manager:
# addrs is manager addresses.
Expand Down Expand Up @@ -150,7 +152,7 @@ proxy:
disableBackToSource: false
# prefetch pre-downloads full of the task when download with range request.
prefetch: false
# -- readBufferSize is the buffer size for reading piece from disk, default is 32KB.
# readBufferSize is the buffer size for reading piece from disk, default is 32KB.
readBufferSize: 32768
security:
# enable indicates whether enable security.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ upload:
port: 4000
## GRPC 服务器的监听 IP。
# ip: ""
# peer 是否禁用共享数据,也就是禁止分享数据给其他 peer,默认为 false。
disableShared: false
# 上传速度的默认速率限制,单位为 KiB/MiB/GiB 每秒,默认为 10GiB/s。
rateLimit: 10GiB
manager:
Expand Down

0 comments on commit 3bf4adf

Please sign in to comment.