forked from dragonflyoss/Dragonfly
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add troubleshooting guide (dragonflyoss#752)
Signed-off-by: Jim Ma <[email protected]>
- Loading branch information
Showing
4 changed files
with
71 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Troubleshooting Guide | ||
|
||
## Download slowly than without Dragonfly | ||
|
||
1. Confirm limit rate in [dfget.yaml](https://github.com/dragonflyoss/Dragonfly2/blob/main/docs/en/deployment/configuration/dfget.yaml#L65) | ||
|
||
```yaml | ||
download: | ||
# total download limit per second | ||
totalRateLimit: 200Mi | ||
# per peer task download limit per second | ||
perPeerRateLimit: 100Mi # default is 20Mi, this default is in consideration of extreme environments. | ||
upload: | ||
# upload limit per second | ||
rateLimit: 100Mi | ||
``` | ||
2. Confirm source connection speed in CDN and dfdaemon | ||
## 500 Internal Server Error | ||
1. Check error logs in /var/log/dragonfly/daemon/core.log | ||
2. Check source connectivity(dns error or certificate error) | ||
Example: | ||
```shell | ||
curl https://example.harbor.local/ | ||
``` | ||
|
||
When curl says error, please check the details in output. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# 问题排查 | ||
|
||
## 下载速度比不用蜻蜓的时候慢 | ||
|
||
1. 确认限速值是否合适 [dfget.yaml](https://github.com/dragonflyoss/Dragonfly2/blob/main/docs/zh-CN/config/dfget.yaml#L61) | ||
|
||
```yaml | ||
download: | ||
# 总下载限速 | ||
totalRateLimit: 200Mi | ||
# 单个任务下载限速 | ||
perPeerRateLimit: 100Mi # 为了兼容极限环境下,默认值为 20Mi,可以按需调整 | ||
upload: | ||
# 上传限速 | ||
rateLimit: 100Mi | ||
``` | ||
2. 确认回源速度是否正常 | ||
## 500 Internal Server Error | ||
1. 检查日志 /var/log/dragonfly/daemon/core.log | ||
2. 检查源站可连接行(DNS 错误 or 证书) | ||
示例: | ||
```shell | ||
curl https://example.harbor.local/ | ||
``` | ||
|
||
如果`curl`有报错,请查看具体错误 |