Bug 1600920
Summary: | Insights Plan Execution is slow at scale | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | sbadhwar |
Component: | Ansible - Configuration Management | Assignee: | Marek Hulan <mhulan> |
Status: | CLOSED ERRATA | QA Contact: | sbadhwar |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.4 | CC: | aruzicka, inecas, jhutar, mhulan, pcreech, psuriset |
Target Milestone: | 6.4.0 | Keywords: | Performance, Triaged, UserExperience |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | foreman_ansible-2.2.7-1,foreman_remote_execution-1.5.6-1 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-10-16 19:14:39 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
sbadhwar
2018-07-13 11:40:17 UTC
The code causing the slowness lives in foreman-ansible, changing the component, even though the fix for this may land elsewhere. Notes: The slowness is caused by the way how we render the template to run for insights. When retrieving the playbook from the insights service, we get a single uber-playbook which should remediate all the issues for all the hosts in the plan. When rendering a template for a single host we retrieve the uber-playbook, pick out the parts relevant to the host and run it. The issue occurs when there's a lot of hosts. We render the template for each host separately, and therefore for N hosts retrieve the uber-playbook N-times. As the number of hosts in the insights plan grows, the uber-playbook and the time needed to retrieve it grows as well. In the testing setup it took +-15 seconds for 6k hosts. Assuming the uber-playbook won't change within a single job invocation and for a single plan, we should try to use these two keys to cache the uber-playbook. Created redmine issue http://projects.theforeman.org/issues/24262 from this bug As discussed with Adam, it would be good to start caching the playbook for each host since in our case it's always the same. Upstream bug assigned to mhulan Upstream bug assigned to mhulan Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/24262 has been resolved. https://github.com/theforeman/foreman-packaging/pull/2980 - rex https://github.com/theforeman/foreman-packaging/pull/2982 - ansible both package versions or greater are downstream 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, 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-2018:2927 |