Skip to content

Commit fc06fd1

Browse files
committed
added pruning info
1 parent 0fe9c92 commit fc06fd1

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

nethermind/docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ services:
4444
- "1"
4545
- --Sync.AncientReceiptsBarrier
4646
- "1"
47+
- --Pruning.FullPruningThresholdMb
48+
- "180000"
4749
volumes:
4850
- ./nethermind-data:/var/lib/nethermind
4951
labels:

nethermind/nethermind.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Requirements for Xdai network
44
* memory: 16Gb
5-
* disk: 200Gb SSD
5+
* disk: 240Gb SSD (prune at ~180Gb)
66

77
## Installation
88
Set the domain name to be used in the `.env` file. You can also set a list of allowed IP addresses there. Rename `example.env` to `.env`:
@@ -24,4 +24,20 @@ To see the sync status run:
2424
```bash
2525
docker-compose pull
2626
docker-compose up -d
27-
```
27+
```
28+
29+
## Pruning
30+
1. Restart node with admin methods enabled:
31+
```
32+
- --JsonRpc.EnabledModules
33+
- "Admin,Web3,Eth,Subscribe,Net,Parity"
34+
```
35+
2. Send prune command:
36+
```
37+
curl --data '{"method":"admin_prune","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
38+
```
39+
3. Watch pruning process:
40+
```
41+
docker logs nethermind --since 60m -f | grep 'Pruning'
42+
```
43+
4. Disable admin methods.

0 commit comments

Comments
 (0)