Cluster Upgrade

After you create a data warehouse cluster, the system automatically configures a random maintenance window for the cluster. Alternatively, you can customize a maintenance window as required. For details about how to view and configure the maintenance window, see Configuring the Maintenance Window.

The validity period of the maintenance window (maximum maintenance duration) is 4 hours. During this period, you can upgrade the cluster, install operating system patches, and harden the system. If no maintenance tasks are performed within the planned maintenance window, the cluster continues to run properly until the next maintenance window. GaussDB(DWS) will notify you of any cluster O&M operation by sending SMS messages. Exercise caution when performing operations on the cluster during the O&M period.

If a node needs to be replaced due to a hardware fault, the repairCluster event will be triggered. You can obtain the latest progress from section Subscribing to Event Notifications to ensure that services are running properly. Background O&M personnel are responsible for performing node replacement operations during the maintenance window.

If the upgrade affects the current query requests or service running, contact technical support for emergency handling.

A cluster is charged by hour or in yearly/monthly mode as long as it is in the Available state, During a node failure/short interruption caused by system upgrade (for example, 15 minutes), the cluster is still being billed, and you will see no difference. If such events cause major system interruption, which is a very rare case, you will not be charged for those downtime hours.

By default, you do not need to manually upgrade a cluster. To upgrade a cluster on the console, see Delivering a Cluster Upgrade Task on the Console.

Upgrading a Cluster

By default, you do not need to care about GaussDB(DWS) cluster patching or upgrading because GaussDB(DWS) will handle version upgrade automatically. After GaussDB(DWS) is upgraded, the service automatically upgrades the clusters to the latest version within the maintenance window. During the upgrade, the cluster is automatically restarted and cannot provide services for a short period of time. Therefore, you are advised to set a suitable time range when the number of connected users and the number of active tasks are small.

  • After a cluster is upgraded to 8.1.3 or later, it enters the observation period. During this period, you can check service status and roll back to the earlier version if necessary.
  • Upgrading the cluster does not affect the original cluster data.

The following figure shows the cluster version.

Figure 1 Version description
  • Service patch upgrade: The last digit of cluster version X.X.X is changed. For example, the cluster is upgraded from 1.1.0 to 1.1.1.
    • Duration: The whole process will take less than 10 minutes.
    • Impact on services: During this period, services will be interrupted for 1 to 3 minutes. If the source version is 8.1.2 or later, you can install patches online. During the patch upgrade, services do not need to be stopped, but may be interrupted for seconds. You are advised to perform the installation during off-peak hours.
  • Service upgrade: The first two digits of cluster version X.X.X are changed. For example, the cluster is upgraded from 1.1.0 to 1.2.0.
    • Duration: The whole process will take less than 30 minutes.
    • Impact on services: During this period, the database cannot be accessed. If the source version is 8.1.1 or later, you can upgrade it online. During the upgrade, services do not need to be stopped, but may be interrupted for seconds. You are advised to perform the installation during off-peak hours.

Configuring the Maintenance Window

  1. Log in to the GaussDB(DWS) management console.
  2. Click Clusters.
  3. In the cluster list, click the name of the target cluster. The Cluster Information page is displayed.

    In the Basic Information area, you can view the maintenance window.

  4. Click Configure next to Maintenance Window.
  5. In the dialog box that is displayed, configure the maintenance window.

    Figure 2 Configuring the maintenance window

  6. Click OK.

Delivering a Cluster Upgrade Task on the Console

Prerequisites

For clusters 8.1.1 or later, you can deliver cluster upgrade operations on the console. Before upgrading a cluster to the target version, ensure that the agent of the current cluster is upgraded to the target version. The upgrade operations need to be manually delivered from the console, and are not affected by the maintenance time window.

Procedure

  1. Log in to the GaussDB(DWS) management console.
  2. In the cluster list, click the name of a cluster.
  3. In the navigation pane, choose Upgrade Management.
  4. On the Upgrade Management page, select a version from the Target Version drop-down list.

  5. Click Upgrade. Click OK in the displayed dialog box.

  6. Check whether the cluster is successfully upgraded.

    • If the cluster version is 8.1.3 or later, the cluster enters the service observation period after the upgrade is complete. If you have verified your services, click Submit on the Upgrade Management page to complete the cluster upgrade. If you find your cluster performance affected by the upgrade, you can click Rollback to roll back the upgrade.
      • In versions earlier than 8.1.3, there is neither rollback nor submission button after the upgrade is complete.
      • If you do not submit the upgraded version, there will be a wlm thread which occupies the system storage space and affects the performance.

    • If the cluster upgrade fails, click Rollback to roll back to the original cluster version, or click Retry to deliver the upgrade again.