diff --git a/.github/workflows/check-size.yml b/.github/workflows/check-size.yml index b917046b6..71b56fe46 100644 --- a/.github/workflows/check-size.yml +++ b/.github/workflows/check-size.yml @@ -26,3 +26,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: filesizelimit: "524288" + exclusionPatterns: | + deploy/helm-charts/* + manager/console/* diff --git a/CHANGELOG.md b/CHANGELOG.md index 056de04f2..172c239bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,150 @@ ## [Unreleased] +### Feat +- scheduler adds filter range limit ([#1497](https://github.com/dragonflyoss/Dragonfly2/issues/1497)) + +### Fix +- random vertices ([#1496](https://github.com/dragonflyoss/Dragonfly2/issues/1496)) + + + +## [v2.0.5-rc.0] - 2022-07-27 +### Feat +- scheduler set workhome ([#1493](https://github.com/dragonflyoss/Dragonfly2/issues/1493)) + +### Fix +- dfstore command-line tool name ([#1492](https://github.com/dragonflyoss/Dragonfly2/issues/1492)) + + + +## [v2.0.5-beta.5] - 2022-07-26 +### Fix +- oss client judge directory bug ([#1488](https://github.com/dragonflyoss/Dragonfly2/issues/1488)) +- dfdaemon unix socket ([#1489](https://github.com/dragonflyoss/Dragonfly2/issues/1489)) + +### Refactor +- set and dag with generics ([#1490](https://github.com/dragonflyoss/Dragonfly2/issues/1490)) + + + +## [v2.0.5-beta.4] - 2022-07-25 +### Feat +- remove test print + +### Fix +- init storage error ([#1486](https://github.com/dragonflyoss/Dragonfly2/issues/1486)) +- back source error ([#1485](https://github.com/dragonflyoss/Dragonfly2/issues/1485)) +- keepalive with ip + +### Refactor +- cache key for peer ([#1483](https://github.com/dragonflyoss/Dragonfly2/issues/1483)) +- scheduler training configuration +- dag GetSourceVertices and GetSinkVertices func + +### Test +- find parent with ancestor ([#1482](https://github.com/dragonflyoss/Dragonfly2/issues/1482)) + + + +## [v2.0.5-beta.3] - 2022-07-22 +### Feat +- rename steal peers to candidate peers ([#1476](https://github.com/dragonflyoss/Dragonfly2/issues/1476)) +- scheduler merge end of piece and piece from seed peer ([#1474](https://github.com/dragonflyoss/Dragonfly2/issues/1474)) + + + +## [v2.0.5-beta.2] - 2022-07-21 +### Feat +- dfdaemon add default healthy config ([#1472](https://github.com/dragonflyoss/Dragonfly2/issues/1472)) +- dag adds LenVertex and RangeVertex func ([#1470](https://github.com/dragonflyoss/Dragonfly2/issues/1470)) + +### Fix +- upload_manager write header in time ([#1471](https://github.com/dragonflyoss/Dragonfly2/issues/1471)) +- infinite loop in peer.Ancestors() ([#1469](https://github.com/dragonflyoss/Dragonfly2/issues/1469)) + + + +## [v2.0.5-beta.1] - 2022-07-18 +### Feat +- generate dag mock +- add directed acyclic graph package ([#1468](https://github.com/dragonflyoss/Dragonfly2/issues/1468)) + +### Fix +- upload_manager write header immediately when it is ready ([#1466](https://github.com/dragonflyoss/Dragonfly2/issues/1466)) + + + +## [v2.0.5-beta.0] - 2022-07-14 +### Feat +- proxy add defaultTag field ([#1462](https://github.com/dragonflyoss/Dragonfly2/issues/1462)) +- manager support postgres ([#1459](https://github.com/dragonflyoss/Dragonfly2/issues/1459)) +- use os.PathSeparator to generate object key +- scheduler add data dir ([#1453](https://github.com/dragonflyoss/Dragonfly2/issues/1453)) + +### Fix +- metrics reduces labels ([#1457](https://github.com/dragonflyoss/Dragonfly2/issues/1457)) + + + +## [v2.0.5-alpha.3] - 2022-07-12 +### Chore +- check header length before update ([#1445](https://github.com/dragonflyoss/Dragonfly2/issues/1445)) + +### Feat +- dfdaemon is compatible with v2.0.2 ([#1452](https://github.com/dragonflyoss/Dragonfly2/issues/1452)) +- add slices util package +- reload proxy option ([#1443](https://github.com/dragonflyoss/Dragonfly2/issues/1443)) +- if peer back-to-source failed, return source metadata. ([#1444](https://github.com/dragonflyoss/Dragonfly2/issues/1444)) +- report peer result with source error detail ([#1439](https://github.com/dragonflyoss/Dragonfly2/issues/1439)) + +### Fix +- depth limit ([#1451](https://github.com/dragonflyoss/Dragonfly2/issues/1451)) +- dfpath creates redundant directories ([#1446](https://github.com/dragonflyoss/Dragonfly2/issues/1446)) + +### Refactor +- rewrite math max and min with generics ([#1447](https://github.com/dragonflyoss/Dragonfly2/issues/1447)) + + + +## [v2.0.5-alpha.2] - 2022-07-07 +### Chore +- update test/tools/no-content-length/main.go ([#1440](https://github.com/dragonflyoss/Dragonfly2/issues/1440)) + +### Fix +- release package name ([#1442](https://github.com/dragonflyoss/Dragonfly2/issues/1442)) + + + +## [v2.0.5-alpha.1] - 2022-07-07 +### Feat +- add dfstore command ([#1441](https://github.com/dragonflyoss/Dragonfly2/issues/1441)) +- back source error detail ([#1437](https://github.com/dragonflyoss/Dragonfly2/issues/1437)) +- change local cache ttl ([#1436](https://github.com/dragonflyoss/Dragonfly2/issues/1436)) +- if service can not found fqdn, replace fqdn with hostname ([#1435](https://github.com/dragonflyoss/Dragonfly2/issues/1435)) + + + +## [v2.0.5-alpha.0] - 2022-07-05 +### Chore +- upgrade kind node version ([#1433](https://github.com/dragonflyoss/Dragonfly2/issues/1433)) +- update docker compose ([#1431](https://github.com/dragonflyoss/Dragonfly2/issues/1431)) +- exit when receive context done ([#1432](https://github.com/dragonflyoss/Dragonfly2/issues/1432)) +- update codeql version ([#1428](https://github.com/dragonflyoss/Dragonfly2/issues/1428)) + +### Feat +- remove errors package ([#1434](https://github.com/dragonflyoss/Dragonfly2/issues/1434)) +- concurrent multiple pieces back source ([#1426](https://github.com/dragonflyoss/Dragonfly2/issues/1426)) + +### Fix +- seed task metric panic ([#1427](https://github.com/dragonflyoss/Dragonfly2/issues/1427)) + + + +## [v2.0.4] - 2022-07-01 +### Chore +- release v2.0.4 ([#1425](https://github.com/dragonflyoss/Dragonfly2/issues/1425)) + ## [v2.0.4-rc.3] - 2022-06-30 @@ -921,11 +1065,11 @@ - when cdn download failed, scheduler should set cdn peer state PeerStateFailed ([#1067](https://github.com/dragonflyoss/Dragonfly2/issues/1067)) - -## [v2.0.2-rc.5] - 2022-02-14 - ## [v2.0.2-rc.6] - 2022-02-14 + + +## [v2.0.2-rc.5] - 2022-02-14 ### Chore - enable range feature gate in e2e ([#1059](https://github.com/dragonflyoss/Dragonfly2/issues/1059)) - add content length for fast stream peer task ([#1061](https://github.com/dragonflyoss/Dragonfly2/issues/1061)) @@ -1854,7 +1998,19 @@ - idgen add digest ([#243](https://github.com/dragonflyoss/Dragonfly2/issues/243)) -[Unreleased]: https://github.com/dragonflyoss/Dragonfly2/compare/v2.0.4-rc.3...HEAD +[Unreleased]: https://github.com/dragonflyoss/Dragonfly2/compare/v2.0.5-rc.0...HEAD +[v2.0.5-rc.0]: https://github.com/dragonflyoss/Dragonfly2/compare/v2.0.5-beta.5...v2.0.5-rc.0 +[v2.0.5-beta.5]: https://github.com/dragonflyoss/Dragonfly2/compare/v2.0.5-beta.4...v2.0.5-beta.5 +[v2.0.5-beta.4]: https://github.com/dragonflyoss/Dragonfly2/compare/v2.0.5-beta.3...v2.0.5-beta.4 +[v2.0.5-beta.3]: https://github.com/dragonflyoss/Dragonfly2/compare/v2.0.5-beta.2...v2.0.5-beta.3 +[v2.0.5-beta.2]: https://github.com/dragonflyoss/Dragonfly2/compare/v2.0.5-beta.1...v2.0.5-beta.2 +[v2.0.5-beta.1]: https://github.com/dragonflyoss/Dragonfly2/compare/v2.0.5-beta.0...v2.0.5-beta.1 +[v2.0.5-beta.0]: https://github.com/dragonflyoss/Dragonfly2/compare/v2.0.5-alpha.3...v2.0.5-beta.0 +[v2.0.5-alpha.3]: https://github.com/dragonflyoss/Dragonfly2/compare/v2.0.5-alpha.2...v2.0.5-alpha.3 +[v2.0.5-alpha.2]: https://github.com/dragonflyoss/Dragonfly2/compare/v2.0.5-alpha.1...v2.0.5-alpha.2 +[v2.0.5-alpha.1]: https://github.com/dragonflyoss/Dragonfly2/compare/v2.0.5-alpha.0...v2.0.5-alpha.1 +[v2.0.5-alpha.0]: https://github.com/dragonflyoss/Dragonfly2/compare/v2.0.4...v2.0.5-alpha.0 +[v2.0.4]: https://github.com/dragonflyoss/Dragonfly2/compare/v2.0.4-rc.3...v2.0.4 [v2.0.4-rc.3]: https://github.com/dragonflyoss/Dragonfly2/compare/v2.0.4-rc.1...v2.0.4-rc.3 [v2.0.4-rc.1]: https://github.com/dragonflyoss/Dragonfly2/compare/v2.0.4-rc.2...v2.0.4-rc.1 [v2.0.4-rc.2]: https://github.com/dragonflyoss/Dragonfly2/compare/v2.0.4-rc.0...v2.0.4-rc.2 @@ -1899,9 +2055,9 @@ [v2.0.2-rc.10]: https://github.com/dragonflyoss/Dragonfly2/compare/v2.0.2-rc.9...v2.0.2-rc.10 [v2.0.2-rc.9]: https://github.com/dragonflyoss/Dragonfly2/compare/v2.0.2-rc.8...v2.0.2-rc.9 [v2.0.2-rc.8]: https://github.com/dragonflyoss/Dragonfly2/compare/v2.0.2-rc.7...v2.0.2-rc.8 -[v2.0.2-rc.7]: https://github.com/dragonflyoss/Dragonfly2/compare/v2.0.2-rc.5...v2.0.2-rc.7 -[v2.0.2-rc.5]: https://github.com/dragonflyoss/Dragonfly2/compare/v2.0.2-rc.6...v2.0.2-rc.5 -[v2.0.2-rc.6]: https://github.com/dragonflyoss/Dragonfly2/compare/v2.0.2-rc.4...v2.0.2-rc.6 +[v2.0.2-rc.7]: https://github.com/dragonflyoss/Dragonfly2/compare/v2.0.2-rc.6...v2.0.2-rc.7 +[v2.0.2-rc.6]: https://github.com/dragonflyoss/Dragonfly2/compare/v2.0.2-rc.5...v2.0.2-rc.6 +[v2.0.2-rc.5]: https://github.com/dragonflyoss/Dragonfly2/compare/v2.0.2-rc.4...v2.0.2-rc.5 [v2.0.2-rc.4]: https://github.com/dragonflyoss/Dragonfly2/compare/v2.0.2-rc.3...v2.0.2-rc.4 [v2.0.2-rc.3]: https://github.com/dragonflyoss/Dragonfly2/compare/v2.0.2-rc.2...v2.0.2-rc.3 [v2.0.2-rc.2]: https://github.com/dragonflyoss/Dragonfly2/compare/v2.0.2-rc.1...v2.0.2-rc.2 diff --git a/Makefile b/Makefile index 7d857bf9e..c4ad9b14e 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ PROJECT_NAME := "d7y.io/dragonfly/v2" DFGET_NAME := "dfget" DFCACHE_NAME := "dfcache" DFSTORE_NAME := "dfstore" -SEMVER := "2.0.4" +SEMVER := "2.0.5" VERSION_RELEASE := "1" PKG := "$(PROJECT_NAME)" PKG_LIST := $(shell go list ${PKG}/... | grep -v /vendor/ | grep -v '\(/test/\)') diff --git a/build/package/docs/dfcache/dfcache-delete.1 b/build/package/docs/dfcache/dfcache-delete.1 index 321acb1b1..ac983989a 100644 --- a/build/package/docs/dfcache/dfcache-delete.1 +++ b/build/package/docs/dfcache/dfcache-delete.1 @@ -1,27 +1,20 @@ .\" Automatically generated by Pandoc 2.13 .\" -.TH "DFCACHE" "1" "" "Version v2.0.4" "Frivolous \[lq]Dfcache\[rq] Documentation" +.TH "DFCACHE" "1" "" "Version v2.0.5" "Frivolous \[lq]Dfcache\[rq] Documentation" .hy -.SS dfcache delete +.SH NAME .PP -delete file from P2P cache system -.SS Synopsis +\f[B]dfcache delete\f[R] \[em] delete file from P2P cache system +.SH SYNOPSIS .PP -delete file from P2P cache system +Delete file from P2P cache system. .IP .nf \f[C] dfcache delete <-i cid> [flags] \f[R] .fi -.SS Options -.IP -.nf -\f[C] - -h, --help help for delete -\f[R] -.fi -.SS Options inherited from parent commands +.SS OPTIONS .IP .nf \f[C] @@ -37,8 +30,9 @@ dfcache delete <-i cid> [flags] --timeout duration Timeout for this cache operation, 0 is infinite --verbose whether logger use debug level --workhome string Dfcache working directory + -h, --help help for delete \f[R] .fi -.SS SEE ALSO +.SH SEE ALSO .IP \[bu] 2 dfcache - the P2P cache client of dragonfly diff --git a/build/package/docs/dfcache/dfcache-doc.1 b/build/package/docs/dfcache/dfcache-doc.1 index 1fd7a3789..5f195e6ee 100644 --- a/build/package/docs/dfcache/dfcache-doc.1 +++ b/build/package/docs/dfcache/dfcache-doc.1 @@ -1,28 +1,20 @@ .\" Automatically generated by Pandoc 2.13 .\" -.TH "DFCACHE" "1" "" "Version v2.0.4" "Frivolous \[lq]Dfcache\[rq] Documentation" +.TH "DFCACHE" "1" "" "Version v2.0.5" "Frivolous \[lq]Dfcache\[rq] Documentation" .hy -.SS dfcache doc +.SH NAME .PP -generate documents -.SS Synopsis +\f[B]dfcache doc\f[R] \[em] generate documents +.SH SYNOPSIS .PP -generate markdown documents for cmd: dfcache . +Generate markdown documents for cmd: dfcache. .IP .nf \f[C] dfcache doc [flags] \f[R] .fi -.SS Options -.IP -.nf -\f[C] - -h, --help help for doc - --path string destination dir of generated markdown documents (default \[dq]./\[dq]) -\f[R] -.fi -.SS Options inherited from parent commands +.SS OPTIONS .IP .nf \f[C] @@ -38,8 +30,10 @@ dfcache doc [flags] --timeout duration Timeout for this cache operation, 0 is infinite --verbose whether logger use debug level --workhome string Dfcache working directory + -h, --help help for doc + --path string destination dir of generated markdown documents (default \[dq]./\[dq]) \f[R] .fi -.SS SEE ALSO +.SH SEE ALSO .IP \[bu] 2 dfcache - the P2P cache client of dragonfly diff --git a/build/package/docs/dfcache/dfcache-export.1 b/build/package/docs/dfcache/dfcache-export.1 index 85a4a4138..b6e5128c8 100644 --- a/build/package/docs/dfcache/dfcache-export.1 +++ b/build/package/docs/dfcache/dfcache-export.1 @@ -1,29 +1,20 @@ .\" Automatically generated by Pandoc 2.13 .\" -.TH "DFCACHE" "1" "" "Version v2.0.4" "Frivolous \[lq]Dfcache\[rq] Documentation" +.TH "DFCACHE" "1" "" "Version v2.0.5" "Frivolous \[lq]Dfcache\[rq] Documentation" .hy -.SS dfcache export +.SH NAME .PP -export file from P2P cache system -.SS Synopsis +\f[B]dfcache export\f[R] \[em] export file from P2P cache system +.SH SYNOPSIS .PP -export file from P2P cache system +Export file from P2P cache system. .IP .nf \f[C] dfcache export <-i cid> |<-O output> [flags] \f[R] .fi -.SS Options -.IP -.nf -\f[C] - -h, --help help for export - -l, --local only export file from local cache - -O, --output string export file path -\f[R] -.fi -.SS Options inherited from parent commands +.SS OPTIONS .IP .nf \f[C] @@ -39,8 +30,11 @@ dfcache export <-i cid> |<-O output> [flags] --timeout duration Timeout for this cache operation, 0 is infinite --verbose whether logger use debug level --workhome string Dfcache working directory + -h, --help help for export + -l, --local only export file from local cache + -O, --output string export file path \f[R] .fi -.SS SEE ALSO +.SH SEE ALSO .IP \[bu] 2 dfcache - the P2P cache client of dragonfly diff --git a/build/package/docs/dfcache/dfcache-import.1 b/build/package/docs/dfcache/dfcache-import.1 index face49505..e9b46597a 100644 --- a/build/package/docs/dfcache/dfcache-import.1 +++ b/build/package/docs/dfcache/dfcache-import.1 @@ -1,28 +1,20 @@ .\" Automatically generated by Pandoc 2.13 .\" -.TH "DFCACHE" "1" "" "Version v2.0.4" "Frivolous \[lq]Dfcache\[rq] Documentation" +.TH "DFCACHE" "1" "" "Version v2.0.5" "Frivolous \[lq]Dfcache\[rq] Documentation" .hy -.SS dfcache import +.SH NAME .PP -import file into P2P cache system -.SS Synopsis +\f[B]dfcache import\f[R] \[em] import file into P2P cache system +.SH SYNOPSIS .PP -import file into P2P cache system +Import file into P2P cache system. .IP .nf \f[C] dfcache import <-i cid> |<-I file> [flags] \f[R] .fi -.SS Options -.IP -.nf -\f[C] - -h, --help help for import - -I, --input string import the given file into P2P network -\f[R] -.fi -.SS Options inherited from parent commands +.SS OPTIONS .IP .nf \f[C] @@ -38,8 +30,10 @@ dfcache import <-i cid> |<-I file> [flags] --timeout duration Timeout for this cache operation, 0 is infinite --verbose whether logger use debug level --workhome string Dfcache working directory + -h, --help help for import + -I, --input string import the given file into P2P network \f[R] .fi -.SS SEE ALSO +.SH SEE ALSO .IP \[bu] 2 dfcache - the P2P cache client of dragonfly diff --git a/build/package/docs/dfcache/dfcache-plugin.1 b/build/package/docs/dfcache/dfcache-plugin.1 index 506330e3e..9760a590d 100644 --- a/build/package/docs/dfcache/dfcache-plugin.1 +++ b/build/package/docs/dfcache/dfcache-plugin.1 @@ -1,27 +1,20 @@ .\" Automatically generated by Pandoc 2.13 .\" -.TH "DFCACHE" "1" "" "Version v2.0.4" "Frivolous \[lq]Dfcache\[rq] Documentation" +.TH "DFCACHE" "1" "" "Version v2.0.5" "Frivolous \[lq]Dfcache\[rq] Documentation" .hy -.SS dfcache plugin +.SH NAME .PP -show plugin -.SS Synopsis +\f[B]dfcache plugin\f[R] \[em] show plugin +.SH SYNOPSIS .PP -show the plugin details of dragonfly. +Show the plugin details of dragonfly. .IP .nf \f[C] dfcache plugin [flags] \f[R] .fi -.SS Options -.IP -.nf -\f[C] - -h, --help help for plugin -\f[R] -.fi -.SS Options inherited from parent commands +.SS OPTIONS .IP .nf \f[C] @@ -37,8 +30,9 @@ dfcache plugin [flags] --timeout duration Timeout for this cache operation, 0 is infinite --verbose whether logger use debug level --workhome string Dfcache working directory + -h, --help help for plugin \f[R] .fi -.SS SEE ALSO +.SH SEE ALSO .IP \[bu] 2 dfcache - the P2P cache client of dragonfly diff --git a/build/package/docs/dfcache/dfcache-stat.1 b/build/package/docs/dfcache/dfcache-stat.1 index f4eb59c2c..057d12dca 100644 --- a/build/package/docs/dfcache/dfcache-stat.1 +++ b/build/package/docs/dfcache/dfcache-stat.1 @@ -1,28 +1,21 @@ .\" Automatically generated by Pandoc 2.13 .\" -.TH "DFCACHE" "1" "" "Version v2.0.4" "Frivolous \[lq]Dfcache\[rq] Documentation" +.TH "DFCACHE" "1" "" "Version v2.0.5" "Frivolous \[lq]Dfcache\[rq] Documentation" .hy -.SS dfcache stat +.SH NAME .PP -stat checks if a file exists in P2P cache system -.SS Synopsis +\f[B]dfcache stat\f[R] \[em] stat checks if a file exists in P2P cache +system +.SH SYNOPSIS .PP -stat checks if a file exists in P2P cache system +Stat checks if a file exists in P2P cache system. .IP .nf \f[C] dfcache stat <-i cid> [flags] \f[R] .fi -.SS Options -.IP -.nf -\f[C] - -h, --help help for stat - -l, --local only check task exists locally, and don\[aq]t check other peers in P2P network -\f[R] -.fi -.SS Options inherited from parent commands +.SS OPTIONS .IP .nf \f[C] @@ -38,8 +31,10 @@ dfcache stat <-i cid> [flags] --timeout duration Timeout for this cache operation, 0 is infinite --verbose whether logger use debug level --workhome string Dfcache working directory + -h, --help help for stat + -l, --local only check task exists locally, and don\[aq]t check other peers in P2P network \f[R] .fi -.SS SEE ALSO +.SH SEE ALSO .IP \[bu] 2 dfcache - the P2P cache client of dragonfly diff --git a/build/package/docs/dfcache/dfcache-version.1 b/build/package/docs/dfcache/dfcache-version.1 index 2c217a82b..964848867 100644 --- a/build/package/docs/dfcache/dfcache-version.1 +++ b/build/package/docs/dfcache/dfcache-version.1 @@ -1,6 +1,6 @@ .\" Automatically generated by Pandoc 2.13 .\" -.TH "DFCACHE" "1" "" "Version v2.0.4" "Frivolous \[lq]Dfcache\[rq] Documentation" +.TH "DFCACHE" "1" "" "Version v2.0.5" "Frivolous \[lq]Dfcache\[rq] Documentation" .hy .SH NAME .PP diff --git a/build/package/docs/dfcache/dfcache.1 b/build/package/docs/dfcache/dfcache.1 index 9809987c6..dee111e1d 100644 --- a/build/package/docs/dfcache/dfcache.1 +++ b/build/package/docs/dfcache/dfcache.1 @@ -1,11 +1,11 @@ .\" Automatically generated by Pandoc 2.13 .\" -.TH "DFCACHE" "1" "" "Version v2.0.4" "Frivolous \[lq]Dfcache\[rq] Documentation" +.TH "DFCACHE" "1" "" "Version v2.0.5" "Frivolous \[lq]Dfcache\[rq] Documentation" .hy -.SS dfcache +.SH NAME .PP -the P2P cache client of dragonfly -.SS Synopsis +\f[B]dfcache\f[R] \[em] the P2P cache client of dragonfly +.SH SYNOPSIS .PP dfcache is the cache client to of dragonfly that communicates with dfdaemon and operates on files in P2P network, where the P2P network @@ -18,7 +18,7 @@ file from source; but dfcache could only export or download a file that has been imported or added into P2P network by other peer, it\[cq]s the user\[cq]s responsibility to go back to source and add file into P2P network. -.SS Options +.SS OPTIONS .IP .nf \f[C] @@ -37,7 +37,7 @@ network. --workhome string Dfcache working directory \f[R] .fi -.SS SEE ALSO +.SH SEE ALSO .IP \[bu] 2 dfcache completion - generate the autocompletion script for the specified shell @@ -55,3 +55,6 @@ dfcache plugin - show plugin dfcache stat - stat checks if a file exists in P2P cache system .IP \[bu] 2 dfcache version - show version +.SH BUGS +.PP +See GitHub Issues: diff --git a/build/package/docs/dfcache/dfcache.md b/build/package/docs/dfcache/dfcache.md index a44247f04..dac1a0338 100644 --- a/build/package/docs/dfcache/dfcache.md +++ b/build/package/docs/dfcache/dfcache.md @@ -1,4 +1,4 @@ -% DFCACHE(1) Version v2.0.4 | Frivolous "Dfcache" Documentation +% DFCACHE(1) Version v2.0.5 | Frivolous "Dfcache" Documentation # NAME diff --git a/build/package/docs/dfcache/dfcache_delete.md b/build/package/docs/dfcache/dfcache_delete.md index d13c334af..e0d09989e 100644 --- a/build/package/docs/dfcache/dfcache_delete.md +++ b/build/package/docs/dfcache/dfcache_delete.md @@ -1,4 +1,4 @@ -% DFCACHE(1) Version v2.0.4 | Frivolous "Dfcache" Documentation +% DFCACHE(1) Version v2.0.5 | Frivolous "Dfcache" Documentation # NAME diff --git a/build/package/docs/dfcache/dfcache_doc.md b/build/package/docs/dfcache/dfcache_doc.md index e2b804aee..00a3ae55f 100644 --- a/build/package/docs/dfcache/dfcache_doc.md +++ b/build/package/docs/dfcache/dfcache_doc.md @@ -1,4 +1,4 @@ -% DFCACHE(1) Version v2.0.4 | Frivolous "Dfcache" Documentation +% DFCACHE(1) Version v2.0.5 | Frivolous "Dfcache" Documentation # NAME diff --git a/build/package/docs/dfcache/dfcache_export.md b/build/package/docs/dfcache/dfcache_export.md index 7fa9968b0..fed0a6f8b 100644 --- a/build/package/docs/dfcache/dfcache_export.md +++ b/build/package/docs/dfcache/dfcache_export.md @@ -1,4 +1,4 @@ -% DFCACHE(1) Version v2.0.4 | Frivolous "Dfcache" Documentation +% DFCACHE(1) Version v2.0.5 | Frivolous "Dfcache" Documentation # NAME diff --git a/build/package/docs/dfcache/dfcache_import.md b/build/package/docs/dfcache/dfcache_import.md index de2adc38b..4a247bae9 100644 --- a/build/package/docs/dfcache/dfcache_import.md +++ b/build/package/docs/dfcache/dfcache_import.md @@ -1,4 +1,4 @@ -% DFCACHE(1) Version v2.0.4 | Frivolous "Dfcache" Documentation +% DFCACHE(1) Version v2.0.5 | Frivolous "Dfcache" Documentation # NAME diff --git a/build/package/docs/dfcache/dfcache_plugin.md b/build/package/docs/dfcache/dfcache_plugin.md index 302a52449..d60ec3619 100644 --- a/build/package/docs/dfcache/dfcache_plugin.md +++ b/build/package/docs/dfcache/dfcache_plugin.md @@ -1,4 +1,4 @@ -% DFCACHE(1) Version v2.0.4 | Frivolous "Dfcache" Documentation +% DFCACHE(1) Version v2.0.5 | Frivolous "Dfcache" Documentation # NAME diff --git a/build/package/docs/dfcache/dfcache_stat.md b/build/package/docs/dfcache/dfcache_stat.md index e2543bc7c..f80c896e3 100644 --- a/build/package/docs/dfcache/dfcache_stat.md +++ b/build/package/docs/dfcache/dfcache_stat.md @@ -1,4 +1,4 @@ -% DFCACHE(1) Version v2.0.4 | Frivolous "Dfcache" Documentation +% DFCACHE(1) Version v2.0.5 | Frivolous "Dfcache" Documentation # NAME diff --git a/build/package/docs/dfcache/dfcache_version.md b/build/package/docs/dfcache/dfcache_version.md index e55c77b3b..3ebffd2af 100644 --- a/build/package/docs/dfcache/dfcache_version.md +++ b/build/package/docs/dfcache/dfcache_version.md @@ -1,4 +1,4 @@ -% DFCACHE(1) Version v2.0.4 | Frivolous "Dfcache" Documentation +% DFCACHE(1) Version v2.0.5 | Frivolous "Dfcache" Documentation # NAME diff --git a/build/package/docs/dfget.1 b/build/package/docs/dfget.1 index 4739f0892..b3f5a22c2 100644 --- a/build/package/docs/dfget.1 +++ b/build/package/docs/dfget.1 @@ -1,6 +1,6 @@ .\" Automatically generated by Pandoc 2.13 .\" -.TH "DFGET" "1" "" "Version v2.0.4" "Frivolous \[lq]Dfget\[rq] Documentation" +.TH "DFGET" "1" "" "Version v2.0.5" "Frivolous \[lq]Dfget\[rq] Documentation" .hy .SH NAME .PP @@ -17,121 +17,40 @@ pieces from it if it owns them. In addition, dfget has the abilities to provide more advanced functionality, such as network bandwidth limit, transmission encryption and so on. -.SS Options -.TP -\[en]alivetime -alive duration for which uploader keeps no accessing by any uploading -requests, after this period uploader will automatically exit (default -5m0s) -.TP -\[en]cacerts -the cacert file which is used to verify remote server when supernode -interact with the source. -.TP -\[en]callsystem -the name of dfget caller which is for debugging. -Once set, it will be passed to all components around the request to make -debugging easy -.TP -\[en]clientqueue -specify the size of client queue which controls the number of pieces -that can be processed simultaneously -.TP -\[en]console -show log on console, it\[cq]s conflict with `\[en]showbar' -.TP -\[en]daemon-pid -the daemon pid (default \[lq]/tmp/dfdaemon.pid\[rq]) -.TP -\[en]daemon-sock -the unix domain socket address for grpc with daemon (default -\[lq]/tmp/dfdamon.sock\[rq]) -.TP -\[en]dfdaemon -identify whether the request is from dfdaemon -.TP -\[en]expiretime -caching duration for which cached file keeps no accessed by any process, -after this period cache file will be deleted (default 3m0s) -.TP --f, \[en]filter -filter some query params of URL, use char `&' to separate different -params -.TP -\[en]header -http header -.TP --h, \[en]help -help for dfget -.TP -\[en]home -the work home directory of dfget (default -\[lq]/Users/jim/.dragonfly/dfdaemon/\[rq]) -.TP --i, \[en]identifier -the usage of identifier is making different downloading tasks generate -different downloading task IDs even if they have the same URLs. -conflict with \[en]md5. -.TP -\[en]insecure -identify whether supernode should skip secure verify when interact with -the source. -.TP -\[en]ip -IP address that server will listen on (default \[lq]0.0.0.0\[rq]) -.TP --m, \[en]md5 -md5 value input from user for the requested downloading file to enhance -security -.TP -\[en]more-daemon-options -more options passed to daemon by command line, please confirm your -options with \[lq]dfget daemon \[en]help\[rq] -.TP --n, \[en]node -deprecated, please use schedulers instead. -specify the addresses(host:port=weight) of supernodes where the host is -necessary, the port(default: 8002) and the weight(default:1) are -optional. -And the type of weight must be integer -.TP -\[en]notbacksource -disable back source downloading for requested file when p2p fails to -download it -.TP --o, \[en]output -destination path which is used to store the requested downloading file. -It must contain detailed directory and specific filename, for example, -`/tmp/file.mp4' -.TP --p, \[en]pattern -download pattern, must be p2p/seed-peer/source, seed-peer and source do -not support flag \[en]totallimit (default \[lq]p2p\[rq]) -.TP -\[en]port -port number that server will listen on (default 65002) -.TP -\[en]schedulers -the scheduler addresses -.TP --b, \[en]showbar -show progress bar, it is conflict with `\[en]console' -.TP --e, \[en]timeout -timeout set for file downloading task. -If dfget has not finished downloading all pieces of file before -\[en]timeout, the dfget will throw an error and exit -.TP -\[en]totallimit -network bandwidth rate limit for the whole host, in format of -G(B)/g/M(B)/m/K(B)/k/B, pure number will also be parsed as Byte (default -104857600.000000) -.TP --u, \[en]url -URL of user requested downloading file(only HTTP/HTTPs supported) -.TP -\[en]verbose -enable verbose mode, all debug log will be display +.SS OPTIONS +.IP +.nf +\f[C] + --accept-regex string Recursively download only. Specify a regular expression to accept the complete URL. In this case, you have to enclose the pattern into quotes to prevent your shell from expanding it + --callsystem string The caller name which is mainly used for statistics and access control + --config string the path of configuration file with yaml extension name, default is /Users/qiwenbo/.dragonfly/config/dfget.yaml, it can also be set by env var: DFGET_CONFIG + --console whether logger output records to the stdout + --digest string Check the integrity of the downloaded file with digest, in format of md5:xxx or sha256:yyy + --disable-back-source Disable downloading directly from source when the daemon fails to download file + --filter string Filter the query parameters of the url, P2P overlay is the same one if the filtered url is same, in format of key&sign, which will filter \[aq]key\[aq] and \[aq]sign\[aq] query parameters + -H, --header strings url header, eg: --header=\[aq]Accept: *\[aq] --header=\[aq]Host: abc\[aq] + -h, --help help for dfget + --jaeger string jaeger endpoint url, like: http://localhost:14250/api/traces + --level uint Recursively download only. Set the maximum number of subdirectories that dfget will recurse into. Set to 0 for no limit (default 5) + -l, --list Recursively download only. List all urls instead of downloading them. + --logdir string Dfget log directory + --original-offset Range request only. Download ranged data into target file with original offset. Daemon will make a hardlink to target file. Client can download many ranged data into one file for same url. When enabled, back source in client will be disabled + -O, --output string Destination path which is used to store the downloaded file, it must be a full path + -p, --pattern string The downloading pattern: p2p/seed-peer/source + --pprof-port int listen port for pprof, 0 represents random port (default -1) + --range string Download range. Like: 0-9, stands download 10 bytes from 0 -9, [0:9] in real url + --ratelimit string The downloading network bandwidth limit per second in format of G(B)/g/M(B)/m/K(B)/k/B, pure number will be parsed as Byte, 0 is infinite (default \[dq]100.0MB\[dq]) + -r, --recursive Recursively download all resources in target url, the target source client must support list action + --reject-regex string Recursively download only. Specify a regular expression to reject the complete URL. In this case, you have to enclose the pattern into quotes to prevent your shell from expanding it + --service-name string name of the service for tracer (default \[dq]dragonfly-dfget\[dq]) + -b, --show-progress Show progress bar, it conflicts with --console + --tag string Different tags for the same url will be divided into different P2P overlay, it conflicts with --digest + --timeout duration Timeout for the downloading task, 0 is infinite + -u, --url string Download one file from the url, equivalent to the command\[aq]s first position argument + --verbose whether logger use debug level + --workhome string Dfget working directory +\f[R] +.fi .SH BUGS .PP See GitHub Issues: diff --git a/build/package/docs/dfget.1.md b/build/package/docs/dfget.1.md index 58c0d8863..d90fff955 100644 --- a/build/package/docs/dfget.1.md +++ b/build/package/docs/dfget.1.md @@ -1,4 +1,4 @@ -% DFGET(1) Version v2.0.4 | Frivolous "Dfget" Documentation +% DFGET(1) Version v2.0.5 | Frivolous "Dfget" Documentation # NAME diff --git a/build/package/docs/dfstore/dfstore-copy.1 b/build/package/docs/dfstore/dfstore-copy.1 index cf90821bb..81a73fc7e 100644 --- a/build/package/docs/dfstore/dfstore-copy.1 +++ b/build/package/docs/dfstore/dfstore-copy.1 @@ -1,6 +1,6 @@ .\" Automatically generated by Pandoc 2.13 .\" -.TH "DFCACHE" "1" "" "Version v2.0.4" "Frivolous \[lq]Dfstore\[rq] Documentation" +.TH "DFCACHE" "1" "" "Version v2.0.5" "Frivolous \[lq]Dfstore\[rq] Documentation" .hy .SH NAME .PP diff --git a/build/package/docs/dfstore/dfstore-remove.1 b/build/package/docs/dfstore/dfstore-remove.1 index 69d89f8db..525a88a41 100644 --- a/build/package/docs/dfstore/dfstore-remove.1 +++ b/build/package/docs/dfstore/dfstore-remove.1 @@ -1,6 +1,6 @@ .\" Automatically generated by Pandoc 2.13 .\" -.TH "DFCACHE" "1" "" "Version v2.0.4" "Frivolous \[lq]Dfstore\[rq] Documentation" +.TH "DFCACHE" "1" "" "Version v2.0.5" "Frivolous \[lq]Dfstore\[rq] Documentation" .hy .SH NAME .PP diff --git a/build/package/docs/dfstore/dfstore-version.1 b/build/package/docs/dfstore/dfstore-version.1 index 4da2ec09e..1a9b3b43c 100644 --- a/build/package/docs/dfstore/dfstore-version.1 +++ b/build/package/docs/dfstore/dfstore-version.1 @@ -1,6 +1,6 @@ .\" Automatically generated by Pandoc 2.13 .\" -.TH "DFCACHE" "1" "" "Version v2.0.4" "Frivolous \[lq]Dfstore\[rq] Documentation" +.TH "DFCACHE" "1" "" "Version v2.0.5" "Frivolous \[lq]Dfstore\[rq] Documentation" .hy .SH NAME .PP diff --git a/build/package/docs/dfstore/dfstore.1 b/build/package/docs/dfstore/dfstore.1 index cef91403e..83cef7cad 100644 --- a/build/package/docs/dfstore/dfstore.1 +++ b/build/package/docs/dfstore/dfstore.1 @@ -1,6 +1,6 @@ .\" Automatically generated by Pandoc 2.13 .\" -.TH "DFCACHE" "1" "" "Version v2.0.4" "Frivolous \[lq]Dfstore\[rq] Documentation" +.TH "DFCACHE" "1" "" "Version v2.0.5" "Frivolous \[lq]Dfstore\[rq] Documentation" .hy .SH NAME .PP diff --git a/build/package/docs/dfstore/dfstore.md b/build/package/docs/dfstore/dfstore.md index fb284c28e..7017e17a4 100644 --- a/build/package/docs/dfstore/dfstore.md +++ b/build/package/docs/dfstore/dfstore.md @@ -1,4 +1,4 @@ -% DFCACHE(1) Version v2.0.4 | Frivolous "Dfstore" Documentation +% DFCACHE(1) Version v2.0.5 | Frivolous "Dfstore" Documentation # NAME diff --git a/build/package/docs/dfstore/dfstore_copy.md b/build/package/docs/dfstore/dfstore_copy.md index ee6a67ffc..ab6944c49 100644 --- a/build/package/docs/dfstore/dfstore_copy.md +++ b/build/package/docs/dfstore/dfstore_copy.md @@ -1,4 +1,4 @@ -% DFCACHE(1) Version v2.0.4 | Frivolous "Dfstore" Documentation +% DFCACHE(1) Version v2.0.5 | Frivolous "Dfstore" Documentation # NAME diff --git a/build/package/docs/dfstore/dfstore_remove.md b/build/package/docs/dfstore/dfstore_remove.md index 873aeca88..afbecef3d 100644 --- a/build/package/docs/dfstore/dfstore_remove.md +++ b/build/package/docs/dfstore/dfstore_remove.md @@ -1,4 +1,4 @@ -% DFCACHE(1) Version v2.0.4 | Frivolous "Dfstore" Documentation +% DFCACHE(1) Version v2.0.5 | Frivolous "Dfstore" Documentation # NAME diff --git a/build/package/docs/dfstore/dfstore_version.md b/build/package/docs/dfstore/dfstore_version.md index 48bcd0d02..3e318799a 100644 --- a/build/package/docs/dfstore/dfstore_version.md +++ b/build/package/docs/dfstore/dfstore_version.md @@ -1,4 +1,4 @@ -% DFCACHE(1) Version v2.0.4 | Frivolous "Dfstore" Documentation +% DFCACHE(1) Version v2.0.5 | Frivolous "Dfstore" Documentation # NAME diff --git a/deploy/docker-compose/docker-compose.yaml b/deploy/docker-compose/docker-compose.yaml index 582a7e06d..cea80a57d 100644 --- a/deploy/docker-compose/docker-compose.yaml +++ b/deploy/docker-compose/docker-compose.yaml @@ -28,7 +28,7 @@ services: retries: 30 manager: - image: dragonflyoss/manager:v2.0.4 + image: dragonflyoss/manager:v2.0.5 container_name: manager network_mode: host depends_on: @@ -45,7 +45,7 @@ services: retries: 30 dfdaemon: - image: dragonflyoss/dfdaemon:v2.0.4 + image: dragonflyoss/dfdaemon:v2.0.5 depends_on: - manager - scheduler @@ -63,7 +63,7 @@ services: - ./config/dfget.yaml:/etc/dragonfly/dfget.yaml:ro scheduler: - image: dragonflyoss/scheduler:v2.0.4 + image: dragonflyoss/scheduler:v2.0.5 depends_on: - manager container_name: scheduler @@ -79,7 +79,7 @@ services: - ./config/scheduler.yaml:/etc/dragonfly/scheduler.yaml:ro seed-peer: - image: dragonflyoss/dfdaemon:v2.0.4 + image: dragonflyoss/dfdaemon:v2.0.5 depends_on: - manager - scheduler diff --git a/deploy/helm-charts b/deploy/helm-charts index 32b790ece..f3f277850 160000 --- a/deploy/helm-charts +++ b/deploy/helm-charts @@ -1 +1 @@ -Subproject commit 32b790eceb6e936b9f29b9d10889580f89c4c9b6 +Subproject commit f3f277850f2b4ceccc8c021340141cc2f7c5f168 diff --git a/version/version.go b/version/version.go index b813ac027..47be4ea21 100644 --- a/version/version.go +++ b/version/version.go @@ -28,7 +28,7 @@ import ( var ( Major = "2" Minor = "0" - GitVersion = "v2.0.4" + GitVersion = "v2.0.5" GitCommit = "unknown" Platform = osArch BuildTime = "unknown"