2.3. 更改数据仓库采样规模
Red Hat Virtualization 需要数据仓库。它可以在与 Manager 相同的机器上安装和配置,也可以在可访问 Manager 的单独机器上安装和配置。所有设置都不需要默认数据保留设置,因此 engine-setup
提供两个数据抽样扩展: Basic
和 Full
。
-
Full
使用默认值用于数据保留设置(在 Application Settings for the Data Warehouse service in ovirt-engine-dwhd.conf 中列出),在远程主机上安装 Data Warehouse 时这是推荐的设置。 -
Basic
会将DWH_TABLES_KEEP_HOURLY
的值减小到720
,DWH_TABLES_KEEP_DAILY
的值减小到0
,从而减轻了 Manager 集群的负载。在同一机器上安装 Manager 和数据仓库时,请使用Basic
。
抽样扩展会在安装过程中由 engine-setup
配置:
--== MISC CONFIGURATION ==-- Please choose Data Warehouse sampling scale: (1) Basic (2) Full (1, 2)[1]:
您可以使用 --reconfigure-dwh-scale
选项再次运行 engine-setup
,从而更改抽样扩展。
更改数据仓库采样规模
# engine-setup --reconfigure-dwh-scale [...] 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]: [...] Perform full vacuum on the oVirt engine history database ovirt_engine_history@localhost? This operation may take a while depending on this setup health and the configuration of the db vacuum process. See https://www.postgresql.org/docs/12/static/sql-vacuum.html (Yes, No) [No]: [...] 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]:
您还可以根据需要调整单个数据保留设置,如数据仓库服务的应用程序设置中所述。