Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

simple 'live integration' tests #150

Closed
whyrusleeping opened this issue Jan 30, 2016 · 0 comments
Closed

simple 'live integration' tests #150

whyrusleeping opened this issue Jan 30, 2016 · 0 comments
Labels
need/community-input Needs input from the wider community

Comments

@whyrusleeping
Copy link
Member

We need to start making some live integration tests on the network. Lets discuss some of those ideas here.

The first and (i think) easiest one to do, would be to spin up a node, add a random 16MB file (or directory), send that hash to another node, and then get it on that node (or even just curl it through the gateway). We should time the following things:

on our newly spun up node:

  • init
  • daemon start
  • add

on the 'long running' network node:

  • time to find providers
  • time to connect to provider
  • time to first block
  • total time of operation

The following stats should also be logged:

  • bandwidth usage (ipfs stats bw) throughout the operation (maybe a graph? idk)
    • per service, so we can see dht activity vs bitswap
  • cpu load

A very simple first hack could be as easy as:

ipfs init -f
time ipfs daemon &
HASH=$(dd if=/dev/urandom bs=4M count=4 | ipfs add -q)
time curl https://ipfs.io/ipfs/$HASH > /dev/null
@ghost ghost mentioned this issue Mar 22, 2016
59 tasks
@ghost ghost added the monitoring label Nov 3, 2016
@eefahy eefahy added need/community-input Needs input from the wider community and removed monitoring labels Aug 10, 2018
@ghost ghost unassigned kyledrake Mar 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
need/community-input Needs input from the wider community
Projects
None yet
Development

No branches or pull requests

4 participants