Reduce the memory usage of go-ipfs

Lower the number of connections, change the routing mode to dhtclient,
and disable bandwidth metrics. This is hardcoded for now
This commit is contained in:
Greg Karékinian
2019-05-07 14:30:29 +02:00
parent c6853c4d09
commit 76d60b87dd
2 changed files with 26 additions and 1 deletions

View File

@@ -2,12 +2,14 @@
Description=Start ipfs
[Service]
ExecStart=/usr/local/bin/ipfs daemon --migrate
ExecStart=/usr/local/bin/ipfs daemon --migrate --routing=dhtclient
User=ipfs
Group=ipfs
Restart=always
# Raise the ulimit (max number of open files)
LimitNOFILE=64000
# Limit the memory usage to 256MB
MemoryMax=256M
[Install]
WantedBy=multi-user.target