-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Reduce Artifactory storage and bandwidth use #4533
Comments
I mean the atlassian one should be fairly easy to resolve, just swap it to includes only. |
Update: we've granted access to @darinpope to Artifactory so he can drive this topic:
|
I wonder if we still need the jcenter-cache as well? |
Let's now track work for each subject on associated issues:
=> there might be subsqiuent follows up issue. |
Yes, we do. It has artifacts which have been deleted from remotes as far as I remember. Worth checking this subject but let's not get carried away: if @darinpope is able to solve the atlassian and incremental, we'll see immediate results to share with JFrog |
@dduportal I've dug around and cannot find a way to implement MFA on my admin account. Is that another switch you need to set on my account? |
My mistake: MFA is only available on the JFrog portal, not on Artifactory. Sorry for wasting your time on this one. Ref. #4472 (comment):
@darinpope I've set your account as admin, you should have access now |
I think what dduportal normally does is move all artifacts out to a separate archived repository that isn't mirrored. Then once we are confident we can delete? We can likely just repopulate the atlassian one by running builds like Mark has. |
Usually, we let the Artifactory's internal Garbage Collector to kick. But we never really checked artifacts were really deleted (unless exceptional cases with less than 10 occurrences) from disk as the storage always has been advertised by JFrog as "not an issue" until nowadays (focus was on bandwidth and builds safety). The "Store Artifacts Locally" checkbox (to unselect) seems like a good idea for Atlassian public specifically.
+1 with @timja : it make sense for this specific repository. @darinpope I believe you can go for this |
We implemented the new At ~1910 UTC, I changed the include pattern from |
@yonarbel could you post the most recent usage status report? We have our weekly infra team meeting tomorrow and we want to be sure that storage use is still less than 5 TB. @darinpope is out of the office at the moment, so the next reduction in storage use may be delayed until he returns, but we have a plan for the next reduction. |
@dduportal will investigate the increased storage use tomorrow. @darinpope is out of the office with a family emergency. |
I'm still out, but I did change the include |
The repo cleans up, but the cache doesn't, so I'm going through and deleting the leftover directories in cache. |
I agree that we can drop the The plugin has less than 200 installations and has 2 unresolved security vulnerabilities. As far as I can tell from the Atlassian documentation, that plugin has been superseded by one of these two plugins: |
I'm going to do the same variation for the we can add two include paths for plugins ( |
Same with headed towards:
|
Same with headed towards:
|
Same for
|
Same for
|
Again, I'm holding on cleaning up the cache for |
The cleanup ran pretty fast, so I tested buildling
I'm not calling this done yet, but definitely better that earlier today. |
When building
|
Can the POMs of the Jira-related plugin(s) be improved to exclude large unused transitive deps so the problem does not recur, rather than trying to hack around in repository configuration? (disregard if I failed to follow the discussion correctly) |
@jglick I agree that's the right mid/long term solution, but we needed to get back quickly below the storage limit that JFrog requested. FTR, here's the plugins I tested with
There are a few others that import |
Do you mind if we add https://github.com/jenkins-infra/repository-permissions-updater/blob/c2cd952d3afb2e808ec0e647221c4ce15d4d9c01/pom.xml#L120-L124 to the list of "sanity checks" (to avoid reproducing #4578)? |
yeah, that shouldn't be any problem. I see that its already been added. I didn't think about searching through |
No worries, we also did not check either and it is an healthy reminder! Thanks for the huge work @darinpope ! |
@dduportal since we seem to have ![]() would it make sense to delete the other 3 remote repos:
We're only talking 109GB, but if we don't need it, why keep it around? |
Makes sense to me to delete them |
Service(s)
Artifactory
Summary
Jenkins artifact storage use has increased to greater than 10 TB and bandwidth use has recently increased significantly, almost to the bandwidth use prior to the work done in:
jcenter
, andoss.sonatype.org-releases
repositories frompublic
virtual repository; reconfigure Atlassian remote repositories #3842JFrog sponsors open source without charging the open source project. They have asked us to reduce our storage to less than their 5 TB open source sponsorship threshold. We also want to reduce our bandwidth use to be much closer to the bandwidth we were using in early 2024.
Reproduction steps
The text was updated successfully, but these errors were encountered: