-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
better output for ipfs stats bw
#4740
Comments
Related #2923 |
I think the best we can reasonably do in the mid-term is to have bandwidth per session. Where most sessions will be created to transfer a given graph (rooted by some cid) |
I made a "top" for bandwidth: Some things struck me whilst building this:
|
Right here.
It can be useful when tracking bandwidth usage within a cluster of IPFS nodes.
I agree but we'll have to be very careful not to store too many CIDs in memory (can quickly run into performance issues). |
Currently, the only way I can think of that would let you measure the bandwidth of any particular CID, is to monitor However, this is far from ideal, as you we can't know how much of a block was actually succeffuly downloaded; just how many times it was "hit". Which I suppose may be "good enough" for most uses. Any UI can just "estimate" the bandwidth for any given block by multiplying how many times its been hit by the full size of the block. |
I'm looking at how we can make npm-on-ipfs more compelling, and being able to show the users a sharing ratio per CID or really, per module feels like important info for helping encourage the co-hosting of things. @raulk had a quick look in to it and suggested that the stats would need to be tracked in the bitswap impl...
|
This command should be able to give a breakdown of bandwidth usage per protocol or per peer (not individually, but in a table) so you can easily see which protocol or peer is consuming the most bandwidth.
The text was updated successfully, but these errors were encountered: