Client node pruning deletes data from the relational database.
Data pruning is irreversible. After the data is pruned from the Client nodes, the data is no longer available. As a best practice, back up the Client nodes before initiating a pruning process.
Prerequisites
Verify that you have identified and backed up the outdated data to be pruned. See Back-Up Replica Nodes on AWS.
Familiarize yourself with the impact of the pruning operation. See Pruning VMware Blockchain Nodes on AWS.
Familiarize yourself with the Daml participant pruning and pruning gRPC concepts. See Daml documentation.
Procedure
Results
When the pruning process is successful, you can see the following changes in the system:
Decreased index database disk size after the PostgresSQL vacuum command was used. You can validate by running the command du -s /mnt/data/db/base before and after pruning.
Active smart contracts are not affected regardless of their age and can be queried by ID.
PostgreSQL metrics, especially the tup_deleted column value in pg_stat_database, indicate that the Daml archived smart contracts and transaction records were deleted from the daml_ledger_api.