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.24k stars 285 forks source link

exceeds the defaultDepthLimit depth limit of the tree #1450

Closed 1037husterljx closed 2 years ago

1037husterljx commented 2 years ago

Bug report:

When the depth of candidateParent or peer is defaultDepthLimit (4), scheduling will fail no matter how and triggering RetryLimit returns 5006 error

Expected behavior:

Regardless of the depth, it should be possible to schedule successfully.

How to reproduce it:

Use 60 clients and three seed peers to start downloading 1G tasks at the same time, dyconfig loadlimit = 15

Environment:

gaius-qi commented 2 years ago

Quick Solution: Deletes the current peer depth calculation for the depth limit.

Future Solution: Task uses a DAG(Directed Acyclic Graph) for abstraction.