version management
PolarDB clusters use a three-layer architecture: the database proxy (PolarProxy), the database kernel engine (DB), and the distributed storage (Store). You can upgrade PolarProxy or the kernel engine independently, or upgrade both together.
For questions about version upgrades or proactive O&M upgrades, join the DingTalk group. Group ID: 51685000218.
Precautions
A version upgrade typically takes no more than 30 minutes. During the upgrade, PolarProxy or the database kernel engine is restarted, which may cause transient connection interruptions. Perform the upgrade during off-peak hours and make sure that your application has an automatic reconnection mechanism.
NoteIf you have configured Cloud Monitor to monitor PolarDB clusters, you may receive notifications about cluster access exceptions during the upgrade.
During the upgrade, some change-related features in the PolarDB console are unavailable, such as upgrading or downgrading configurations, adding or deleting nodes, modifying parameters, and restarting nodes. However, query-related features such as performance monitoring are not affected. You cannot downgrade the version after an upgrade.
View version information
Log in to the PolarDB console,In the navigation pane on the left, click Clusters. Select the Region where the cluster is deployed, and then click the cluster ID to go to the cluster details page。
In the left-side navigation pane, choose .
On the Minor Version Upgrade page, in the Version Information section, view the version information of PolarProxy and the database kernel engine.
Manual upgrade
If the current PolarProxy or database kernel engine version of the cluster is not the latest, you can upgrade it as needed.
Go to the target cluster's menu. On the Minor Version Upgrade page, in the Upgrade Version section, select Upgrade PolarDB Database Proxy and Kernel, Upgrade Kernel Only, or Upgrade PolarDB Database Proxy Only as needed.
NoteIf the current PolarProxy or database kernel engine version of the cluster is already the latest, the Upgrade PolarDB Database Proxy and Kernel, Upgrade Kernel Only, and Upgrade PolarDB Database Proxy Only options are grayed out and unavailable.
If you select Upgrade PolarDB Database Proxy Only, only features related to read/write splitting are upgraded, such as the consistency level (global consistency), transaction splitting, and whether the primary database accepts read requests.
Click Upgrade Now or Upgrade in Maintenance Window. If you select Upgrade in Maintenance Window, you can view the task details or cancel the task on the Scheduled Tasks page. For details, see Scheduled tasks.
ImportantUpgrade PolarDB Database Proxy and Kernel causes transient disconnections of 30 to 90 seconds on both the primary endpoint and the cluster endpoint. Make sure that your application has a reconnection mechanism.
NoteApart from the impact described above, a minor version upgrade does not affect normal cluster use for the rest of the process.
Upgrade PolarDB Database Proxy Only causes a 30-second transient disconnection of the cluster endpoint and custom endpoints. Connections to the primary endpoint are not affected. Make sure that your application has a reconnection mechanism.
Upgrade Kernel Only: during the upgrade, a PolarProxy version of 2.3.50 or later on a PolarDB cluster enables Connection Preserving to protect 95% of database connections from interruption.
View the upgrade task:
In the header of the cluster details page, click the task icon button on the right to view the task progress panel and the upgrade progress.
Return to Clusters. In the left-side navigation pane, choose , where you can view the task lists for all clusters.
Forced upgrade
In rare high-risk situations, such as when a vulnerability with a Critical CVE rating is discovered, Alibaba Cloud initiates a forced upgrade to protect your data assets and system security.
To minimize the impact on your business, forced upgrades are performed only within the Set a maintenance window that you configured. We strongly recommend that you configure an appropriate maintenance window in advance to minimize the impact on your business.
The forced upgrade process is as follows:
Before maintenance starts, Alibaba Cloud notifies account contacts by SMS and email. Make sure that the contact information is valid.
Depending on the urgency of the issue, the upgrade operation may or may not be cancelable.
During the upgrade, the cluster enters the Maintaining state.
The cluster's read and write services remain available, but change-related operations in the console are restricted. For example, configuration changes, restarts, and parameter modifications are unavailable.
During the upgrade, one or two connection interruptions may occur. Implement an automatic reconnection mechanism at the application layer.
Extension versions
PolarDB for PostgreSQL (Compatible with Oracle) support various PostgreSQL extensions. During a minor version upgrade, installed extension versions remain unchanged.
You can use the ALTER EXTENSION command to upgrade an extension to the latest version supported by the current minor engine version:
-- View currently installed extensions and their versions
SELECT name, installed_version FROM pg_available_extensions WHERE installed_version IS NOT NULL;
-- Upgrade a specific extension (for example, vector)
ALTER EXTENSION vector UPDATE;Related API operations
API | Description |
Queries the kernel version information of a PolarDB cluster. | |
Upgrades the kernel version of a PolarDB cluster. |