File tree Expand file tree Collapse file tree 4 files changed +5
-6
lines changed
templates/etc/systemd/system Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -2,3 +2,4 @@ dist_url: https://dist.ipfs.io
2
2
ipfs_cluster_secret : " use `od -vN 32 -An -tx1 /dev/urandom | tr -d ' \n ' ; echo` to generate this"
3
3
ipfs_cluster_arch : amd64
4
4
ipfs_cluster_version : v0.10.0
5
+ ipfs_cluster_fd_max : 10000
Original file line number Diff line number Diff line change 75
75
76
76
- name : make .ipfs-cluster directory
77
77
become : yes
78
- become_user : ipfs
79
78
file :
80
79
state : directory
81
80
mode : 0700
85
84
86
85
- name : copy configuration
87
86
become : yes
88
- become_user : ipfs
89
87
template :
90
88
src : " {{ item }}"
91
89
dest : " {{ ipfs_home }}/.ipfs-cluster/{{ item }}"
101
99
102
100
- name : set version file (to notify restart on upgrades)
103
101
become : yes
104
- become_user : ipfs
105
102
copy :
106
103
content : " {{ ipfs_cluster_version }}"
107
- dest : " {{ ipfs_home }}/deployed_version "
104
+ dest : " {{ ipfs_home }}/cluster_deployed_version "
108
105
mode : 0644
109
106
owner : ipfs
110
107
group : ipfs
111
108
notify : restart IPFS Cluster
112
109
113
110
- name : copy peerstore
114
111
become : yes
115
- become_user : ipfs
116
112
template :
117
113
src : peerstore
118
114
dest : " {{ ipfs_home }}/.ipfs-cluster/peerstore"
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ Description=IPFS Cluster Service
3
3
After =network.target
4
4
5
5
[Service]
6
+ LimitNOFILE ={{ ipfs_cluster_fd_max }}
7
+ Environment ="IPFS_CLUSTER_FD_MAX={{ ipfs_cluster_fd_max}}"
6
8
ExecStart =/usr/local/bin/ipfs-cluster-service daemon
7
9
Restart =on-failure
8
10
User =ipfs
Original file line number Diff line number Diff line change 110
110
become : yes
111
111
copy :
112
112
content : " {{ ipfs_version }}"
113
- dest : " {{ ipfs_home }}/deployed_version "
113
+ dest : " {{ ipfs_home }}/ipfs_deployed_version "
114
114
mode : 0644
115
115
owner : ipfs
116
116
group : ipfs
You can’t perform that action at this time.
0 commit comments