Red Hat Bugzilla – Bug 1294773
Host upgrade manager checks updates for all hosts at the same time
Last modified: 2016-01-10 02:29:45 EST
Description of problem:
The scheduled job for checking availability of updates for the hosts is being scheduled at the same time for hosts in the system.
For RHEL/next-gen-ovirt-node hosts, it requires a dedicated thread for the duration of the ssh session. For a minutes or two there is a spike in thread consumption on the engine-server. If the repositories aren't refreshed, the check will take longer.
The purpose of the bug is to start each check in a random time, during the first hours of the engine's startup, so the overload will be divided. Future checks will be triggered based on that initial offset.
Steps to Reproduce:
1. Have ovirt-engine with multiple hosts in up/maintenance status.
2. Start ovirt-engine, and wait for the host-upgrade-manager to check for updates.
The log (event-log/engine.log) indicates that all of the hosts are being examined at the same time.
Checking for host updates should be done more 'evenly'.
*** This bug has been marked as a duplicate of bug 1294772 ***