Skip to content

Commit

Permalink
Merge pull request dragonflyoss#954 from yunfeiyanggzq/faq
Browse files Browse the repository at this point in the history
docs:add FAQ.md abot how dfget connect to supernodes in mul-supernode mode
  • Loading branch information
starnop authored Sep 30, 2019
2 parents eac1b43 + 6957c4f commit 3266871
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,4 +313,11 @@ If you are in China,docker container uses UTC time(Coordinated Universal Time) a

## How to join Dragonfly as a member

Please check the [CONTRIBUTING.md](CONTRIBUTING.md#join-dragonfly-as-a-member)
Please check the [CONTRIBUTING.md](CONTRIBUTING.md#join-dragonfly-as-a-member)

## How dfget connect to supernodes in multiple-supernode mode

If supernodes are set in multiple-supernode mode, dfget will connect to one of these supernodes randomly.
Because dfget will randomize the order of all supernodes it knows and store them in a slice.
If dfget connects to the first supernode unsuccessfully, it will connect to the second supernode in the slice.
And so on until all the known supernodes fail to access twice, the dfget will exit with download failure.

0 comments on commit 3266871

Please sign in to comment.