Step 1
cd /usr/local/sentry
Step 2
docker-compose exec worker bash
Step 3
sentry cleanup --days 30
It took 12.5 hours to make my 50Gb database a half smaller.
My servers uses 2 SATA SSD in a RAID.
Step 4
exit
Step 5
Connect to the Sentry's database in Docker via docker-compose exec
.
Step 6
VACUUM FULL;
Step 7. Checking the result via PostgreSQL
How to find big tables of the Sentry's database?
Step 8. Checking the result via Docker
How do I check how much storage space is used by every Docker volume?