caprenter / lamrt

GNU General Public License v3.0
0 stars 0 forks source link

Database cache #17

Open caprenter opened 9 months ago

caprenter commented 9 months ago

Things to try:

caprenter commented 9 months ago

I've cleared all caches just now. Will see how big the db is tomorrow.

caprenter commented 9 months ago

Checking the backups:

lamrt/../daily-backups-archive/daily-20231012.tar.gz (262.2MB) lamrt/../daily-backups-archive/daily-20231013.tar.gz (72.6MB) lamrt/../daily-backups-archive/daily-20231014.tar.gz (124.9MB) lamrt/../daily-backups-archive/daily-20231015.tar.gz (115.7MB) lamrt/../daily-backups-archive/daily-20231016.tar.gz (115.0MB)

The cache clearing between 12th and 13th seems to have had a significant effect on reducing the size of the incremental back up

caprenter commented 9 months ago

Today I've turned off 'Tag Based' caching on the Advanced Incident Search view: https://www.lamrt.org.uk/admin/structure/views/view/incidents/edit/page_4

I also cleared the cache.

I'm hoping the future incremental backups will be smaller again

caprenter commented 8 months ago

So the following day the incremental shrank to 42Mb

lamrt/../daily-backups-archive/daily-20231019 (42.3MB) -11 days

It's grown steadily since: lamrt/../daily-backups-archive/daily-20231020 (61.2MB) -10 days lamrt/../daily-backups-archive/daily-20231021 (74.5MB) -9 days lamrt/../daily-backups-archive/daily-20231022 (116.8MB) -8 days lamrt/../daily-backups-archive/daily-20231023 (117.7MB) -7 days

lamrt/../daily-backups/daily-20231025 (122.5MB) -5 days lamrt/../daily-backups/daily-20231026 (153.0MB) -4 days lamrt/../daily-backups/daily-20231027 (204.0MB) -3 days lamrt/../daily-backups/daily-20231028 (203.7MB) -2 days lamrt/../daily-backups/daily-20231029 (203.3MB) -1 days lamrt/../daily-backups/daily-20231030 (202.7MB) -0 days

I think I need to: Investigate the database files again - see if it cache files that are growing. I think cron gets run hourly or when someone visits if there has been a long time between visits. I think that may be building cron/search index or something

caprenter commented 2 weeks ago

Database was up to 4GB again today, so still not really sure what's going on. Clearing the cache took the size of the whole site down from 4.9GB to 1.5GB