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

Add low power init profile #4154

Merged
merged 3 commits into from Mar 25, 2018

Conversation

Projects
None yet
5 participants
@magik6k
Member

magik6k commented Aug 20, 2017

For context #4137

@magik6k magik6k force-pushed the feat/lowpower-profile branch 2 times, most recently from cc065aa to ecf2b6a Aug 20, 2017

@whyrusleeping

This comment has been minimized.

Member

whyrusleeping commented Aug 25, 2017

I like this, but perhaps we should hold off on merging until we have a few more options set? If someone inits with this profile, and we later add more things to it, they wont get those benefits.

As it stands, i'm not sure if these two options are worth enough to merit their own profile at this point.

@magik6k

This comment has been minimized.

Member

magik6k commented Aug 26, 2017

Agreed, having an option to apply profile to the config after it was generated might be an option too, though for a separate PR.

@whyrusleeping

This comment has been minimized.

Member

whyrusleeping commented Oct 29, 2017

We should add a lower connection limits here, also when we get this implemented, set the default for this to 'dhtclient'

@magik6k

This comment has been minimized.

Member

magik6k commented Oct 29, 2017

This PR actually implements the routing option (under Discovery.Routing)

- `dht` (default)
- `dhtclient`
- `none`
- `supernode` (deprecated)

This comment has been minimized.

@Stebalien

Stebalien Oct 30, 2017

Contributor

This has now been removed.

@@ -36,6 +36,8 @@ Available profiles:
running IPFS on machines with public IPv4 addresses.
'test' - Reduces external interference of IPFS daemon, this
is useful when using the daemon in test environments.
'lowpower' - Reduces daemon overhead on the system. May affect node

This comment has been minimized.

@Stebalien

Stebalien Oct 30, 2017

Contributor

Maybe 'laptop'? Honestly, laptop users should use this (less problems with random WiFis, fewer ephemeral DHT nodes, etc. Alternatively, we could have a separate laptop mode that occasionally reprovides pin roots.

This comment has been minimized.

@magik6k

magik6k Oct 31, 2017

Member

Probably the second option, I meant this setting for mobile devices (Android phones, etc.)

This comment has been minimized.

@victorb

victorb Jan 23, 2018

Member

"May affect node functionality" should be better described to tell what functionality it would affect. Seemingly, it seems to run the dht in client mode and also set really low ConnMgr values, meaning it would probably take longer to find and download content. Would be nice to add that to the description.

This comment has been minimized.

@magik6k
@@ -2,6 +2,9 @@ package config
type Discovery struct {
MDNS MDNS
//Routing sets default daemon routing mode.
Routing string

This comment has been minimized.

@whyrusleeping

whyrusleeping Oct 31, 2017

Member

I would make Routing its own top level section, and then give it a Type field (so we can add other parameters later)

@magik6k magik6k force-pushed the feat/lowpower-profile branch from ecf2b6a to 24be69b Oct 31, 2017

@wafflebot wafflebot bot added the in progress label Oct 31, 2017

@magik6k

This comment has been minimized.

Member

magik6k commented Oct 31, 2017

We should chose some connection limiter settings here. Would something like 75/100 work? Or is it a 'more testing is needed' kind of situation?

@whyrusleeping

This comment has been minimized.

Member

whyrusleeping commented Oct 31, 2017

@magik6k I think that with dhtclient mode, even something as low as 20/40 could work well if we set a relatively high grace period (1m or more).

@magik6k magik6k referenced this pull request Nov 1, 2017

Merged

config: command to apply profile after init #4195

3 of 3 tasks complete

@magik6k magik6k force-pushed the feat/lowpower-profile branch from 24be69b to a3f1ea5 Dec 12, 2017

@magik6k magik6k force-pushed the feat/lowpower-profile branch from a3f1ea5 to fe41a6d Jan 22, 2018

@magik6k

This comment has been minimized.

Member

magik6k commented Jan 22, 2018

Rebased

@whyrusleeping

This comment has been minimized.

Member

whyrusleeping commented Jan 22, 2018

This LGTM, weird that so much of CI is angry though...

@magik6k magik6k force-pushed the feat/lowpower-profile branch 3 times, most recently from 76dbecf to b1afa87 Jan 22, 2018

@magik6k

This comment has been minimized.

Member

magik6k commented Jan 23, 2018

Made CI less angry

@whyrusleeping

This comment has been minimized.

Member

whyrusleeping commented Jan 23, 2018

The travis OSX backlog is pretty nuts...

@magik6k magik6k force-pushed the feat/lowpower-profile branch 2 times, most recently from 1c090bb to 0497f57 Jan 23, 2018

@magik6k magik6k force-pushed the feat/lowpower-profile branch from 0497f57 to d767a43 Mar 23, 2018

@magik6k magik6k requested a review from Kubuxu as a code owner Mar 23, 2018

@magik6k

This comment has been minimized.

Member

magik6k commented Mar 23, 2018

Rebased

@Kubuxu

This comment has been minimized.

Member

Kubuxu commented Mar 23, 2018

"Nothing works, everything is broken" - by "Someone had to say it at some point"

@magik6k magik6k force-pushed the feat/lowpower-profile branch from d767a43 to 1babd29 Mar 23, 2018

magik6k added some commits Aug 20, 2017

daemon: config option for routing
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
init: lowpower profile
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
config: apply review to lowpower profile
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>

@magik6k magik6k force-pushed the feat/lowpower-profile branch from 1babd29 to af9b4af Mar 24, 2018

@magik6k

This comment has been minimized.

Member

magik6k commented Mar 24, 2018

Fixed

@whyrusleeping

This comment has been minimized.

Member

whyrusleeping commented Mar 25, 2018

Thanks @magik6k! Let's start telling people about this one :)

@whyrusleeping whyrusleeping merged commit 7d84246 into master Mar 25, 2018

8 checks passed

ci/circleci Your tests passed on CircleCI!
Details
codeclimate All good!
Details
codecov/patch No report found to compare against
Details
codecov/project No report found to compare against
Details
commit-message-check/gitcop All commit messages are valid
Details
continuous-integration/jenkins/pr-merge This commit looks good
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@wafflebot wafflebot bot removed the in progress label Mar 25, 2018

@whyrusleeping whyrusleeping deleted the feat/lowpower-profile branch Mar 25, 2018

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