From ce84c26bcd9a6cc9f191e92e3de68308b8dd253a Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Tue, 23 Apr 2019 13:51:18 +0300 Subject: [PATCH] ipfs.service: adapt lowpower profile & mention badgerds If the lowpower option uses values 40 and 20 which are a lot higher than mine were and considered suitable for laptops and smartphones, I guess they are the best for me to use and I find content faster. --- etc/systemd/system/ipfs.service | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/etc/systemd/system/ipfs.service b/etc/systemd/system/ipfs.service index f6575c37..82099c3b 100644 --- a/etc/systemd/system/ipfs.service +++ b/etc/systemd/system/ipfs.service @@ -20,10 +20,10 @@ ExecStart=/home/mikaela/go/bin/ipfs daemon --routing=dhtclient --enable-gc --ena # (which they will still be able to download, see ipfs/go-ipfs#4145) # ipfs config Swarm.ConnMgr.GracePeriod 1s - to get rid of excess # connections quickly -# ipfs config --json Swarm.ConnMgr.HighWater 20 - attempt to stay below 20 -# connections -# ipfs config --json Swarm.ConnMgr.LowWater 5 - attempt to keep at least 5 +# ipfs config --json Swarm.ConnMgr.HighWater 40 - attempt to stay below 40 # connections +# ipfs config --json Swarm.ConnMgr.LowWater 20 - attempt to keep at least +# 20 connections # ipfs config --json Swarm.EnableAutoRelay true - if impassable NAT is # detected, connect to the network through relays that have configured # themselves as open (EnableAutoNATService & EnableRelayHop?) @@ -33,6 +33,8 @@ ExecStart=/home/mikaela/go/bin/ipfs daemon --routing=dhtclient --enable-gc --ena # ipfs config --json Experimental.FilestoreEnabled true - for ipfs add # --nocopy to not store the content twice on disc # +# I am using badger datastore. +# # Extra: to disable IPv4 connections: # ipfs swarm filters add /ip4/0.0.0.0/ipcidr/0 # However I think this may do more harm than good, especially if the