搜索

2.3. 更改数据仓库采样规模

download PDF

Red Hat Virtualization 需要数据仓库。它可以在与 Manager 相同的机器上安装和配置,也可以在可访问 Manager 的单独机器上安装和配置。所有设置都不需要默认数据保留设置,因此 engine-setup 提供两个数据抽样扩展: BasicFull

  • Full 使用默认值用于数据保留设置(在 Application Settings for the Data Warehouse service in ovirt-engine-dwhd.conf 中列出),在远程主机上安装 Data Warehouse 时这是推荐的设置。
  • Basic 会将 DWH_TABLES_KEEP_HOURLY 的值减小到 720DWH_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]:

您还可以根据需要调整单个数据保留设置,如数据仓库服务的应用程序设置中所述。

Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.