Skip to content

Add indicators for bitswap status: which peers #1037

Closed

Description

@Stebalien

It would be nice to be able to see which peers we are exchanging data with. We can get this information with ipfs bitswap stat and ipfs bitswap ledger.

Context: ipfs/kubo#3330.

Activity

  1. changed the title [-]Bitswap Status[/-] [+]Add indicators for bitswap status: which peers[/+] on Apr 6, 2020
  2. added
    exp/intermediatePrior experience is likely helpful
    effort/daysEstimated to take multiple days, but less than a week
    kind/enhancementA net-new feature or improvement to an existing feature
    P2Medium: Good to have, but can wait until someone steps up
    topic/design-uxUX strategy, research, not solely visual design
    topic/design-visualVisual design ONLY, not part of a larger UX effort
    on Apr 6, 2020
  3. jessicaschilling commented on Aug 20, 2020

    @jessicaschilling
    Contributor

    @Stebalien and @lidel: This is an old issue, but wanted to check in - maybe a good bounty candidate?

    OTMH, I'd imagine this as being represented in the UI in the Peers screen table (sortable column), but would welcome any other approaches you'd have in mind. Thanks!

  4. Stebalien commented on Aug 20, 2020

    @Stebalien
    MemberAuthor

    My main concern with making this a bounty is that it needs some design (ux) work first. But other than that, yes.

    Showing this on the peers table sounds reasonable. I'd love to see rates on the map as well, but that would require tracking this ipfs bitswap ledger over time.

  5. jessicaschilling commented on Aug 20, 2020

    @jessicaschilling
    Contributor

    My main concern with making this a bounty is that it needs some design (ux) work first

    @Stebalien too simplistic?
    image

  6. lidel commented on Aug 25, 2020

    @lidel
    Contributor

    @jessicaschilling fysa we are able to tell how much data was sent / received per peer historically, and "at the moment".

    • Perhaps we could display RateIn / RateOut next to the green dot? (or on hover, like we do for Connection column)
      • It is useful to know if peer's transfer is a little droplet, or a river
    • Should we also display TotalIn / TotalOut for peers which don't have green dot, but have those values above zero?
    • (loose thought) by comparing In/Out we are able to tell the dominant direction of the data flow, perhaps we could reuse In/Out colors from bandwidth graph on Status page?

    Some examples below, for your reference.

    Stat source examples

    Realtime stats per peer

    (we use ipfs stats bw for bandwidth graph on Status page, but we don't filter per peer, just get global stats)

    $ ipfs stats bw -p QmPeer1
    Bandwidth
    TotalIn: 207 kB
    TotalOut: 940 kB
    RateIn: 0 B/s
    RateOut: 0 B/s

    Historical stats

    ipfs bitswap ledger keeps track of past transfers, most numbers will overlap with totals from ipfs stats bw.

    Peer that did not exchange data with us yet (no icon):

    $ ipfs bitswap ledger QmPeer2
    Ledger for QmPeer2
    Debt ratio:	0.000000
    Exchanges:	0
    Bytes sent:	0
    Bytes received:	0

    Peer that fetched stuff from us (sent vs received, or just look at ratio)

    $ ipfs bitswap ledger QmPeer3
    Ledger for QmPeer3
    Debt ratio:	561.000000
    Exchanges:	1
    Bytes sent:	561
    Bytes received:	0
  7. jessicaschilling commented on Aug 26, 2020

    @jessicaschilling
    Contributor

    Closing this one in favor of general Peers page table enhancement in #1602.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium: Good to have, but can wait until someone steps upeffort/daysEstimated to take multiple days, but less than a weekexp/intermediatePrior experience is likely helpfulkind/enhancementA net-new feature or improvement to an existing featuretopic/design-front-endFront-end implementation of UX/UI worktopic/design-uxUX strategy, research, not solely visual designtopic/design-visualVisual design ONLY, not part of a larger UX effort

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions