Skip to content
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

bandwidth metering on streams #969

Merged
merged 1 commit into from
Apr 1, 2015
Merged

bandwidth metering on streams #969

merged 1 commit into from
Apr 1, 2015

Conversation

whyrusleeping
Copy link
Member

Add in bandwidth tracking per peer, per protocol, and overall. Also have a basic CLI command to access this data.

  • Query IPFS daemon statistics
  • bw --poll seems more natural.
  • --period=<duration> flag in bw-poll
  • file issue to do ndjson in cmds commands lib should use ndjson #982
  • fix the Muxer Handle interface issue
  • SetConnWrapper on listener
  • Host option problem
  • Handle race failure

@whyrusleeping whyrusleeping added status/in-progress In progress topic/libp2p Topic libp2p topic/bandwidth reduction Topic bandwidth reduction labels Mar 28, 2015
@whyrusleeping whyrusleeping self-assigned this Mar 29, 2015
@jbenet jbenet modified the milestone: Resource Constraints Mar 29, 2015
@whyrusleeping whyrusleeping force-pushed the feat/bw-meter branch 2 times, most recently from 3689d9a to f0031af Compare March 29, 2015 07:36

var StatsCmd = &cmds.Command{
Helptext: cmds.HelpText{
Tagline: "Query IPFS daemon statistics",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe just Query IPFS daemon statistics -- we could have other stats there later, like number of objects stored on the repo, etc.

@jbenet
Copy link
Member

jbenet commented Mar 29, 2015

@whyrusleeping done with CR.

  • Query IPFS daemon statistics
  • bw --poll seems more natural.
  • --period=<duration> flag in bw-poll
  • file issue to do ndjson in cmds commands lib should use ndjson #982
  • fix the Muxer Handle interface issue
  • SetConnWrapper on listener
  • Host option problem

@jbenet
Copy link
Member

jbenet commented Mar 30, 2015

Fails race. ideally would drop down goroutine number back down. otherwise, need to lower numbers in github.com/jbenet/go-ipfs/p2p/net/mock 55.313s when running with race.

  • handle race
  • rebase commits so all of them pass tests

@jbenet
Copy link
Member

jbenet commented Apr 1, 2015

  • fix race (as of 2503c7b) with host.bwc
  • f8b64c9 lgtm. let's squash it in to make sure tests pass. (travis doesn't check all commits)

@whyrusleeping whyrusleeping force-pushed the feat/bw-meter branch 3 times, most recently from 7f25f57 to 2c8cb9f Compare April 1, 2015 02:56
humanize bandwidth output

instrument conn.Conn for bandwidth metrics

add poll command for continuous bandwidth reporting

move bandwidth tracking onto multiaddr net connections

another mild refactor of recording locations

address concerns from PR

lower mock nodes in race test due to increased goroutines per connection
@jbenet
Copy link
Member

jbenet commented Apr 1, 2015

LGTM RFM

jbenet added a commit that referenced this pull request Apr 1, 2015
bandwidth metering on streams
@jbenet jbenet merged commit 178a64d into master Apr 1, 2015
@jbenet jbenet removed the codereview label Apr 1, 2015
@jbenet jbenet deleted the feat/bw-meter branch April 1, 2015 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/bandwidth reduction Topic bandwidth reduction topic/libp2p Topic libp2p
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants