Skip to content

Commit 4e4547d

Browse files
author
Andres D. Molins
committed
Fix: Remove IPFS Garbage collection call and force the daemon to have it enabled.
1 parent fadca0f commit 4e4547d

File tree

5 files changed

+7
-13
lines changed

5 files changed

+7
-13
lines changed

deployment/docker-build/dev/docker-compose.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ services:
115115

116116
ipfs:
117117
restart: always
118-
image: ipfs/kubo:v0.15.0
118+
image: ipfs/kubo:v0.34.1
119119
ports:
120120
- "4001:4001"
121121
- "4001:4001/udp"
@@ -126,7 +126,7 @@ services:
126126
- IPFS_PROFILE=server
127127
networks:
128128
- pyaleph
129-
command: ["daemon", "--enable-pubsub-experiment", "--migrate"]
129+
command: ["daemon", "--enable-pubsub-experiment", "--enable-gc", "--migrate"]
130130

131131

132132
networks:

deployment/docker-build/docker-compose.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ services:
4747

4848
ipfs:
4949
restart: always
50-
image: ipfs/kubo:v0.15.0
50+
image: ipfs/kubo:v0.34.1
5151
ports:
5252
- "4001:4001"
5353
- "4001:4001/udp"
@@ -59,7 +59,7 @@ services:
5959
- IPFS_PROFILE=server
6060
networks:
6161
- pyaleph
62-
command: ["daemon", "--enable-pubsub-experiment", "--migrate"]
62+
command: ["daemon", "--enable-pubsub-experiment", "--enable-gc", "--migrate"]
6363

6464
postgres:
6565
restart: always

deployment/samples/docker-compose/docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ services:
105105

106106
ipfs:
107107
restart: always
108-
image: ipfs/kubo:v0.15.0
108+
image: ipfs/kubo:v0.34.1
109109
ports:
110110
- "4001:4001"
111111
- "4001:4001/udp"

deployment/samples/docker-monitoring/docker-compose.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ services:
107107

108108
ipfs:
109109
restart: always
110-
image: ipfs/kubo:v0.15.0
110+
image: ipfs/kubo:v0.34.1
111111
ports:
112112
- "4001:4001"
113113
- "4001:4001/udp"
@@ -118,7 +118,7 @@ services:
118118
- IPFS_PROFILE=server
119119
networks:
120120
- pyaleph
121-
command: ["daemon", "--enable-pubsub-experiment", "--migrate"]
121+
command: ["daemon", "--enable-pubsub-experiment", "--enable-gc", "--migrate"]
122122

123123
prometheus:
124124
restart: always

src/aleph/services/storage/garbage_collector.py

-6
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,6 @@ async def collect(self, datetime: dt.datetime):
6969

7070
LOGGER.info("Deleted %s", file_hash)
7171

72-
# After unpinned all files call the ipfs garbage collector
73-
ipfs_client = self.storage_service.ipfs_service.ipfs_client
74-
# Launch the IPFS garbage collector (`ipfs repo gc`)
75-
async for _ in RepoAPI(driver=ipfs_client).gc():
76-
pass
77-
7872

7973
async def garbage_collector_task(
8074
config: Config, garbage_collector: GarbageCollector

0 commit comments

Comments
 (0)