Skip to content

Commit a399083

Browse files
committed
Merge branch 'master' of github.com:hsanjuan/ansible-ipfs-cluster
2 parents 0f170c5 + 4ab7a51 commit a399083

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

templates/ipfs-cluster/service.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@
168168
"pin_tracker": {
169169
"stateless": {
170170
"max_pin_queue_size": {{ ipfs_cluster_stateless_max_pin_queue_size | default(1000000) }},
171-
"concurrent_pins": {{ ipfs_cluster_stateless_concurrent_pins | default(10) }}
171+
"concurrent_pins": {{ ipfs_cluster_stateless_concurrent_pins | default(10) }},
172+
"priority_pin_max_age" : "{{ ipfs_cluster_stateless_priority_pin_max_age | default('24h') }}",
173+
"priority_pin_max_retries" : {{ ipfs_cluster_stateless_priority_pin_max_retries | default(5) }}
172174
}
173175
},
174176
"monitor": {
@@ -181,6 +183,15 @@
181183
"disk": {
182184
"metric_ttl": "{{ ipfs_cluster_informer_disk_metric_ttl | default('5m') }}",
183185
"metric_type": "{{ ipfs_cluster_informer_disk_metric_type | default('freespace') }}"
186+
},
187+
"tags": {
188+
"metric_ttl": "30s",
189+
"tags": {{ ipfs_cluster_informer_tags_tags | default({}) | to_json }}
190+
}
191+
},
192+
"allocator": {
193+
"balanced": {
194+
"allocate_by": {{ ipfs_cluster_allocator_balanced_allocate_by | default(["freespace"]) | to_json }}
184195
}
185196
},
186197
"observations": {

templates/ipfs/home/ipfs/ipfs_default_config

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
},
66
"Datastore": {
77
"StorageMax": "{{ ipfs_storage_max }}",
8-
"StorageGCWatermark": 90,
8+
"StorageGCWatermark": {{ ipfs_gc_watermwark | default(90) }},
99
"BloomFilterSize": {{ ipfs_bloom_filter_size }},
10-
"GCPeriod": "1h",
10+
"GCPeriod": "{{ ipfs_gc_period | default('1h') }}",
1111
"HashOnRead": false,
1212
{% if ipfs_use_badger | default(False) %}
1313
"Spec": {
@@ -144,7 +144,7 @@
144144
"Swarm": {
145145
"DisableBandwidthMetrics": {{ ipfs_disable_bandwidth_metrics | default(False) | lower }},
146146
"DisableNatPortMap": true,
147-
"DisableRelay": false,
147+
"DisableRelay": {{ ipfs_disable_relay | default(False) | lower }},
148148
"EnableAutoNATService": false,
149149
"EnableAutoRelay": false,
150150
"EnableRelayHop": false,

0 commit comments

Comments
 (0)