O
O
Otnode
Search…
Pruning
Currently on v5 the nodes bid and store all datasets in their databases. With the increased amount of jobs coming, the space grows quite significantly on the node.
There are two levels of pruning:
  1. 1.
    Remove all datasets that have expired on the network - (L1 pruning)
  2. 2.
    Low estimated value datasets pruning - Remove all datasets that the node has not won - (L2 pruning).
Originally the network was designed to litigate nodes which are not online and pass the contract to another node. However with V6 coming up, this process might be getting a makeover so you can save significant space L2 pruning.
In order to activate them you need to add the following lines to your configuration (please refer to Docker installation for example of the complete configuration file with Pruning enabled):
1
"dataset_pruning": {
2
"enabled": true,
3
"imported_pruning_delay_in_minutes": 1440,
4
"replicated_pruning_delay_in_minutes": 1440,
5
"low_estimated_value_datasets": {
6
"enabled": true,
7
"minimum_free_space_percentage": 30
8
}
9
}
Copied!
The setting "true" on the second row activates L1 pruning and "true" on row 5 activates L2 pruning. If you want to disable the pruning just set those two to false. You can also activate L1 pruning and disable L2 pruning.
Also in order for the pruning to work, you need to have deleted any backups from the node inside docker, including the backup directory even if it is empty
1
docker exec otnode rm -rf ../backup
Copied!
Last modified 2mo ago
Copy link