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

Low Power Mode #4137

Open
jcgruenhage opened this issue Aug 11, 2017 · 6 comments
Open

Low Power Mode #4137

jcgruenhage opened this issue Aug 11, 2017 · 6 comments

Comments

@jcgruenhage
Copy link

@jcgruenhage jcgruenhage commented Aug 11, 2017

Type: Feature

Severity: Medium

Description:

IPFS on Android (with IPFSDroid) already works kinda well, but having the app running is currently not an option, because it sucks your battery empty in no time. Would it be possible, to implement an API call, that switches a node into low power (and possibly also into low bandwidth) mode, so that running this on mobile devices is more doable? Killing the node all the time would be another way, but that does kinda defeat the purpose of IPFS.

@Kubuxu
Copy link
Member

@Kubuxu Kubuxu commented Aug 11, 2017

First step would be probably running go-ipfs in DHT client mode:
ipfs daemon --routing=dhtclient

We are working on connection closing which should further reduce the number of connections thus reducing bandwidth and power usage.

@jcgruenhage
Copy link
Author

@jcgruenhage jcgruenhage commented Aug 11, 2017

Thanks :)

@whyrusleeping
Copy link
Member

@whyrusleeping whyrusleeping commented Aug 15, 2017

Yeah, as @Kubuxu pointed out you probably want to use --routing=dhtclient. Its probably also worth turning off the reprovider with: ipfs config Reprovider.Interval "0" so your node doesnt rebroadcast all this things it has every 12 hours.

@Stebalien
Copy link
Member

@Stebalien Stebalien commented Sep 24, 2018

Note: Bitswap sessions (#3786) will help reduce background traffic significantly.

@hazae41
Copy link

@hazae41 hazae41 commented Dec 15, 2018

Sweet-IPFS 0.2.2 adds a "low power" mode by using this config

"Swarm": {
    "ConnMgr": {
      "LowWater": 20,
      "HighWater": 100,
      "GracePeriod": "80s"
    }
  }
@momack2 momack2 added this to Inbox in ipfs/go-ipfs May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants