File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
templates/ipfs/etc/systemd/system Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,11 @@ ipfs_routing: dht
17
17
ipfs_disable_bandthwidth_metrics : false
18
18
ipfs_reprovider_strategy : all
19
19
20
+ # If you find IPFS uses too much RAM, you can
21
+ # limit the max amount in the systemd service
22
+ # file by setting this to something suitable:
23
+ # ipfs_memory_max: "1.5G"
24
+
20
25
# IPFS Cluster
21
26
22
27
# override to disable ipfs cluster setup
Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ Group=ipfs
9
9
StateDirectory =ipfs
10
10
TimeoutStartSec =10800
11
11
LimitNOFILE ={{ ipfs_fd_max }}
12
+ {% if ipfs_memory_max is defined %}
13
+ MemoryMax ={{ ipfs_memory_max }}
14
+ {% endif %}
12
15
MemorySwapMax =0
13
16
Environment ="IPFS_FD_MAX={{ ipfs_fd_max}}"
14
17
ExecStart =/usr/local/bin/ipfs daemon --migrate {%- if ipfs_enable_gc | default(False) %} --enable-gc{% endif %}
You can’t perform that action at this time.
0 commit comments