Project

General

Profile

Actions

Bug #36563

closed

4.9 is slow to sync and index repositories

Added by Samir Jha over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Urgent
Assignee:
Category:
Repositories
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

We have new logic dueing repo indexing which looks for orphaned content units after sync and tries to delete them. However, this introduces a lot of slowness in syncs in env with a large number of content units.

https://community.theforeman.org/t/katello-4-9-is-very-slow/34038/9

We need to optimize this operation:
https://github.com/Katello/katello/blob/f9bf7d0065c55e202275de84b9c69b5ebbca9ed0/app/models/katello/repository.rb#L938

and possibly scope it by repo being synced or call this as an async task in finalize to not impact sync performance.

Please clone and make sure we have this flow downstream.

Actions #1

Updated by Partha Aji over 1 year ago

  • Triaged changed from No to Yes
Actions #2

Updated by The Foreman Bot over 1 year ago

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

Updated by Samir Jha over 1 year ago

  • Bugzilla link set to 2221291
Actions #4

Updated by The Foreman Bot over 1 year ago

  • Fixed in Releases Katello 4.10.0 added
Actions #5

Updated by Samir Jha over 1 year ago

  • Status changed from Ready For Testing to Closed
Actions #6

Updated by The Foreman Bot over 1 year ago

  • Fixed in Releases Katello 4.9.1 added
Actions

Also available in: Atom PDF