waku-org / nwaku-compose

Deployment docker-compose files to deploy an nwaku node
12 stars 16 forks source link

chore: Enable external configuration of DB storage size retention policy #77

Closed NagyZoltanPeter closed 5 months ago

NagyZoltanPeter commented 5 months ago

Add STORAGE_SIZE config to enable storage size retention externally, deafult to 1GB

We think regular users may not accept several / dozens of GB databases created on their disks while try waku node via nwaku-compose. With the new better managed Postgress db size retention mechanism it is better to set some lower DB size limit by default (1GB) which still allows several hours of messages to be stored and yet allow operator / testers to set allowed DB size to their needs.

This command can be used with this PR:

STORAGE_SIZE=1500MB docker compose up -d

NagyZoltanPeter commented 5 months ago

Thank you!

We should probably also add this variable to https://github.com/waku-org/nwaku-compose/blob/master/.env.example and https://github.com/waku-org/nwaku-compose/blob/master/ADVANCED.md

Thank you for draw attention on it. I added the description and .env placeholder.