Workspace Management

Overview

Your cluster may run out of space if disk usage is not controlled, resulting in cluster exceptions and service interruption. Once disks are full, it takes long and huge efforts to recover workloads. Setting a database to read-only can reduce disk usage, but it also interrupts services. To solve this problem, GaussDB(DWS) provides multi-dimensional storage management. You can limit the permanent space that can be occupied by a schema; and can limit the usage of permanent space, temporary space, and operator space for a user.

  • Schema level: Schema space management allows you to query database and schema space information in a cluster and modify the total schema space.

  • User level: User space management allows you to limit users' space usage, preventing task execution from being blocked due to insufficient storage space. When you create a user in GaussDB(DWS), you can specify the space available to the user. The following types of storage space can be managed:

    • Permanent space (PREM SPACE)

      Space occupied by permanent tables (non-temporary tables) created by users

    • Temporary space (TEMP SPACE)

      Space occupied by temporary tables created by users

    • Operator spill space (SPILL SPACE)

      During query execution, if the actual memory usage is greater than estimated, the query may be spilled to disks. The storage space occupied in this case is called operator spill space. You can control a user's operator spill space usage during query execution.

Note

  • This feature is supported only in cluster version 8.1.1 or later.

  • Currently, the GaussDB(DWS) management plane only supports schema space management.

Procedure

  1. Log in to the GaussDB(DWS) console.

  2. Choose Clusters. Click the name of a cluster.

  3. Go to the Basic Information page and click the Resource Management tab in the navigation pane on the left.

  4. On the Schema Space Manage page, select a database.

  5. In the row where the scheme to be edited resides, click Edit and modify the space limit.

    image1

  6. Click OK.

    Note

    • The space quota limits only common users but not database administrators. Therefore, when the used space is equal to the space limit, the actual used space may exceed the specified value.

    • Quota for a single DN = Total quota/Number of DNs. Therefore, the configured value may be slightly different from the displayed value.