Bug #21569
closedclean backend object takes a long time to run on a foreman instance with thousands of hosts
Description
During the upgrade of a database with a large # of consumers the clean_backend_objects step ran for several hours and then eventually died:
foreman-rake katello:correct_puppet_environments COMMIT=true finished successfully!
Upgrade Step: clean_backend_objects (this may take a while) ...
[DEBUG 2017-10-27 13:28:32 main] foreman-rake katello:correct_puppet_environments COMMIT=true finished successfully!
[ INFO 2017-10-27 13:28:32 main] Upgrade Step: clean_backend_objects (this may take a while) ...
[DEBUG 2017-10-27 18:25:40 main] rake aborted!
[DEBUG 2017-10-27 18:25:40 main] Errno::ECONNRESET: Connection reset by peer - SSL_connect
during the execution there was a lot of load on the Foreman as we made many API calls into Candlepin to check for missing data.
We need to improve the performance of this task so it doesn't cause undue upgrade pain.
Updated by The Foreman Bot almost 7 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/7051 added
Updated by Eric Helms almost 7 years ago
- Translation missing: en.field_release set to 250
Updated by Partha Aji almost 7 years ago
- Related to Bug #21661: Make the consumer resource provide a retrieve_all added
Updated by Partha Aji almost 7 years ago
- Related to deleted (Bug #21661: Make the consumer resource provide a retrieve_all )
Updated by Partha Aji almost 7 years ago
- Blocked by Bug #21661: Make the consumer resource provide a retrieve_all added
Updated by Partha Aji almost 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|a0aeddee4c57cfb61ef855611e3a40c295e754f4.