-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Historical data over 47 GB – any way to enfore a retention policy? #84
Comments
👋 @zkvvoob These look like ClickHouse parts. Depending on your config, some of these can be logs and can be safely dropped (in SQL terms). You can disable logs storage by mounting these config: https://github.com/plausible/hosting/tree/master/clickhouse |
You can check if it's indeed $ cd hosting
$ docker compose exec plausible_events_db clickhouse-client :) select count(*) from system.query_log; |
And I just found this query to list the biggest tables SELECT table, formatReadableSize(sum(bytes)) AS size FROM system.parts GROUP BY table You can use it to check if the data on disk is actually the app data or if it's from the system tables. source: https://gist.github.com/sanchezzzhak/511fd140e8809857f8f1d84ddb937015 |
Hello all,
I'm running Plausible in a Docker container and I just noticed that it's storing 47GB of data, the majority of it in the
./store
directory:I'm not sure what any of these directory names signify, so I'm hesitant to delete any of them. Nevertheless, I'd like to know if there's a way to limit the amount of historical data stored? 47GB is a bit excessive for a handful of small sites, especially given the fact that I have no intention of reviewing statistics from years ago.
Thanks!
The text was updated successfully, but these errors were encountered: