Create a ClickHouse® cluster
-
In the control panel, in the top menu, click Products and select Cloud Databases.
-
Click Create cluster.
-
Enter the cluster name.
-
Select a location. You cannot change the location after the cluster is created.
-
Select the DBMS — ClickHouse.
-
Select the ClickHouse® version.
-
Fill in the following sections:
- Network;
- optional: Security;
- Node group configuration;
- ClickHouse Keeper configuration;
- optional: Logging;
- optional: DBMS settings.
- Administrator password.
-
Check the price of the Managed Databases cluster.
-
Click Create cluster.
Network
A ClickHouse® cluster can only be connected to a private subnet. You can create a new subnet or add the cluster to an existing one.
-
To add a cluster to an existing private subnet, in the Subnet field, select an existing subnet.
-
To create a new private subnet:
2.1. In the Subnet field, select New private subnet.
2.2. Optional: change the subnet CIDR.
2.3. Optional: change the network in which the subnet will be created — you can select an existing network or create a new one. You cannot change the network after creating the cluster.
Optional: Security
Select security groups to filter inbound and outbound cluster traffic.
If the Security section is missing, traffic filtering (port security) is disabled in the cluster network. If traffic filtering is disabled, all traffic will be allowed.
Node group configuration
-
Optional: change the name of the node group — shard.
-
Select a configuration line.
-
If you selected a line with custom configurations, select the disk type and specify the number of vCPUs, RAM size, and disk size.
-
If you selected a line with fixed configurations, select a configuration.
-
Specify the number of nodes in the shard. There can be no more than ten nodes in a shard.
-
Optional: to make shard nodes accessible from the internet, attach public IP addresses to them:
-
if you selected an existing private subnet, select the Enable public access checkbox. You can connect public IP addresses if the private subnet meets the requirements. If the subnet does not meet the requirements, you can connect public IP addresses after creating the cluster;
-
if you are creating a new private subnet, connect public IP addresses after creating the cluster.
Public IP addresses are automatically assigned to all shard nodes — a dedicated address for each node.
-
-
Optional: specify the shard weight. Values from 0 to 65 535 are available.
-
Optional: add additional shards:
8.1. To add a shard with the same configuration, on the shard card, click .
8.2. To add a shard with a different configuration, click Add shard and repeat steps 1–8.
ClickHouse Keeper configuration
The ClickHouse® Keeper node group is required for all cluster configurations except single-node. It is added automatically if the cluster contains a shard with two or more nodes or multiple shards. ClickHouse® Keeper is removed automatically if the cluster consists of a single shard with one node.
-
Optional: change the node group name.
-
Select a configuration line.
-
If you selected a line with custom configurations, select the disk type and specify the number of vCPUs, RAM size, and disk size.
-
If you selected a line with fixed configurations, select a configuration.
Optional: Logging
To have access to cluster logs, enable logging. Logging uses some of the cluster's computing resources.
-
Select the Collect technical cluster logs to the log service checkbox.
-
Select a log group or create a new one.
-
Optional: if you selected a new group, change its name.
Optional: DBMS settings
To view default values for DBMS settings or change them, click Edit. We recommend changing setting values only if necessary — incorrectly configured values may cause the cluster to become inoperable or degrade its performance.
Administrator password
-
Enter a user password or click Generate. The password must contain:
- at least 12 characters;
- uppercase and lowercase Latin letters;
- digits;
- special characters:
!,?,@,$,%,&,*.
-
Copy and save the user password — it is required to connect to the cluster. You cannot view the password in the control panel, but you can change it.
ClickHouse® is a registered trademark of ClickHouse, Inc. https://clickhouse.com.