Skip to content
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

User Quotas #3437

Open
matthewbadeau opened this issue Jan 19, 2025 · 1 comment
Open

User Quotas #3437

matthewbadeau opened this issue Jan 19, 2025 · 1 comment
Labels
feature User-facing features and product enhancements

Comments

@matthewbadeau
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
Running a public instance can be scary without knowing that certain limits can be put in place to prevent your instance from become overloaded and too expensive to host. In the chat, there is a person that had a 28TB instance. A public instance would not be able to handle that very easily.

Describe the solution you'd like
The ability to track and monitor the sizes of the files uploaded by users.
A configurable quota limit would be desirable.

Describe alternatives you've considered
Sorting all user uploads with {username}/{files} could allow for a filesystem based quota outside of Manyfold

Additional context
I noticed that :size can be nil in the database for files. There should probably be a job to find any size: nil files and recalculate their file size. That way, a simple table join can be used to calculate total size of files owned by a user.

@matthewbadeau matthewbadeau added the feature User-facing features and product enhancements label Jan 19, 2025
@Floppy
Copy link
Collaborator

Floppy commented Jan 20, 2025

This missing size is probably something left over from the Shrine migration, where it won't necessarily have run metadata analysis on all existing files. Re-running that Shrine analysis is probably the thing to do in that task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature User-facing features and product enhancements
Projects
Development

No branches or pull requests

2 participants