Use the new attributes for ulimit and max memory
Co-authored-by: Sebastian Kippe <sebastian@kip.pe>
This commit is contained in:
parent
0e6ac38434
commit
9cdbf6d947
|
@ -7,9 +7,9 @@ User=ipfs
|
|||
Group=ipfs
|
||||
Restart=always
|
||||
# Raise the ulimit (max number of open files)
|
||||
LimitNOFILE=64000
|
||||
# Limit the memory usage to 256MB
|
||||
MemoryMax=256M
|
||||
LimitNOFILE=<%= node['ipfs']['ulimit'] %>
|
||||
# Limit the memory usage
|
||||
MemoryMax=<%= node['ipfs']['memory_max'] %>
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
Loading…
Reference in New Issue