-
-
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 |
I left the pattern in place, but the root cause why things weren't showing up is we had not updated the User Management->Users-> Prior to this change, I was getting a |
added another include of |
After watching Looking back at the previous cache, the so...the basic includes of:
are obviously not going to cut it. Right now (2025-02-14 10:50a Central/1650UTC), I'm going to (a) delete the cache and (b) replace the "generic" includes from above and instead apply the following includes:
These were pulled from With that said, I know that in
so there is a chance we may need to add more includes after rerunning the plugin builds that Mark did earlier. Once I get everything in place, I'll do another local |
I assume thats a build up of over 10 years+. Clearing it down should help sort it. Your approach above should work but its more maintenance. i.e. whats the cache size now after being cleared out and some builds ran? |
ok, that was fast. So I also need to include the "missing" 3 includes. That means any plugin using any dependencies from Since I didn't state it super-clearly... |
@timja as noted in the image above, it's over 200GB with lots of "weird" paths (activeobject, adf, alternator, etc) that none of the plugins use. |
They’ll likely be transitive dependencies but you can see if you can avoid them |
Great work, it was a task that we would have had to run in any cases. I wonder if their artifacts we need from atlassian cannot be retrieved from another of their Maven repos (e.g. another than I also guess we can exclude snapshots from the new |
There’s at least one package that’s needed that’s not in their releases repository but yeah most of them are in releases. (We hit it when the caching proxy was added) |
I've checked the following plugins locally:
and they all built fine with the list of includes I've added. Test process:
There are a couple more I need to look into, but this was the list that Mark did above (minus jira-trigger; need to setup gradle). |
@MarkEWaite if you want to rerun your same list from above, it'll probably be good to exercise IRL to see what happens. |
Here's the current numbers on The If no one objects, I'll delete that repo once I get back from lunch. Based on what I'm seeing from the deletion of the |
Now we wait... |
Update: Jfrog confirmed they saw a huge and visible decrease in storage. We now are under the 5Tb threshold. A quick check on the JFrog portal shows the same metrics on the storage. We also see a huge decrease in outbound bandwidth which is a good thing (as JFrog also pays for this):
|
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: