filecoin-project / oni

👹 (DEPRECATED; see README) Project Oni | Network Validation
https://docs.google.com/document/d/16jYL--EWYpJhxT9bakYq7ZBGLQ9SB940Wd1lTDOAbNE
7 stars 5 forks source link

wip graphsync stress test. #252

Closed raulk closed 3 years ago

raulk commented 4 years ago

A stress test that takes three parameters:

It supports two groups:

Both provider and requestor will do an iteration for every latency x bandwidth tuple.

For every iteration, the provider generates a new random file, and publishes the CID to a sync topic. It then sets the network latency for that round. The requestor awaits the CID, and also awaits for the network to be configured, and then performs a graphsync request for the CID.

Instructions

To run, first install testground as indicated in the Testground README.

Then clone this repo and this branch:

$ testground daemon # start the testground daemon in one tab

$ git clone https://github.com/filecoin-project/oni.git
$ cd oni
$ testground plan import --from graphsync
created symlink /Users/raul/testground/plans/graphsync -> graphsync
imported plans:
graphsync stress
$ testground run composition -f ./graphsync/_compositions/stress.toml
...

TODO

All readings seem to be the same. This is odd. I think graphsync works asynchronously, but I'm not waiting for each request to complete. @hannahhoward?