Project

General

Profile

Actions

Bug #17921

closed

Planning of remote execution task on large number of hosts (reported with 500 hosts) takes a lot of time, potentially leading to stuck task

Added by Ivan Necas over 7 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Fixed in Releases:
Found in Releases:

Description

With large amount of hosts, it seems the way we resolve the targeting is sub-optimal,
leading planning to take too much time.

We should revisit the resolving algorithm https://github.com/theforeman/foreman_remote_execution/blob/v1.2.2/app/models/targeting.rb#L41 to optimize it, probably by not loading the
whole host objects.

Similarly, we should revisit also the job invocation phase to make
sure we don't load all host objects at once https://github.com/theforeman/foreman_remote_execution/blob/v1.2.2/app/lib/actions/remote_execution/run_hosts_job.rb#L30

Actions

Also available in: Atom PDF