Puppet reports recalculate all statuses
|Assigned To:||Lukas Zapletal|
|Found in release:||Pull request:||https://github.com/theforeman/foreman/pull/4749|
|Velocity based estimate||-|
It appears that puppet reports cause all statuses to be updated:
On a heavily loaded system this could mean this is being called 100s of times per second. This is a fairly slow operation to be doing when not necessary.
Puppet reports should only refresh statuses that are relevant to them.
#1 Updated by Marek Hulán 9 months ago
I agree, Host::Managed#refresh_statuses is being used from many places (report import, openscap report import and I can imagine other plugins too). Maybe it should accept set of statuses that were changed and should be refreshed. Btw Justin was looking into this recently too.