Bug #20508
closed
Extremely slow /api/v2/hosts, 200hosts/page takes about 40s to display
Added by Daniel Kimsey over 7 years ago.
Updated over 6 years ago.
Description
I noticed this when l try to pull up the content hosts view or when I was using the foreman plugin for ansible.
In short, the /api/v2/hosts
call takes a very long time. With jsherril's help I've extracted some debug logs (attached). It looks like most of the SQL time is spent in lookups to rpms and errata with some more in reports.
Files
- Subject changed from Extremely slow /api/v2/hosts, takes about 200hosts/page takes about 40s to Extremely slow /api/v2/hosts, 200hosts/page takes about 40s to display
These rpm and errata counts have been optimized quite a bit, i think the only thing left is to cache these values on the content_facet table.
- Assignee set to Justin Sherrill
- Target version set to 208
- Translation missing: en.field_release set to 250
- Status changed from New to Assigned
- Target version changed from 208 to 213
Sorry for the delay, I wanted to go look on the host. But yes, we did follow the sizing guidelines. We are making some tweaks based on the Appendix A section regarding large deployments though I feel that will just affect our host's registration performance and the like.
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/6953 added
- Bugzilla link set to 1491798
- Target version changed from 213 to 217
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Also available in: Atom
PDF