Commit 6f27081
swarm: implement smart dialing logic (#2260)
* implement smart dialing
* add more comments and tests
* change address ranking logic to dial one quic address before others
* add randomized worker loop tests
* simplify priority queue implementation
* improve DialRanker docs
* one more test
* add explanatory comments and rename variables
* fix allocations in dialQueue
* fix allocations in dialRanker
* Apply suggestions from code review
Co-authored-by: Marten Seemann <martenseemann@gmail.com>
* fix comments
* add logging
* add holepunching test
* add metrics for tracking dial prioritisation impact
clean up redundant address filtering committed
* add test for webtransport filtering
* update changelog
* fix flaky test
* update dashboard
* update dial ranking delay dashboard to use pie chart
* change <=1ms label to 'No delay' in dashboard
* add defensive check to map presence
---------
Co-authored-by: Marten Seemann <martenseemann@gmail.com>1 parent 0f9ad8c commit 6f27081
File tree
15 files changed
+2127
-270
lines changed- config
- core/network
- dashboards/swarm
- p2p/net/swarm
15 files changed
+2127
-270
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
11 | 23 | | |
12 | 24 | | |
13 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
126 | 128 | | |
127 | 129 | | |
128 | 130 | | |
| |||
173 | 175 | | |
174 | 176 | | |
175 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
176 | 181 | | |
177 | 182 | | |
178 | 183 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
190 | 200 | | |
191 | 201 | | |
192 | 202 | | |
| |||
0 commit comments