未验证 提交 71bb8efe 编写于 作者: C Changjian Gao 提交者: GitHub

Docs: add `--upload-limit` and `--download-limit` (#626)

上级 048d4492
...@@ -15,7 +15,7 @@ USAGE: ...@@ -15,7 +15,7 @@ USAGE:
juicefs [global options] command [command options] [arguments...] juicefs [global options] command [command options] [arguments...]
VERSION: VERSION:
0.15-dev (2021-06-16 b5d0cd8) 0.16-dev (2021-07-12 d0a9d87)
COMMANDS: COMMANDS:
format format a volume format format a volume
...@@ -31,8 +31,8 @@ COMMANDS: ...@@ -31,8 +31,8 @@ COMMANDS:
profile analyze access log profile analyze access log
status show status of JuiceFS status show status of JuiceFS
warmup build cache for target directories/files warmup build cache for target directories/files
dump dump JuiceFS metadata into a standalone file dump dump metadata into a JSON file
load load JuiceFS metadata from a previously dumped file load load metadata from a previously dumped JSON file
help, h Shows a list of commands or help for one command help, h Shows a list of commands or help for one command
GLOBAL OPTIONS: GLOBAL OPTIONS:
...@@ -203,6 +203,12 @@ number of connections to upload (default: 20) ...@@ -203,6 +203,12 @@ number of connections to upload (default: 20)
`--buffer-size value`\ `--buffer-size value`\
total read/write buffering in MiB (default: 300) total read/write buffering in MiB (default: 300)
`--upload-limit value`\
bandwidth limit for upload in Mbps (default: 0)
`--download-limit value`\
bandwidth limit for download in Mbps (default: 0)
`--prefetch value`\ `--prefetch value`\
prefetch N blocks in parallel (default: 1) prefetch N blocks in parallel (default: 1)
...@@ -270,6 +276,12 @@ number of connections to upload (default: 20) ...@@ -270,6 +276,12 @@ number of connections to upload (default: 20)
`--buffer-size value`\ `--buffer-size value`\
total read/write buffering in MiB (default: 300) total read/write buffering in MiB (default: 300)
`--upload-limit value`\
bandwidth limit for upload in Mbps (default: 0)
`--download-limit value`\
bandwidth limit for download in Mbps (default: 0)
`--prefetch value`\ `--prefetch value`\
prefetch N blocks in parallel (default: 1) prefetch N blocks in parallel (default: 1)
......
...@@ -103,13 +103,15 @@ Then put the JAR file and `$JAVA_HOME/lib/tools.jar` to the classpath of each Ha ...@@ -103,13 +103,15 @@ Then put the JAR file and `$JAVA_HOME/lib/tools.jar` to the classpath of each Ha
### I/O Configurations ### I/O Configurations
| Configuration | Default Value | Description | | Configuration | Default Value | Description |
| ------------- | ------------- | ----------- | | ------------- | ------------- | ----------- |
| `juicefs.max-uploads` | 20 | The max number of connections to upload | | `juicefs.max-uploads` | 20 | The max number of connections to upload |
| `juicefs.get-timeout` | 5 | The max number of seconds to download an object | | `juicefs.get-timeout` | 5 | The max number of seconds to download an object |
| `juicefs.put-timeout` | 60 | The max number of seconds to upload an object | | `juicefs.put-timeout` | 60 | The max number of seconds to upload an object |
| `juicefs.memory-size` | 300 | Total read/write buffering in MiB | | `juicefs.memory-size` | 300 | Total read/write buffering in MiB |
| `juicefs.prefetch` | 1 | Prefetch N blocks in parallel | | `juicefs.prefetch` | 1 | Prefetch N blocks in parallel |
| `juicefs.upload-limit` | 0 | Bandwidth limit for upload in Mbps |
| `juicefs.download-limit` | 0 | Bandwidth limit for download in Mbps |
### Other Configurations ### Other Configurations
......
...@@ -15,7 +15,7 @@ USAGE: ...@@ -15,7 +15,7 @@ USAGE:
juicefs [global options] command [command options] [arguments...] juicefs [global options] command [command options] [arguments...]
VERSION: VERSION:
0.15-dev (2021-06-16 b5d0cd8) 0.16-dev (2021-07-12 d0a9d87)
COMMANDS: COMMANDS:
format format a volume format format a volume
...@@ -31,8 +31,8 @@ COMMANDS: ...@@ -31,8 +31,8 @@ COMMANDS:
profile analyze access log profile analyze access log
status show status of JuiceFS status show status of JuiceFS
warmup build cache for target directories/files warmup build cache for target directories/files
dump dump JuiceFS metadata into a standalone file dump dump metadata into a JSON file
load load JuiceFS metadata from a previously dumped file load load metadata from a previously dumped JSON file
help, h Shows a list of commands or help for one command help, h Shows a list of commands or help for one command
GLOBAL OPTIONS: GLOBAL OPTIONS:
...@@ -203,6 +203,12 @@ juicefs mount [command options] META-URL MOUNTPOINT ...@@ -203,6 +203,12 @@ juicefs mount [command options] META-URL MOUNTPOINT
`--buffer-size value`\ `--buffer-size value`\
读写缓存的总大小;单位为 MiB (默认: 300) 读写缓存的总大小;单位为 MiB (默认: 300)
`--upload-limit value`\
上传带宽限制,单位为 Mbps (默认: 0)
`--download-limit value`\
下载带宽限制,单位为 Mbps (默认: 0)
`--prefetch value`\ `--prefetch value`\
并发预读 N 个块 (默认: 1) 并发预读 N 个块 (默认: 1)
...@@ -270,6 +276,12 @@ juicefs gateway [command options] META-URL ADDRESS ...@@ -270,6 +276,12 @@ juicefs gateway [command options] META-URL ADDRESS
`--buffer-size value`\ `--buffer-size value`\
读写缓存的总大小;单位为 MiB (默认: 300) 读写缓存的总大小;单位为 MiB (默认: 300)
`--upload-limit value`\
上传带宽限制,单位为 Mbps (默认: 0)
`--download-limit value`\
下载带宽限制,单位为 Mbps (默认: 0)
`--prefetch value`\ `--prefetch value`\
并发预读 N 个块 (默认: 1) 并发预读 N 个块 (默认: 1)
......
...@@ -103,13 +103,15 @@ $ make ...@@ -103,13 +103,15 @@ $ make
### I/O 配置 ### I/O 配置
| 配置项 | 默认值 | 描述 | | 配置项 | 默认值 | 描述 |
| ------------------ | ------ | ------------------------------------------------------------ | | ------------------ | ------ | ------------------------------------------------------------ |
| `juicefs.max-uploads` | 20 | 上传数据的最大连接数 | | `juicefs.max-uploads` | 20 | 上传数据的最大连接数 |
| `juicefs.get-timeout` | 5 | 下载一个对象的超时时间,单位为秒。 | | `juicefs.get-timeout` | 5 | 下载一个对象的超时时间,单位为秒。 |
| `juicefs.put-timeout` | 60 | 上传一个对象的超时时间,单位为秒。 | | `juicefs.put-timeout` | 60 | 上传一个对象的超时时间,单位为秒。 |
| `juicefs.memory-size` | 300 | 读写数据的缓冲区最大空间,单位为 MiB。 | | `juicefs.memory-size` | 300 | 读写数据的缓冲区最大空间,单位为 MiB。 |
| `juicefs.prefetch` | 1 | 预读数据块的线程数 | | `juicefs.prefetch` | 1 | 预读数据块的线程数 |
| `juicefs.upload-limit` | 0 | 上传带宽限制,单位为 Mbps。 |
| `juicefs.download-limit` | 0 | 下载带宽限制,单位为 Mbps。 |
### 其他配置 ### 其他配置
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册