Delete old Mastodon media cache every day #593

Merged
raucao merged 2 commits from feature/533-delete_old_mastodon_cached_media into master 2025-05-17 07:06:37 +00:00
Owner

This is done using a systemd timer

I'm currently running it on the mastodon server, might need to adjust it to be more verbose, the logs do not contain much so far

Closes #533

This is done using a systemd timer I'm currently running it on the mastodon server, might need to adjust it to be more verbose, the logs do not contain much so far Closes #533
greg added 1 commit 2025-05-16 17:21:15 +00:00
This is done using a systemd timer

Closes #533
Author
Owner

First run took 17 minutes, nightly runs should be fast now

May 16 17:15:25 mastodon-3 systemd[1]: Starting Delete old Mastodon media cache...              │
May 16 17:15:29 mastodon-3 mastodon-delete-old-media-cache[2765002]: I, [2025-05-16T17:15:26.912│
758 #2765002]  INFO -- : [dotenv] Loaded .env.production
May 16 17:27:39 mastodon-3 mastodon-delete-old-media-cache[2765002]: Progress: |================│
====================================================|                                           │
May 16 17:27:39 mastodon-3 mastodon-delete-old-media-cache[2765002]: Removed 10492 media attachm│
ents (approx. 14 GB)                                                                            │
May 16 17:27:39 mastodon-3 systemd[1]: mastodon-delete-old-media-cache.service: Succeeded.
First run took 17 minutes, nightly runs should be fast now ``` May 16 17:15:25 mastodon-3 systemd[1]: Starting Delete old Mastodon media cache... │ May 16 17:15:29 mastodon-3 mastodon-delete-old-media-cache[2765002]: I, [2025-05-16T17:15:26.912│ 758 #2765002] INFO -- : [dotenv] Loaded .env.production May 16 17:27:39 mastodon-3 mastodon-delete-old-media-cache[2765002]: Progress: |================│ ====================================================| │ May 16 17:27:39 mastodon-3 mastodon-delete-old-media-cache[2765002]: Removed 10492 media attachm│ ents (approx. 14 GB) │ May 16 17:27:39 mastodon-3 systemd[1]: mastodon-delete-old-media-cache.service: Succeeded. ```
greg requested review from raucao 2025-05-16 17:33:52 +00:00
raucao added 1 commit 2025-05-17 06:56:02 +00:00
raucao added the
service
mastodon
ops
kredits-1
labels 2025-05-17 07:05:14 +00:00
raucao approved these changes 2025-05-17 07:06:08 +00:00
raucao left a comment
Owner

Did some minor tuning, and confirmed that it ran just fine last night. 👍

Did some minor tuning, and confirmed that it ran just fine last night. 👍
raucao merged commit d00072ee5a into master 2025-05-17 07:06:37 +00:00
raucao deleted branch feature/533-delete_old_mastodon_cached_media 2025-05-17 07:06:39 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kosmos/chef#593
No description provided.