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

Fedora copr-dist-git storage warning <= 12% #3188

Closed
praiskup opened this issue Mar 18, 2024 · 2 comments · Fixed by #3209
Closed

Fedora copr-dist-git storage warning <= 12% #3188

praiskup opened this issue Mar 18, 2024 · 2 comments · Fixed by #3209
Assignees

Comments

@praiskup
Copy link
Member

The same as #3020

Can we check this time that we successfully remove the dist-git projects for corresponding Copr projects?

@praiskup praiskup self-assigned this Mar 18, 2024
@praiskup praiskup changed the title fedora copr-dist-git storage warning <= 12% Fedora copr-dist-git storage warning <= 12% Apr 2, 2024
praiskup added a commit to praiskup/copr that referenced this issue Apr 9, 2024
@praiskup
Copy link
Member Author

praiskup commented Apr 9, 2024

On DistGit:

[root@copr-dist-git ~][PROD]# cd /var/lib/dist-git/git
[root@copr-dist-git git][PROD]# find -maxdepth 2 -mindepth 2 | wc -l
44186

While on FE:

coprdb=# select count(*) from copr_dir join copr on copr_dir.copr_id = copr.id;
┌───────┐
│ count │
├───────┤
│ 45348 │
└───────┘

We only ever remove the directories on DistGit when the sources are >= 90 days:

if (datetime.datetime.today() - datetime.datetime.fromtimestamp(modified_time)).days < 90:
continue

So the DB directory count should be >= DistGit directory count, and it isn't. Some of the directories (old projects? packages?) are already removed, even though still in DB. But since the DistGit directory count isn't significantly large, I believe the cron job works fine.

@praiskup
Copy link
Member Author

praiskup commented Apr 9, 2024

The disk was resized by +500G.

praiskup added a commit that referenced this issue Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant