Bug 2249913
Summary: | [Improvement] RefreshRepos step in Capsule Sync to refresh just repos to sync | |||
---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Pavel Moravec <pmoravec> | |
Component: | Capsule - Content | Assignee: | Pavel Moravec <pmoravec> | |
Status: | CLOSED ERRATA | QA Contact: | Vladimír Sedmík <vsedmik> | |
Severity: | high | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 6.14.0 | CC: | jpasqual, lblicha, momran, osousa, rlavi, sajha, smeyer, vsedmik | |
Target Milestone: | 6.15.0 | Keywords: | Performance, Triaged | |
Target Release: | Unused | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | If docs needed, set a value | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 2260525 2260526 (view as bug list) | Environment: | ||
Last Closed: | 2024-04-23 17:15:45 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: |
Description
Pavel Moravec
2023-11-15 22:00:30 UTC
Upstream bug assigned to pmoravec Upstream bug assigned to pmoravec Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36926 has been resolved. Verified on 6.15.0 snap 6.0 For verification I used two identical setups, one with (6.15.0 snap 6) and one without (6.14.2 snap 1) the fix, to compare the improvement. Steps to verify: 1. Have a Satellite with registered Capsule (unassigned LCE right now). 2. Prepare the content to sync a) Sync several repos, I used these for example: ansible-2.9-for-rhel-8-x86_64-rpms rhel-7-server-ansible-2.9-rpms rhel-7-server-kickstart rhel-7-server-rpms rhel-8-for-x86_64-baseos-kickstart rhel-8-for-x86_64-baseos-rpms rhel-9-for-x86_64-baseos-kickstart rhel-9-for-x86_64-baseos-rpms rhel-6-server-els-satellite-client-6-rpms rhel-7-server-satellite-client-6-rpms satellite-client-6-for-rhel-8-x86_64-rpms satellite-client-6-for-rhel-9-x86_64-rpms b) Create 10 LCEs. c) Create 10 CVs, add all the repos, publish and promote to all LCEs from 2b). 3. Assign the Capsule with Library and all the LCEs from 2b). 4. Sync the Capsule. 5. Prepare one more CV with only one repo added, publish and promote to all LCEs. 6. Sync the Capsule, check Dynflow and measure the sync time. Result: On the fixed instance the sync task took 21.6 seconds, out of which 5.95 seconds was consumed by Actions::Pulp3::Orchestration::Repository::RefreshRepos subtask and only repos from point 5 were refreshed. On the unfixed instance the sync task took 353 seconds, out of which 340 seconds was consumed by Actions::Pulp3::Orchestration::Repository::RefreshRepos subtask and all repos were refreshed. The improvement of the sync time in this scenario is huge - 57x faster ReposRefresh and 16x faster the whole sync. For even bigger setup with more repos the impact will be even higher. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: Satellite 6.15.0 release), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2024:2010 |