Project

General

Profile

Actions

Bug #21569

closed

clean backend object takes a long time to run on a foreman instance with thousands of hosts

Added by Partha Aji over 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Upgrades
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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.


Related issues 1 (0 open1 closed)

Blocked by Runcible - Bug #21661: Make the consumer resource provide a retrieve_all ClosedPartha Aji11/14/2017Actions
Actions

Also available in: Atom PDF