ApsaraDB for ClickHouse Enterprise Edition uses the compute-storage separation architecture to provide serverless capabilities, which allow computing resources of clusters to be dynamically scaled based on your business loads. In scenarios in which business loads significantly fluctuate, the serverless capabilities of ApsaraDB for ClickHouse Enterprise Edition help you reduce resource usage during off-peak hours. This way, the overall cost of resource procurement is reduced. This topic describes the serverless capabilities of ApsaraDB for ClickHouse Enterprise Edition clusters, serverless policies, and usage scenarios.
Feature description
Computing resources
The billing unit of computing resources in an ApsaraDB for ClickHouse cluster is ClickHouse Compute Unit (CCU). 1 CCU is equivalent to 1 virtual CPU (vCPU) and 4 GiB of memory.
For an Enterprise Edition cluster, computing resources can be scaled within the specified scaling range based on actual business loads. The minimum scaling step size is 1 CCU.
The following figure shows the resource usage and specification changes of clusters with defined specifications and Enterprise Edition clusters in scenarios where business loads greatly fluctuate. Clusters with defined specifications have the following disadvantages: A large number of resources are wasted during off-peak hours. Resources are insufficient during peak hours, which affects service performance. Enterprise Edition clusters have the following advantages:
Resources can be dynamically scaled based on business requirements. This reduces the O&M workload.
The overall resource utilization is improved. This reduces resource procurement costs.
During peak hours, resources are scaled out within seconds without impact on your business. This improves system stability.

Storage resources
Enterprise Edition uses Object Storage Service (OSS) to implement shared storage. In serverless mode, storage resources are billed by using the pay-as-you-go billing method. You do not need to purchase disks in advance.
Scenarios
Your business has obvious peak hours and off-peak hours.
Intermittent business spikes require frequent changes to cluster configurations.
The loads are unpredictable, as seen in the Internet of Things (IoT) and edge computing scenarios.
O&M costs are expected to be reduced, and O&M efficiency is expected to be improved.
Fees
The fees of ApsaraDB for ClickHouse Enterprise Edition clusters consist of the fees of computing resources and the fees of storage resources. For more information, see Pay-as-you-go billing for ApsaraDB for ClickHouse Enterprise Edition.
You can also purchase resource plans to offset the resource consumption of clusters. This helps further reduce your costs. For more information about the billing rules and purchase of resource plans, see Resource plan.
Trigger conditions for auto scaling of serverless resources
ApsaraDB for ClickHouse Enterprise Edition provides the conservative and aggressive serverless policies.
The scaling of an ApsaraDB for ClickHouse cluster does not change the number of nodes in the cluster when the maximum CCU remains unchanged. The number of nodes in a cluster depends only on the maximum CCU of the cluster. If the maximum CCU of an ApsaraDB for ClickHouse Enterprise Edition cluster is larger than 64, the number of nodes in the cluster can be calculated by the following formula: Maximum CCU/32. For a cluster whose maximum CCU is equal to or less than 64, the cluster contains two nodes.
Necessary metadata is stored in the memory of each node in the cluster. Therefore, if you change the maximum CCU of a cluster, the memory usage and CCU usage of the cluster may change because the number of nodes in the cluster varies with the maximum CCU.
Serverless policy | Enabling method | Scale-out | Scale-in |
Type: conservative. Application scenarios:
| By default, the conservative serverless policy is used when you create a cluster. |
Note The actual resource usage = MAX(CPU utilization x CCU, memory usage x CCU) |
|
Type: aggressive. Application scenarios:
| You can submit a ticket to enable the whitelist feature. Important After you enable the aggressive policy, the performance and stability of your cluster may be affected. Proceed with caution.
|
Note The actual resource usage = MAX(CPU utilization x CCU, memory usage x CCU) |
|
What to do next
For more information about how to change the scaling range, see Modify the scaling settings of an ApsaraDB for ClickHouse Enterprise Edition cluster.
NoteIf you want to change your serverless policy to the aggressive type, submit a ticket.
For more information about how to create a cluster, see Create an ApsaraDB for ClickHouse cluster.
For more information about how to restart a cluster, see Restart an ApsaraDB for ClickHouse cluster.
For more information about how to release a cluster, see Delete a cluster.