Closed apentori closed 1 week ago
@apentori: I don't think currently we have automation on decreasing pgsql db size automatically in case of time retention policy in use, yet. We do have it for size retention policy. As much as I know its on the desk to extend auto partition management for config with time retention policy which will result in automatic space management out of the box for psql DB.
@Ivansete-status can you please confirm that? Do we have separate task for that work? If so we may can close this bug. Thank you.
Well the main problem here is the messages are not deleted after the retention policy time is over. That cause the database to get bigger over time. Also from what @Ivansete-status told me, for this version, the size retention policy wont reduce the db size if we are past the limit.
Please advice on what to do with the node store-db-01.gc-us-central1-a.shards.test
to ensure that it work correctly for the status application (Drop db, manually remove message,...)
Thanks for submitting that @apentori ! This is something we need to fix. I will tackle it asap so that we can apply the fix in the current waku.test
fleet where we have 45GiB databases.
@NagyZoltanPeter - you are absolutely right with all your comments. Given that we don't have a specific task for such a feature we will use that bug to tackle that.
Problem
nwaku doesn't remove old message from the database psql
Impact
The database become to big
To reproduce
Expected behavior
Message should be removed after the retention policy period
Screenshots/logs
Node configuration
Database:
nwaku version/commit hash
version : https://harbor.status.im/harbor/projects/9/repositories/nwaku/artifacts-tab/artifacts/sha256:a149122c9a54b7da1a9b4fa66f83d803c3af27e3f6acfbc46010e15e2f3f751c
Additional context
Problem appeared in fleet
shard.test
for the node store-db-01.gc-us-central1-a.shards.test