Bug 2223165
Summary: | Refresh Alternate Content Source fails with HTTP status code 502 error | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | mithun kalyat <mkalyat> |
Component: | Alternate Content Sources | Assignee: | satellite6-bugs <satellite6-bugs> |
Status: | CLOSED DUPLICATE | QA Contact: | Satellite QE Team <sat-qe-bz-list> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 6.14.0 | CC: | ahumbe, dalley, iballou, rlavi |
Target Milestone: | Unspecified | ||
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: | Environment: | ||
Last Closed: | 2023-07-26 16:11:37 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
mithun kalyat
2023-07-16 04:32:50 UTC
Is this a regression in behavior from Satellite 6.12? Thanks! Mithun, An alternate content source refresh in Pulp is more or less the same thing as 'n' on_demand sync tasks happening at the same time on the capsule itself. If a user has every product in an ACS on a capsule, that capsule is thus essentially going to be "syncing" every product at refresh time. The only difference here is that the refresh doesn't download any content to disk ever. Downloads only happen during that actual capsule sync. Long story short, refresh is going to be a pretty resource-heavy task especially with many products at once. If you count up all of the repositories that are being refreshed on the capsule and consider the resources taken up if you were to sync that many on a Satellite at once, does it more or less match up? If so then I think we're all good here. To add to my Comment 5, ACS refresh on a capsule shouldn't take more RAM than a Library capsule sync. It makes sense to me that refreshing RHEL 8 + RHEL 9 repositories would OOM on a capsule with only 7 GB of RAM. I'm going to test that we can refresh those repositories with the minimum suggested RAM on a capsule. If we can, I will close this BZ out as NOTABUG. I wasn't able to refresh these 4 repositories with 12 GB of RAM. Now I'm questioning though if a capsule could even sync those 4 repos together with only 12 GB RAM. Daniel, can you (or someone from Pulp) help give us the final word on if it's unreasonable to expect a machine with 12 GB of RAM to refresh 4 sizeable ACSs at the same time? The 4 repos are RHEL 8 AppStream + BaseOS and RHEL 9 AppStream + BaseOS. You can also run this a couple of times throughout the process until the failure, to see which processes are using up the available memory. printf "%s\n\n" "`top -b -o +%MEM | head -n 22`" >> memory_log.txt >> Daniel, can you (or someone from Pulp) help give us the final word on if it's unreasonable to expect a machine with 12 GB of RAM to refresh 4 sizeable ACSs at the same time? The 4 repos are RHEL 8 AppStream + BaseOS and RHEL 9 AppStream + BaseOS.
It depends on how much other stuff is running in the background I suppose. Full satellite has a minimum memory requirement of 20gb. I'd like to see some hard numbers first w/r/t how much memory Pulp is using during the refresh, re: my previous comment.
I'm closing this as a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=2219885 Both are in regards to refreshing repositories on capsules and running out of RAM. *** This bug has been marked as a duplicate of bug 2219885 *** |