dragonflyoss / Dragonfly2

Dragonfly is an open source P2P-based file distribution and image acceleration system. It is hosted by the Cloud Native Computing Foundation (CNCF) as an Incubating Level Project.
https://d7y.io
Apache License 2.0
2.22k stars 281 forks source link

feat: if host is seed client, set concurrentUploadLimit when dynconfig refreshes #3320

Closed gaius-qi closed 3 months ago

gaius-qi commented 3 months ago

Description

Related Issue

Motivation and Context

Screenshots (if appropriate)

Types of changes

Checklist

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 73.33333% with 4 lines in your changes missing coverage. Please review.

Project coverage is 52.69%. Comparing base (28915c1) to head (c6c1473).

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3320/graphs/tree.svg?width=650&height=150&src=pr&token=PUICJYSAT7&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss)](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3320?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss) ```diff @@ Coverage Diff @@ ## main #3320 +/- ## ========================================== + Coverage 52.66% 52.69% +0.02% ========================================== Files 192 192 Lines 20423 20427 +4 ========================================== + Hits 10756 10763 +7 + Misses 8861 8860 -1 + Partials 806 804 -2 ``` | [Flag](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3320/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3320/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss) | `52.69% <73.33%> (+0.02%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3320?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss) | Coverage Δ | | |---|---|---| | [scheduler/resource/seed\_peer\_client.go](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3320?src=pr&el=tree&filepath=scheduler%2Fresource%2Fseed_peer_client.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss#diff-c2NoZWR1bGVyL3Jlc291cmNlL3NlZWRfcGVlcl9jbGllbnQuZ28=) | `77.92% <ø> (ø)` | | | [scheduler/resource/task.go](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3320?src=pr&el=tree&filepath=scheduler%2Fresource%2Ftask.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss#diff-c2NoZWR1bGVyL3Jlc291cmNlL3Rhc2suZ28=) | `82.15% <100.00%> (+0.25%)` | :arrow_up: | | [scheduler/service/service\_v2.go](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3320?src=pr&el=tree&filepath=scheduler%2Fservice%2Fservice_v2.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss#diff-c2NoZWR1bGVyL3NlcnZpY2Uvc2VydmljZV92Mi5nbw==) | `82.31% <100.00%> (+0.01%)` | :arrow_up: | | [scheduler/scheduling/scheduling.go](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3320?src=pr&el=tree&filepath=scheduler%2Fscheduling%2Fscheduling.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss#diff-c2NoZWR1bGVyL3NjaGVkdWxpbmcvc2NoZWR1bGluZy5nbw==) | `84.05% <50.00%> (ø)` | | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3320/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss)