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

Reduce Artifactory storage and bandwidth use #4533

Open
MarkEWaite opened this issue Feb 7, 2025 · 8 comments
Open

Reduce Artifactory storage and bandwidth use #4533

MarkEWaite opened this issue Feb 7, 2025 · 8 comments
Assignees

Comments

@MarkEWaite
Copy link

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:

JFrog 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 plugin. We also want to reduce our bandwidth use to be much closer to the bandwidth we were using in early 2024.

Reproduction steps

  1. Review the storage use and reduce storage use to less than 5 TB
  2. Review the bandwidth use and reduce to be much closer to the January 2024 usage
@MarkEWaite MarkEWaite added triage Incoming issues that need review and removed triage Incoming issues that need review labels Feb 7, 2025
@dduportal dduportal added this to the infra-team-sync-2025-02-11 milestone Feb 7, 2025
@MarkEWaite MarkEWaite added triage Incoming issues that need review and removed artifactory triage Incoming issues that need review labels Feb 7, 2025
@dduportal
Copy link
Contributor

Let's start with a snapshot of metrics provided by JFrog so we can watch the effect of any change.

  • Outbound Bandwidth (e.g. amount of data downloaded) can be seen in JFrog's portal:
Image Image
  • Storage (e.g. amount of data stored on disk) can be found in Artifactory administration:
Image

=> We are clearly pointing fingers to the Atlassian Mirror `` for both storage and outbound bandwidth as the top-level item to work on
=> Cleaning up incrementals repository is useful BUT should be secondary

@timja
Copy link
Member

timja commented Feb 7, 2025

I mean the atlassian one should be fairly easy to resolve, just swap it to includes only.

@dduportal
Copy link
Contributor

Update: we've granted access to @darinpope to Artifactory so he can drive this topic:

  • Ref. https://groups.google.com/g/jenkinsci-dev/c/6_X0ABdLAgE/m/3XwzSn1xEAAJ for the decision process
  • I've created him a secondary (non LDAP) account darinpope-admin with a permission scheme named darinpope-helpdesk-4533 for easier tracking (and reverting in the future)
    • He already has accessed the account and set up a strong password
    • @darinpope do you mind enabling 2FA on this account (since it is not an LDAP)?
    • Despite the account name (darinpope-admin) , he does not have administration permission: the permission scheme allows him to Manage only 5 repositories: all *atlassian* mirrors and the incrementals. That should be sufficient enough: we'll see if he need more permissions.

@timja
Copy link
Member

timja commented Feb 7, 2025

I wonder if we still need the jcenter-cache as well?

@dduportal
Copy link
Contributor

I mean the atlassian one should be fairly easy to resolve, just swap it to includes only.

Let's now track work for each subject on associated issues:

=> there might be subsqiuent follows up issue.

@dduportal
Copy link
Contributor

I wonder if we still need the jcenter-cache as well?

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

@darinpope
Copy link
Collaborator

@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?

@dduportal
Copy link
Contributor

@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):

@dduportal with my current permissions with the admin user, I don't have access to look at the configuratio page for repos.

@darinpope I've set your account as admin, you should have access now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants