2.3. Data Warehouse のサンプリングスケールの変更
Red Hat Virtualization には Data Warehouse が必要です。Manager と同じマシン、または Manager にアクセスできる別のマシンにインストールして設定することができます。デフォルトのデータ保持設定はすべてのセットアップに必要なわけではないため、engine-setup
は、Basic
と Full
の 2 つのデータサンプリングスケールを提供します。
-
Full
を選択すると、Data Warehouse サービスのアプリケーション設定 に記載のデータ保持設定のデフォルト値が使用されます (Data Warehouse がリモートホストにインストールされている場合に推奨)。 -
Basic
を使用すると、DWH_TABLES_KEEP_HOURLY
の値を720
、DWH_TABLES_KEEP_DAILY
の値を0
にして、Manager マシンの負荷を軽減します。Manager と Data Warehouse が同じマシンにインストールされている場合にBasic
を使用します。
サンプリングスケールは、インストール中に engine-setup
によって設定されます。
--== MISC CONFIGURATION ==-- Please choose Data Warehouse sampling scale: (1) Basic (2) Full (1, 2)[1]:
--reconfigure-dwh-scale
オプションを指定して engine-setup
を再度実行することにより、後でサンプリングスケールを変更できます。
Data Warehouse のサンプリングスケールの変更
# 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]:
Data Warehouse サービスのアプリケーション設定 に記載されているように、必要に応じて個々のデータ保持設定を調整することもできます。