Actions
Bug #17921
closedPlanning of remote execution task on large number of hosts (reported with 500 hosts) takes a lot of time, potentially leading to stuck task
Difficulty:
Triaged:
Bugzilla link:
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