forgejo/discussions
49
43

Cutting down Forgejo's storage usage #456

Open
opened 2026年04月12日 16:45:10 +02:00 by fnetX · 2 comments
Owner
Copy link

Hey! This is mostly a discussion aimed at the infrastructure team. As you know, thanks to the AI usage, world has become a worse place and storage prices are going at insane rates. Disks we bought a few years for € 700 are now at € 2600.

While Codeberg has money to invest into storage for the benefit of free/libre software projects, I think that Forgejo is using much more storage than it actually needs. I propose to cut down the storage usage, save money and do our tiny part in making the world a little better (saving e-waste and the SSD market, even if barely noticeable).

Cleaning potential.

  • https://codeberg.org/forgejo-experimental is storing experimental releases and packages.
    • Usage: ~ 100 GB
    • Suggestion: Delete as much as possible
  • https://codeberg.org/forgejo is also storing release packages and attachments
    • Usage: ~ 80 GB
    • Suggestions:
      • Delete all -rc versions
      • Delete release attachments and packages for long EOL versions (e.g. everything < 7.0, keep v7 and newer for now)
      • for EOL releases (< v11), only keep the compressed binaries (also see #248)
      • do not publish uncompressed binaries going forward

If the main concern is the work in doing the cleanup, I'm sure I can help with that.

Hey! This is mostly a discussion aimed at the infrastructure team. As you know, thanks to the AI usage, world has become a worse place and storage prices are going at insane rates. Disks we bought a few years for € 700 are now at € 2600. While Codeberg has money to invest into storage for the benefit of free/libre software projects, I think that Forgejo is using much more storage than it actually *needs*. I propose to cut down the storage usage, save money and do our tiny part in making the world a little better (saving e-waste and the SSD market, even if barely noticeable). Cleaning potential. * https://codeberg.org/forgejo-experimental is storing experimental releases and packages. * Usage: ~ 100 GB * Suggestion: Delete as much as possible * https://codeberg.org/forgejo is also storing release packages and attachments * Usage: ~ 80 GB * Suggestions: * Delete all -rc versions * Delete release attachments and packages for long EOL versions (e.g. everything < 7.0, keep v7 and newer for now) * for EOL releases (< v11), only keep the compressed binaries (also see https://codeberg.org/forgejo/discussions/issues/248) * do not publish uncompressed binaries going forward If the main concern is the work in doing the cleanup, I'm sure I can help with that.
Author
Owner
Copy link

As a first step, I will enable a cleanup rule for packages in forgejo-experimental that keep the maximum values (that is: 180 days and 100 versions). I would have chosen 1 year, but it is not possible apparently for whatever weird reason. At the current speed, 100 versions is about 1 year, though.

As a first step, I will enable a cleanup rule for packages in forgejo-experimental that keep the maximum values (that is: 180 days and 100 versions). I would have chosen 1 year, but it is not possible apparently for whatever weird reason. At the current speed, 100 versions is about 1 year, though.

will release attachments automatically cleaned when the release is deleted? if not, then we should implement it because the daily snapshot's will contantly delete and recreate the dev releases every day

will release attachments automatically cleaned when the release is deleted? if not, then we should implement it because the daily snapshot's will contantly delete and recreate the dev releases every day
Sign in to join this conversation.
No Branch/Tag specified
No results found.
No results found.
Labels
Clear labels
User research - Accessibility
Requires input about accessibility features, likely involves user testing.
User research - Blocked
Do not pick as-is! We are happy if you can help, but please coordinate with ongoing redesign in this area.
User research - Community
Community features, such as discovering other people's work or otherwise feeling welcome on a Forgejo instance.
User research - Config (instance)
Instance-wide configuration, authentication and other admin-only needs.
User research - Errors
How to deal with errors in the application and write helpful error messages.
User research - Filters
How filter and search is being worked with.
User research - Future backlog
The issue might be inspiring for future design work.
User research - Git workflow
AGit, fork-based and new Git workflow, PR creation etc
User research - Labels
Active research about Labels
User research - Moderation
Moderation Featuers for Admins are undergoing active User Research
User research - Needs input
Use this label to let the User Research team know their input is requested.
User research - Notifications/Dashboard
Research on how users should know what to do next.
User research - Rendering
Text rendering, markup languages etc
User research - Repo creation
Active research about the New Repo dialog.
User research - Repo units
The repo sections, disabling them and the "Add more" button.
User research - Security
User research - Settings (in-app)
How to structure in-app settings in the future?
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
forgejo/discussions#456
Reference in a new issue
forgejo/discussions
No description provided.
Delete branch "%!s()"

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?