Managed Service for ClickHouse API, gRPC: ClusterService.CreateShardGroup
Creates a new shard group in the specified cluster.
gRPC request
rpc CreateShardGroup (CreateClusterShardGroupRequest) returns (operation.Operation)
CreateClusterShardGroupRequest
{
"cluster_id": "string",
"shard_group_name": "string",
"description": "string",
"shard_names": [
"string"
],
"external_shards": [
{
"name": "string",
"weight": "google.protobuf.Int64Value",
"replicas": [
{
"host": "string",
"port": "google.protobuf.Int64Value",
"secure": "google.protobuf.BoolValue",
"user": "string",
"password": "string",
"priority": "google.protobuf.Int64Value"
}
]
}
]
}
|
Field |
Description |
|
cluster_id |
string Required field. ID of the ClickHouse cluster to add a shard group to. The maximum string length in characters is 50. |
|
shard_group_name |
string Required field. Name for the new shard group. The maximum string length in characters is 63. Value must match the regular expression |
|
description |
string Description of the new shard group. 0-256 characters long. |
|
shard_names[] |
string List of shard names that should be put into the new group. |
|
external_shards[] |
List of external shards that should be put into the new group. |
ExternalShard
|
Field |
Description |
|
name |
string Name of the external shard. |
|
weight |
Relative weight of the external shard considered when writing data to the cluster. For details, see ClickHouse documentation |
|
replicas[] |
List of replicas contained in the external shard. |
Replica
|
Field |
Description |
|
host |
string Name (FQDN) or IP address of the external replica host. |
|
port |
Port to connect to the external replica. If not specified, the default ClickHouse port is used. |
|
secure |
Whether to use a secure (SSL/TLS) connection when connecting to the external replica. |
|
user |
string Name of the user to authenticate with on the external replica. |
|
password |
string Password of the user to authenticate with on the external replica. |
|
priority |
Priority of the external replica for load balancing. |
operation.Operation
{
"id": "string",
"description": "string",
"created_at": "google.protobuf.Timestamp",
"created_by": "string",
"modified_at": "google.protobuf.Timestamp",
"done": "bool",
"metadata": "google.protobuf.Any",
// Includes only one of the fields `error`, `response`
"error": "google.rpc.Status",
"response": "google.protobuf.Any"
// end of the list of possible fields
}
An Operation resource. For more information, see Operation.
|
Field |
Description |
|
id |
string ID of the operation. |
|
description |
string Description of the operation. 0-256 characters long. |
|
created_at |
Creation timestamp. |
|
created_by |
string ID of the user or service account who initiated the operation. |
|
modified_at |
The time when the Operation resource was last modified. |
|
done |
bool If the value is |
|
metadata |
Service-specific metadata associated with the operation. |
|
error |
The error result of the operation in case of failure or cancellation. Includes only one of the fields The operation result. |
|
response |
The normal response of the operation in case of success. Includes only one of the fields The operation result. |