I'm running a Polkadot and a Kusama node on (separate) docker containers. Both are archive nodes, so it takes some more space (according to the wiki 15 to 20 Go). I was counting on the fact that 1) the nodes will grow with time and 2) Docker volumes may take more space than expected. However both volumes are just huge compared to what I expected. Data are from the nodes obviously, and no other container are using these volumes. So the issue should come from the Polkadot and Kusama nodes.
Here is the result of docker system df -v
:
Local Volumes space usage:
VOLUME NAME LINKS SIZE
polkadot-node 0 340.3GB
kusama-node 0 449.6GB
766d53de4186afe3fd9e9ccd8749bce3747a8e806638eac319d023b1b38be30b 0 4.803kB
0086e5137317bd84b06145a8c61efac31071c195aecb0127bd8520fbc367d441 0 4.803kB
a1f9e73a691743af61386d5d52bf816c21e8f7ae39c8972647cb67d66f3a41eb 1 205.7MB
Build cache usage: 0B
CACHE ID CACHE TYPE SIZE CREATED LAST USED USAGE SHARED
Here are the docker-compose files for both nodes (other services omitted), the only difference is that everything named "kusama" can be replaced by "polkadot" :
version: "3.8"
services:
kusama-node:
image: parity/polkadot:latest
volumes:
- kusama-node:/data
container_name: kusama-node
command: '--name "CrommVardekNode" --chain kusama --unsafe-ws-external --pruning archive --rpc-cors=all --base-path /data/polkadot --wasm-execution Compiled'
ports:
- "127.0.1.1:30333:30333"
networks:
- kusama
networks:
kusama:
external: true
volumes:
kusama-node:
external: true
Why do the volumes take so much disk space ? (Note, the nodes were not even completely synced (about 90%))