You can schedule certain maintenance operations, such as a cluster upgrade, adding a node, a version upgrade, or changing the primary zone, to run at a specific time. After a scheduled task is created, you can view or cancel it in the PolarDB console.
Notes
-
You can view details for the following types of scheduled tasks:
-
Cluster upgrade. For instructions, see Procedure.
-
Add a read-only node. For instructions, see Add a node.
-
Version upgrade. For instructions, see Minor version management.
-
Change the primary zone. For instructions, see High-availability mode.
-
-
You can only cancel tasks with a Status of Pending. You cannot cancel scheduled tasks for downgrade operations, such as deleting a node or performing an automatic or manual downgrade.
View scheduled tasks
-
Log in to the PolarDB console。
-
In the navigation pane on the left, click Clusters。
-
In the upper-left corner, select the region where the cluster is deployed.
-
In the left navigation pane, click Scheduled Tasks.
-
The Scheduled Tasks page shows the details of all scheduled tasks in the region, including Task ID, Status, Task Action, Start Time, End Time, and Execution Time.
Note-
The Task Action column indicates the corresponding API operation. The following Task Action are supported:
-
ModifyDBClusterPrimaryZone (change the primary zone)
-
ModifyDBNodeClass (cluster upgrade)
-
CreateDBNodes (add a node)
-
UpgradeDBClusterVersion (version upgrade)
-
-
The Order ID appears only when the Task Action is ModifyDBNodeClass or CreateDBNodes.
-
Cancel a scheduled task
-
Log in to the PolarDB console。
-
In the navigation pane on the left, click Clusters。
-
In the upper-left corner, select the region where the cluster is deployed.
-
In the left navigation pane, click Scheduled Tasks.
-
On the Scheduled Tasks page, find the task that you want to cancel. In the Actions column, click Cancel.
NoteYou can only cancel tasks with a Status of Pending. You cannot cancel scheduled tasks for downgrade operations, such as deleting a node or performing an automatic or manual downgrade.
-
In the confirmation dialog box, click OK.
Related APIs
|
API |
Description |
|
Returns details of all or specified scheduled tasks for your account. |
|
|
Cancels a specified scheduled task. |