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

Testing Harness for Large IPFS Networks #280

Open
JGAntunes opened this issue Feb 13, 2018 · 2 comments
Open

Testing Harness for Large IPFS Networks #280

JGAntunes opened this issue Feb 13, 2018 · 2 comments

Comments

@JGAntunes
Copy link
Member

Hey everyone!

Sorry if this isn't the best place to ask this (point me in the right direction if it isn't so). I'm looking for a way to spin up and instrument a large test net of IPFS nodes. Some of my requirements are:

  • Spin up js-ipfs nodes in nodejs
  • Spin up js-ipfs nodes in a browser like env (like phatom JS or puppeteer)
  • Interact with these nodes, run commands and applications at each node
  • Simulate some kind of network disturbance (e.g. by making a node idle, closing connections, etc.)
  • Extract metrics such as bandwidth, RAM, CPU and disk used

I've found out a couple of projects such as:

But all of them either look like a WIP or only cater for go-ipfs. Is there something out there that could help me achieve this?

@dryajov
Copy link
Member

dryajov commented Feb 15, 2018

Hi @JGAntunes!

Spin up js-ipfs nodes in nodejs
Spin up js-ipfs nodes in a browser like env (like phatom JS or puppeteer)
Interact with these nodes, run commands and applications at each node

This are possible with https://github.com/ipfs/js-ipfsd-ctl. This is a tool that allows spawning go, js and proc (running in the same process as ipfsd-ctl) nodes, it also allows doing that from browser environments. It uses ipfs-api to communicate with the spawned nodes.

As for your other point, I'm not entirely sure, but my understanding is that they are go centric at this point - don't quote me on that tho, others will surely have more insight.

// cc @victorbjelkholm @diasdavid @lgierth

@JGAntunes
Copy link
Member Author

Hey @dryajov!

I wasn't considering js-ipfsd-ctl but might be useful, thanks for the feedback!

Yeah, AFAIK all the other solutions look fairly go-centric and the test-lab looks to be in early stages still. After speaking with @diasdavid he pointed me out to some other possibilities like http://mininet.org/ and https://github.com/MetaMask/mesh-testing. I'll be looking into this for the following weeks and will try to leave feedback here as soon as I can 👍

@daviddias daviddias changed the title Testing framework Testing Harness for Large IPFS Networks Feb 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants