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 #1

Updated by Partha Aji over 6 years ago

  • Bugzilla link set to 1507498
Actions #2

Updated by The Foreman Bot over 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7051 added
Actions #3

Updated by Eric Helms over 6 years ago

  • translation missing: en.field_release set to 250
Actions #4

Updated by Partha Aji over 6 years ago

  • Related to Bug #21661: Make the consumer resource provide a retrieve_all added
Actions #5

Updated by Partha Aji over 6 years ago

  • Related to deleted (Bug #21661: Make the consumer resource provide a retrieve_all )
Actions #6

Updated by Partha Aji over 6 years ago

  • Blocked by Bug #21661: Make the consumer resource provide a retrieve_all added
Actions #7

Updated by Partha Aji over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF