ApsaraDB for ClickHouse lets you restart a cluster to resolve issues like unavailability. This topic describes how to restart a cluster in the console.
Prerequisites
-
The cluster is in the Running state.
-
No ZooKeeper primary node switchover is scheduled for the cluster .
Impact on the cluster
Typically, restarting a cluster takes 1 to 2 minutes. The actual time depends on the following factors:
-
The restart time increases with the number of databases and tables, and the volume of data.
-
Tiered storage: If tiered storage is enabled for the cluster, the restart process involves loading cold data, which increases the restart time.
We recommend performing this operation during off-peak hours.
Procedure
Community-compatible Edition
-
Log on to the ApsaraDB for ClickHouse console.
-
In the upper-left corner of the page, select the region of your target cluster.
-
On the Clusters page, click the Clusters of Community-compatible Edition tab, and then click the ID of your target cluster.
-
On the Cluster Information page, click Restart Setting in the upper-right corner.
-
In the Restart Setting dialog box, configure Select Node and Select Mode as required.
-
Select Node:
-
All: Restarts all nodes in the cluster.
-
Custom: Restarts only the selected nodes. You can select nodes by their names or IP addresses.
-
-
Select Mode:
-
Schedule Restart: Select a time in the Scheduled Time field. The cluster restarts at the specified time.
-
Restart Now: The cluster restarts immediately.
-
-
-
Click OK.
The cluster status during the restart depends on your node selection.
-
All: The cluster status changes to Restarting.
-
Custom: The cluster status changes to Node Restarting.
The restart is complete when the cluster's status changes to Running.
Enterprise Edition
-
Log on to the ApsaraDB for ClickHouse console.
-
In the upper-left corner of the page, select the region of your target cluster.
-
On the Clusters page, click the Enterprise Edition Clusters tab, and then click the ID of your target cluster.
-
On the Cluster Information page, click Restart Instance in the upper-right corner.
-
In the Restart Instance dialog box, click OK.
-
Complete the on-screen verification, and then click OK.
NoteDuring the restart, the cluster status changes to Restarting. The restart is complete when its status changes to Running.
Related topics
To modify or cancel a scheduled restart, see Cancel or modify a scheduled cluster restart.
API reference
-
Restart an Enterprise Edition cluster: Restart a cluster
-
Restart a Community-compatible Edition cluster: Restart a cluster