Implement experimental IPFS cleaner #854
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
IPFS Pin Cleaner: Experimental Method
This document outlines the procedure for executing the experimental IPFS pin cleaner script, which reclaims disk space by removing unused pins from the InterPlanetary File System (IPFS) repository.
Preparation
Before executing the script, ensure you are in the same directory as your
docker-compose.yml
file. This is crucial for the script to correctly interact with your IPFS instance. You will also need to get the database user and password from yourdocker-compose.yml
file as they are required for the cleanup script to run.Execution and Performance
The script's execution time is typically less than 10 minutes but can vary based on several factors:
Cautionary Note
WARNING: Executing this procedure will temporarily halt the CCN software. This interruption is necessary for the cleaning process to function correctly. Depending on the hardware resources of the machine, this may lead to:
Command-Line Procedure
Execute the following commands in the terminal to download and run the script:
wget
to retrieve therun_ipfs_cleanup.sh
script from the specified GitHub repository.chmod
to make the script executable.sudo
.