1.4. 更改 Data Warehouse 采样规模

Red Hat Virtualization 中必须要有 Data Warehouse。它可以安装并配置到与 Manager 相同的机器上,或者有权访问 Manager 的独立机器上。部分设置可能不需要默认的数据保留设置,因此 engine-setup 提供了两种采样规模:BasicFull
  • Full 使用第 2.4 节 “ovirt-engine-dwhd.conf 中的 Data Warehouse 服务的应用设置”中列出的数据保留设置默认值(建议在 Data Warehouse 安装于远程主机的情况下使用)。
  • BasicDWH_TABLES_KEEP_HOURLY 的值降低至 720 ,将 DWH_TABLES_KEEP_DAILY 的值降低至 0,减轻 Manager 机器上的负载(建议在同一主机同时安装 Manager 和 Data Warehouse 的情况下使用)。
采样规模可以在安装过程中通过 engine-setup 配置:
--== MISC CONFIGURATION ==--
         
Please choose Data Warehouse sampling scale:
(1) Basic
(2) Full
(1, 2)[1]:
以后若要更改采样规模,您也可以再次运行 engine-setup 并使用 --reconfigure-dwh-scale 选项。

例 1.1. 更改 Data Warehouse 采样规模

# engine-setup --reconfigure-dwh-scale
[...]
Welcome to the RHEV 4.0 setup/upgrade.
Please read the RHEV 4.0 install guide
https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Virtualization/4.1/html/Installation_Guide/index.html.
Please refer to the RHEV Upgrade Helper application
https://access.redhat.com/labs/rhevupgradehelper/ which will guide you in the upgrading process.
Would you like to proceed? (Yes, No) [Yes]: 
[...]
Setup can automatically configure the firewall on this system.
Note: automatic configuration of the firewall may overwrite current settings.
Do you want Setup to configure the firewall? (Yes, No) [Yes]:
[...]
Setup can backup the existing database. The time and space required for the database backup depend on its size. This process takes time, and in some cases (for instance, when the size is few GBs) may take several hours to complete.
If you choose to not back up the database, and Setup later fails for some reason, it will not be able to restore the database and all DWH data will be lost.
Would you like to backup the existing database before upgrading it? (Yes, No) [Yes]: 
[...]
Please choose Data Warehouse sampling scale:
(1) Basic
(2) Full
(1, 2)[1]: 2
[...]
During execution engine service will be stopped (OK, Cancel) [OK]: 
[...]
Please confirm installation settings (OK, Cancel) [OK]:
必要时,您还可以调整个别数据保留设置,具体如第 2.4 节 “ovirt-engine-dwhd.conf 中的 Data Warehouse 服务的应用设置”中所述。