Spader is a simply utility to allow Filecoin SPs to manage the offline deal data download. This utility is stateful and offers a resumption on restart.
- Submits the downloaded deal to Boost
- Creates a list of completed downloads based on deal UUID. Makes easy to import in Boost
- Uses aria2 for download
- Spawns and control its own aria2 daemon
- Resumes download after restart
- Takes disk space into account (calculated based on piece size)
- User can define how many deals they want to process in parallel. It will keep working at full capacity till the storage is full
-
User must have aria2 CLI installed on the server where they wish to run Spader.
-
Install aria2p python package
pip install aria2p
-
Export
LOTUS_FULLNODE_INFO
andBOOST_API_INFO
variableslotus auth api-info --perm admin boostd auth api-info --perm admin
-
Provide values to the empty variables defined in
##### VARIABLES #####
section ofspade.py
file
Once the download is completed, the program will write deal UUID and the corresponding .car
file name to <download directory>/completed
Name | Description |
---|---|
aria2c.log |
aria2c logs specific downloads controlled by spader |
aria2c.session |
aria2c session information. Used to resume downloads |
completed |
Contains all the deals finished downloading |
download |
Directory containing the downloaded files |
failed |
Contains all the deals for which download errored out |
spader.log |
Spader logs |