Configuring the frequency in which Hosts check for package updates

环境

Red Hat Enterprise Virtualization 3.6
Red Hat Virtualization 4.x

问题

Red Hat Enterprise Virtualization Manager (RHEV-M) uses a periodic job named availableUpdates which checks if there are pending package updates on each Host configured in the platform.
By default, this job runs every 24 hours, but this value can be changed if needed.

Red Hat Enterprise Virtualization Manager (RHEV-M) 使用一个名为 availableUpdates 的定期作业,该作业检查平台中配置的每个主机上是否有挂起的包更新。
默认情况下,此作业每24小时运行一次,但如果需要,可以更改此值。

决议

RHEV-M uses the value of the HostPackagesUpdateTimeInHours option to schedule the availableUpdates job. The value of this option can be changed using engine-config.

RHEV-M 使用 HostPackagesUpdateTimeInHours 选项的值来调度 availableUpdates 作业。可以使用 engine-config 更改此选项的值。

As an example, to check for updates just once per week, HostPackagesUpdateTimeInHours must be set to 168 (24*7). This can be done by logging into RHEV-M's console and running the following command:

作为一个例子,每周只检查一次更新,必须将 HoSTPACKAGESUPDATEMEMIN 小时设置为168(24×7)。这可以通过登录到RHEV-M控制台并运行以下命令来完成:

# engine-config -s HostPackagesUpdateTimeInHours=168

Additionally, the current value for HostPackagesUpdateTimeInHours can be checked executing the following command, also from RHEV-M's console:
另外,HostPackagesUpdateTimeInHours 的当前值也可以在 rhve - m 的控制台执行以下命令来检查:

# engine-config -g HostPackagesUpdateTimeInHours

As for RHV 4.1, you can also disable this periodic job by setting the value of HostPackagesUpdateTimeInHours to zero (0). This is possible after RFE 1406814 implementation

对于RHV 4.1 ,您也可以通过将 HostPackagesUpdateTimeInHours 的值设置为0(0)来禁用这个周期性作业,这在 RFE 1406814 实现之后是可能的