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

foreman_repository: Allow to configure download-concurrency #1273

Closed
Thulium-Drake opened this issue Aug 15, 2021 · 2 comments · Fixed by #1303
Closed

foreman_repository: Allow to configure download-concurrency #1273

Thulium-Drake opened this issue Aug 15, 2021 · 2 comments · Fixed by #1303
Labels
easy Good opportunity to start contributing enhancement triaged

Comments

@Thulium-Drake
Copy link
Contributor

SUMMARY

Some repos may have resource restrictions that will cause timeouts with Pulp (possibly due to rate-limiting) when syncing repos.

The forum thread below suggested to set a download concurrency on those repos. However, the Ansible module currently is unable to do so.

https://community.theforeman.org/t/unable-to-sync-some-repositories-almalinux-in-this-case/24705/29

ISSUE TYPE
  • Feature Idea
@evgeni
Copy link
Member

evgeni commented Aug 17, 2021

👍

https://theforeman.org/plugins/katello/3.18/api/apidoc/v2/repositories/create.html defines it as download_concurrency

@Thulium-Drake
Copy link
Contributor Author

Finally had a moment to dig into this :-) turns out to be a really simple fix (see PR)

FWIW, you can't see the current value for download_concurrency via Hammer or the API, but you can get it when you run the following SQL query on the foreman database:

foreman=# select name,download_concurrency from katello_root_repositories;
                 name                 | download_concurrency 
--------------------------------------+----------------------
 Rocky8-AppStream-Base                |                     
 EPEL8-Base                           |                     
 Ansible-EL8-Ansible-2.9              |                     
 Rocky8-BaseOS-AppStream              |                    30
 Foreman-Tools-EL8-Base               |                     
 Foreman-Server-EL8-Foreman-Base      |                     
 Foreman-Server-EL8-Foreman-Plugins   |                     
 Foreman-Server-EL8-Katello-Base      |                     
 Foreman-Server-EL8-Katello-Candlepin |                     
 Foreman-Pulp-EL8-Base                |                     
 PowerDNS-EL8-Recursor-4.4            |                     
 PowerDNS-EL8-Authoratative-4.4       |                     
 Zabbix-EL8-Zabbix-5.4                |                     
 Foreman-Puppet-EL8-Puppet6           |                     

:-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy Good opportunity to start contributing enhancement triaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants