Updated on 2023-11-27 GMT+08:00

O&M Plans

Setting the Common Configurations of O&M Tasks

  1. Log in to the GaussDB(DWS) management console.
  2. Click the name of the target cluster.
  3. In the navigation pane, choose Intelligent O&M.
  4. In the Common O&M Task Configuration area, configure Maximum number of concurrent O&M tasks in the VacuumFull user table.

    • This configuration takes effect for the VACUUM FULL O&M tasks of all user tables.
    • The concurrency value range is 1 to 24. Configure it based on the remaining disk space and I/O load. You are advised to set it to 5.

Adding an O&M Plan

  1. Log in to the GaussDB(DWS) management console.
  2. Click the name of the target cluster.
  3. In the navigation pane, choose Intelligent O&M.
  4. Click the O&M Plan tab. Click Add O&M Task.

  5. On the right panel displayed, configure the O&M task.

    • O&M Task: Only Vacuum is currently supported.
    • Description: This O&M task helps users periodically run the VACUUM command to free up space.
    • Remarks
    • Scheduling Mode
      • Auto: Intelligent O&M scans the database in a specified time window, and automatically delivers table-level vacuum tasks by service load and reclaimable space of user tables.

      • Specify: You need to specify the preferential vacuum targets. Intelligent O&M will automatically deliver a table-level vacuum task in a specified time window.

      • Priority: You can specify the preferential vacuum targets. During the remaining time window (if any), Intelligent O&M will automatically scan other tables that can be vacuumed and deliver table-level vacuum tasks.

        You are advised to select Specify for VACUUM and VACUUM FULL operations. Do not perform VACUUM FULL on wide column-store tables. Otherwise, memory bloat may occur.

    • Autovacuum: System catalogs (VACUUM) or User tables (VACUUM FULL).
      • A system catalog VACUUM transaction holds a level-5 lock (share update exclusive lock), which does not affect user services. Only the transactions on the DDL process of the system catalog are blocked.
      • A user table VACUUM FULL transaction holds a level-8 lock (access exclusive lock). All the other transactions on the table are blocked until VACUUM FULL is complete. To avoid affecting services, you are advised to perform VACUUM FULL during off-peak hours.

        During VACUUM FULL, the space usage will first increase and then decrease, because this operation requires the same space as the table to be vacuumed. (Actual table size = Total table size x (1 – dirty page rate). Ensure you have sufficient space before doing VACUUM FULL.

    • Vacuum First: Configure the preferential vacuum targets. Enter only one target on a single line, in the format of database1 schema1 table1. Separate the names with spaces on each line and multiple lines are allowed.
    • Advanced: If you select Custom, you can configure the autovacuum triggers, including the table bloat and table reclaimable space.

      If you select Default, Table Bloat defaults to 80% and Table Reclaimable Space defaults to 100 GB.

      VACUUM bloat rate: After frequent UPDATE and DELETE operations are performed in a database, the deleted or updated rows are logically deleted from the database, but actually still exist in tables. Before VACUUM is complete, such data is still stored in disks, causing table bloat. If the bloat rate reaches the percentage threshold set in an O&M task, VACUUM will be automatically triggered.

  6. Click Next: Configure Schedule and configure the O&M task schedule.

    • One-off: Set the start time and end time of the task.

    • Periodic: Select a time window type, which includes Daily, Weekly, and Monthly, and select a time segment. Intelligent O&M will automatically analyze the time window and deliver O&M tasks accordingly.

    • Do not choose peak hours when configuring the time window for autovacuum O&M tasks. Otherwise, automatic Vacuum may cause a deadlock on user services.
    • The number of concurrent O&M tasks (vacuum/vacuum full) ranges from 0 to 24 for user tables, and from 0 to 1 for system catalogs. The concurrency value cannot be customized, but can be automatically adjusted based on system io_util.
      • Two intervals for 0% to 60%
        • 0% to 30%: The concurrency value increases by 2 each time the value of io_util decreases by 15%.
        • 30% to 60%: The concurrency value is incremented by 1 each time the value of io_util decreases by 15%.
      • 60% to 70%: The concurrency value remains unchanged.
      • Above 70%: The concurrency value decreases by 1 until it reaches 0.
    • The scheduler scans the expansion of column-store compression units (CUs) within the time window. If the average number of CU records in a column-store table is less than 1000, the scheduler scans the table first. The scanning of column-store CUs is not limited by table bloat or table reclaimable space.
    • A maximum of 100 tables can be added to the priority list.
    • The scheduler autovacuum function depends on the statistics. If the statistics are inaccurate, the execution sequence and results may be affected.
    • The scheduler does not support names containing spaces or single quotation marks, including database names, schema names, and table names. Otherwise, the tables will be skipped. Priority tables whose name contains spaces or single quotation marks will also be skipped automatically.

  7. Click Next: Finish. After you confirm the information, click Finish to submit the request.

Modifying an O&M Plan

  1. Log in to the GaussDB(DWS) management console.
  2. Click the name of the target cluster.
  3. In the navigation pane, choose Intelligent O&M.
  4. In the O&M Plan area, click Modify in the Operation column of the target task.

  5. The Modify O&M Task panel is displayed. The configurations are similar to adding an O&M task (see Adding an O&M Plan).

  6. Confirm the modification and click OK.

Viewing O&M Task Details

  1. Log in to the GaussDB(DWS) management console.
  2. Click the name of the target cluster.
  3. In the navigation pane, choose Intelligent O&M.
  4. In the O&M Plan area, click Details in the Operation column of the target task.

  5. The O&M Task Details panel is displayed for you to check the information.