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

Fixes #34345 - Download rate setting for remotes #9910

Merged
merged 1 commit into from Feb 9, 2022

Conversation

rverdile
Copy link
Member

@rverdile rverdile commented Jan 28, 2022

What are the changes introduced in this pull request?

Adds global setting "Download Rate Limit" which is used to set maximum rate limit when syncing.

Considerations taken when implementing this change?

The setting is global to affect all repositories.

"Use 0 for no limit" may be an unnecessary clarification. Not sure if that's a known interaction with settings.

What are the testing steps for this pull request?

  1. Go to Administer > Settings > Content. Set a "Download rate limit".
  2. Create or update a repository with a remote so that the remote refreshes.
  3. Use pulp show --href <remote href> to see that the remote gets the download rate.
  4. You might also try setting a low download rate and syncing something large to see it in action.

@theforeman-bot
Copy link

Issues: #34345

@rverdile rverdile force-pushed the download-rate branch 7 times, most recently from a736ec9 to 175ea87 Compare February 1, 2022 22:27
@rverdile rverdile marked this pull request as ready for review February 2, 2022 13:57
@rverdile rverdile changed the title Fixes #34345 - rate limit Fixes #34345 - Download rate setting for remotes Feb 3, 2022
@jturel
Copy link
Member

jturel commented Feb 7, 2022

@rverdile sadly, this needs a rebase. shouldn't affect my testing though since it looks isolated to the vcr cassettes!

Copy link
Member

@jturel jturel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see the rate_limit being set on the pulp3 remote:

pulpcore=# select name, rate_limit from core_remote;
                                   name                                    | rate_limit 
---------------------------------------------------------------------------+------------
 2_duplicate                                                               |           
 pulp-uuid-rhel_6_x86_64                                                   |           
 RHN_Tools_for_Red_Hat_Enterprise_Linux_6_Server_RPMs_x86_64_6Server-63190 |          0
 Red_Hat_Satellite_Tools_6_9_for_RHEL_8_x86_64_RPMs-199753                 |          0
 AnimalsSHA512-643304                                                      |          1
 NeededErrata-567752                                                       |          0
 9                                                                         |

APJ!

@theforeman-bot
Copy link

@rverdile, this pull request is currently not mergeable. Please rebase against the master branch and push again.

If you have a remote called 'upstream' that points to this repository, you can do this by running:

    $ git pull --rebase upstream master

This message was auto-generated by Foreman's prprocessor

@rverdile rverdile merged commit 7776b81 into Katello:master Feb 9, 2022
sbernhard pushed a commit to ATIX-AG/katello that referenced this pull request May 12, 2022
Manisha15 pushed a commit to ATIX-AG/katello that referenced this pull request Jun 15, 2022
sbernhard pushed a commit to ATIX-AG/katello that referenced this pull request Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants