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

Real world IPFS scenarios we want to test #211

Open
whyrusleeping opened this issue Jan 6, 2017 · 2 comments
Open

Real world IPFS scenarios we want to test #211

whyrusleeping opened this issue Jan 6, 2017 · 2 comments

Comments

@whyrusleeping
Copy link
Member

whyrusleeping commented Jan 6, 2017

As we move towards leveling up our testing infrastructure, I think we need to clearly define some scenarios we expect ipfs to be used in, and make tests to verify these things work continuously.

Some of these will be very basic, some may be more complex. This list is not complete or exhaustive, its just a start of some things we need to focus on.

Moving a medium sized file across the internet

One long lived node adds a file of roughly 200MB. Other nodes, a mixture of long lived and short lived newly spawned nodes fetch this file periodically (and gc the file out after their portion of the test is complete).

Swarm downloading a small file

Some small number of nodes adds a file ( probably less than 10MB, but big enough to be more than a few blocks). Then a large number of nodes (at least ten times the number of adder nodes) starts fetching that file all at the same time.

Verify cross network connectivity

Some long lived node (or set of nodes) acts as the 'connector'. Periodically, new nodes join the network and bootstrap to a small portion of the network, then the connector tries to ping the new node so that they connect and start exchanging some data between them.

Node reboots during file transfers don't cause issues

Node A adds a fairly large file, and Node B starts fetching it. Part of the way through the transfer node A should go offline, and then come back online after a short period of time.
The transfer should continue shortly after the node comes back online.

pubsub swarm over long period of time

Start up a decent number of nodes (at least 20, perhaps up to 100) and connect them sparsely. Have them all subscribe to a subset of some topic set and then have them publish messages at random to the swarm, ensuring that all subscribed nodes received messages they are expected to.

TODO: add more

cc @lgierth @Kubuxu @FrankPetrilli @victorbjelkholm @diasdavid

@SidHarder
Copy link
Member

@whyrusleeping How would you define long lived and short lived. In minutes, hours, days?

@whyrusleeping
Copy link
Member Author

whyrusleeping commented Feb 27, 2017 via email

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