Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

Commit

Permalink
Set the maximum number of open files in the systemd unit
Browse files Browse the repository at this point in the history
This prevents IPFS reaching the limit (1024 by default), which is
treated like a low disk space threshold by ipfs and ipfs-cluster
  • Loading branch information
gregkare committed Apr 26, 2019
1 parent 78d3edf commit c6853c4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion metadata.rb
Expand Up @@ -4,7 +4,7 @@
license 'MIT'
description 'Installs/Configures ipfs'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.1.2'
version '0.1.3'

supports %w(ubuntu debian)

Expand Down
2 changes: 2 additions & 0 deletions templates/default/ipfs-cluster.systemd.service.erb
Expand Up @@ -6,6 +6,8 @@ ExecStart=/usr/local/bin/ipfs-cluster-service daemon --upgrade
User=ipfs
Group=ipfs
Restart=always
# Raise the ulimit (max number of open files)
LimitNOFILE=64000

[Install]
WantedBy=multi-user.target
2 changes: 2 additions & 0 deletions templates/default/ipfs.systemd.service.erb
Expand Up @@ -6,6 +6,8 @@ ExecStart=/usr/local/bin/ipfs daemon --migrate
User=ipfs
Group=ipfs
Restart=always
# Raise the ulimit (max number of open files)
LimitNOFILE=64000

[Install]
WantedBy=multi-user.target

0 comments on commit c6853c4

Please sign in to comment.