File tree Expand file tree Collapse file tree
templates/ipfs/etc/systemd/system Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,6 +17,11 @@ ipfs_routing: dht
1717ipfs_disable_bandthwidth_metrics : false
1818ipfs_reprovider_strategy : all
1919
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+
2025# IPFS Cluster
2126
2227# override to disable ipfs cluster setup
Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ Group=ipfs
99StateDirectory =ipfs
1010TimeoutStartSec =10800
1111LimitNOFILE ={{ ipfs_fd_max }}
12+ {% if ipfs_memory_max is defined %}
13+ MemoryMax ={{ ipfs_memory_max }}
14+ {% endif %}
1215MemorySwapMax =0
1316Environment =" IPFS_FD_MAX={{ ipfs_fd_max}}"
1417ExecStart =/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