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

Comments

Projects
None yet
6 participants
@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

This comment has been minimized.

Member

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

This comment has been minimized.

jcgruenhage commented Aug 11, 2017

Thanks :)

@whyrusleeping

This comment has been minimized.

Member

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

This comment has been minimized.

Contributor

Stebalien commented Sep 24, 2018

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

@jbshirk

This comment has been minimized.

@Hazae41

This comment has been minimized.

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"
    }
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment