Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Use a realistic test network w/ DHT#136

Closed
hannahhoward wants to merge 3 commits into
masterfrom
feat/real-test-net
Closed

Use a realistic test network w/ DHT#136
hannahhoward wants to merge 3 commits into
masterfrom
feat/real-test-net

Conversation

@hannahhoward

Copy link
Copy Markdown
Contributor

Goals

Setup benchmarks that more closely approximate conditions of real IPFS usage -- namely, a real DHT and real provider queries

Implementation

  • Modify StreamNet to allow configuring it with either mock routing or a real Kademlia DHT
  • Create a new bench mark pattern that sets up a mock net, where not all nodes are connected to one another initially (and can be connected in a variety of patterns), where some nodes have some blocks and announce what blocks they have to the DHT, and test one peer attempts to fetch the blocks from others
  • See benchmarks_test.go for this implementation. Probably can use some cleanup -- and the node counts right now are low specifically because the DHT is not fast -- but not even under these conditions the test takes a lot longer than w/o a DHT and with all nodes connected immediately

@hannahhoward hannahhoward force-pushed the feat/real-test-net branch 2 times, most recently from 4299f42 to 79043a3 Compare June 17, 2019 13:47
Support a real DHT in stream net. Also adds a benchmark which should trigger some find provider
calls.
Account for times that routing table is not setup when provide is called
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants