Configuring the frequency in which Hosts check for

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 實現之後是可能的


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章