ISH-552
Created by Tyler
1 year ago
Oct 24 2024, 21:28 GMT+2
Updated by Laura Hausmann
1 year ago
Nov 16 2024, 16:18 GMT+1
Expand MediaRetention setting

The MediaRetention setting should be expanded to include a max size option for the total combined files of remote media. Once this size is reached it should either wipe the remote media or stop uploading remote content to the storage backend.

Perhaps it could wipe the oldest first and go from there to free up space?

Avatar

I’d suggest using an approach similar to what I do on https://0x0.st: There is a minimum and maximum retention time, and the exact value is picked relative to the configured maximum file size, with a cubic falloff. So bigger files expire much sooner than smaller files.

At least for my file hosting site, this has been working really well in terms of resource optimization because it roughly matches usage patterns: Pretty often, bigger files get more hits than smaller ones, but smaller files are shared over a longer period of time.

Avatar

This is a decent idea. There's a bunch of other ideas various people have brought up over the last couple months, all of them (including this one) are gonna be investigated further when I've refactored the drive system a bit more (splitting blob and file storage, etc.).

Avatar

https://git.0x0.st/mia/0x0/issues/9 there are some more ideas (I don’t see the need for anything that sophisticated but maybe these are worth considering for an AP server)

Project
Iceshrimp.NET
Priority
Normal
N
Type
Feature
F
State
Triaged
T
Assignee
Laura Hausmann
Avatar
Subsystem
Backend
B
Component
Drive
D
Target version
v2025.1
V
Released in version
Unreleased