Set cleanup_attachments to true by default #910
No reviewers
Labels
No labels
approved, awaiting change
broken setup
bug
cannot reproduce
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs change/feedback
needs docs
needs tests
not a bug
not our bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AkkomaGang/akkoma!910
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "norm/akkoma:cleanup-attachments-default-true"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Since
bcfbfbcff5(part ofhttps://akkoma.dev/AkkomaGang/akkoma/pulls/789), attachment cleanup no
longer carries a significant performance overhead.
Most admins are unaware of this option even existing, but may notice an
increase in the size of the uploads directory (or S3 bucket size if used
instead) even if auto-expiring posts are used. This should hopefully
make this problem more manageable.
The impact is still noticeable for large instances as shown in your report over in the SQL outlier issue, but it should indeed now be bearable for most.
This still suffers from issues like not being able to clean up attachments which didn’t end up being used in posts and not being able to delete anything after a domain migration since the approach from #818 was rejected and no alternative found.
However even with this in mind, enabling it in its current form is imho likely an improvement for the vast majority and it can still be disabled if necessary, so I think this makes sense
a59b2aa6c98712e06d27Reworded the commit to reflect this.
There is also the problem of orphaned attachments not being cleaned up if the posts they were in were removed prior to the config being set. One brute force soltion to that I can think of is scanning the uploads dir/bucket for files that aren't referenced and marking those for deletion. But then we'd probably run into the domain migration issue thing. Would like more ideas for that, but I'd imagine that's best discussed in #818 instead.
all goodgood then, thankies