Puppet reports recalculate all statuses
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 about 4 years 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.