The default specifications of PolarProxy Enterprise Edition are sufficient for most application scenarios that you may encounter. However, when you perform stress tests or have high service throughput, you should consider upgrading the specifications of PolarProxy Enterprise Edition to meet your business requirements. This topic describes the procedure to upgrade PolarProxy.

Background information

The specifications of PolarProxy Enterprise Edition are automatically upgraded or downgraded based on the changes in the number of database nodes and node specifications. PolarProxy specification upgrade rules:
  • For Standard Enterprise Edition clusters, the number of vCPUs of the cluster nodes occupied by PolarProxy is rounded up from one sixth of the total vCPUs of the cluster nodes. It is rounded up to the nearest multiple of 2. The number of vCPUs can be 2 to 64.
  • For Dedicated Enterprise Edition clusters, the number of vCPUs of the cluster nodes occupied by PolarProxy is rounded up from one fourth of the total vCPUs of the cluster nodes. It is rounded up to the nearest multiple of 2. The number of vCPUs can be 2 to 128.

For example, a Dedicated Enterprise Edition cluster has two nodes, and each node has four vCPUs. In this case, PolarProxy occupies two vCPUs.

Precautions

During the upgrade, new sessions are established to the new PolarProxy. Sessions established to the original PolarProxy are automatically closed 24 hours after the upgrade starts. We recommend that you perform this upgrade operation during off-peak hours and make sure that your applications can automatically reconnect to the database service.

Procedure

This topic takes PolarProxy Enterprise Edition as an example to describe the procedure to upgrade PolarProxy.

  1. Log on to the PolarDB console.
  2. In the upper-left corner of the console, select the region where the cluster that you want to manage is deployed.
  3. On the Clusters page, click the ID of the cluster.
  4. In the left-side navigation pane, choose Diagnostics and Optimization > Monitoring. On the PolarProxy tab, click Change Specification.
    Change specification
  5. In the Change Specification dialog box, select an upgrade plan.
    PolarProxy specifications upgrade plans:
    • Standard specification: For Standard Enterprise Edition clusters, the number of vCPUs of the cluster nodes occupied by PolarProxy is rounded up from one sixth of the total vCPUs of the cluster nodes. For Dedicated Enterprise Edition clusters, the number of vCPUs of the cluster nodes occupied by PolarProxy is rounded up from one fourth of the total vCPUs of the cluster nodes.
    • Standard specification × 2: The number of vCPUs is twice that of the standard specification.
    • Standard specification × 4: The number of vCPUs is four times that of the standard specification.
    Change specification
  6. Click Upgrade Now or Upgrade in Maintenance Window.
    If you select Upgrade in Maintenance Window, you can view the details about the task or cancel the task on the Scheduled Tasks page. For more information, see View or cancel a scheduled task.
  7. In the dialog box that appears, click OK.