Ytsaurus API, gRPC: ClusterService.Create
- gRPC request
- CreateClusterRequest
- ClusterSpec
- StorageSpec
- HddSpec
- SsdSpec
- Changelogs
- ComputeSpec
- DiskSpec
- ScalePolicy
- FixedScale
- AutoScale
- LinearScalingStrategy
- TabletSpec
- ProxySpec
- HttpProxySpec
- RpcProxySpec
- TaskProxySpec
- OdinSpec
- CronSpec
- ClearTmpCronSpec
- ClientLogging
- ExcelSpec
- MaintenanceWindow
- AnytimeMaintenanceWindow
- WeeklyMaintenanceWindow
- CidrBlocks
- operation.Operation
Creates a cluster in the specified folder.
gRPC request
rpc Create (CreateClusterRequest) returns (operation.Operation)
CreateClusterRequest
{
"folder_id": "string",
"zone_id": "string",
"name": "string",
"description": "string",
"labels": "map<string, string>",
"subnet_id": "string",
"security_group_ids": [
"string"
],
"spec": {
"storage": {
"hdd": {
"size_gb": "int64",
"count": "int64"
},
"ssd": {
"size_gb": "int64",
"type": "string",
"count": "int64",
"changelogs": {
"size_gb": "int64"
}
}
},
"compute": [
{
"preset": "string",
"disks": [
{
"type": "string",
"size_gb": "int64",
"locations": [
"string"
],
"location_quotas_gb": [
"int64"
]
}
],
"scale_policy": {
// Includes only one of the fields `fixed`, `auto`
"fixed": {
"size": "int64"
},
"auto": {
"min_size": "int64",
"max_size": "int64",
"initial_size": "int64",
// Includes only one of the fields `linear`
"linear": {
"cooldown_interval": "google.protobuf.Duration",
"statistics_interval": "google.protobuf.Duration",
"overload_coefficient": "double",
"underload_coefficient": "double"
}
// end of the list of possible fields
}
// end of the list of possible fields
},
"name": "string"
}
],
"tablet": {
"preset": "string",
"count": "int64"
},
"proxy": {
"http": {
"count": "int64"
},
"rpc": {
"count": "int64"
},
"task": {
"count": "int64"
}
},
"odin": {
"checks_ttl": "google.protobuf.Duration"
},
"flavor": "Flavor",
"cron": {
"clear_tmp": {
"interval": "google.protobuf.Duration",
"account_usage_ratio_save_total": "double",
"account_usage_ratio_save_per_owner": "double",
"max_dir_node_count": "int64"
}
},
"client_logging": {
// Includes only one of the fields `log_group_id`, `folder_id`
"log_group_id": "string",
"folder_id": "string",
// end of the list of possible fields
"service_account_id": "string",
"audit_logs_enabled": "bool"
},
"excel": {
"enabled": "bool"
}
},
"maintenance_window": {
// Includes only one of the fields `anytime`, `weekly_maintenance_window`
"anytime": "AnytimeMaintenanceWindow",
"weekly_maintenance_window": {
"day": "WeekDay",
"hour": "int64"
}
// end of the list of possible fields
},
"cidr_blocks_whitelist": {
"v4_cidr_blocks": [
"string"
]
}
}
|
Field |
Description |
|
folder_id |
string Required field. ID of the folder to create the cluster in. |
|
zone_id |
string Required field. ID of the availability zone where the cluster resides. |
|
name |
string Name of the cluster. The maximum string length in characters is 63. Value must match the regular expression |
|
description |
string Description of the cluster. |
|
labels |
object (map<string, string>) Cluster labels as |
|
subnet_id |
string Required field. ID of the subnet to create the cluster in. |
|
security_group_ids[] |
string IDs of the security groups to attach to the cluster. |
|
spec |
Cluster specification. |
|
maintenance_window |
Cluster maintenance window |
|
cidr_blocks_whitelist |
CIDRs whitelist. |
ClusterSpec
|
Field |
Description |
|
storage |
Cluster storage configuration. |
|
compute[] |
Cluster exec nodes configuration. |
|
tablet |
Cluster tablet nodes configuration. |
|
proxy |
Cluster proxies configuration. |
|
odin |
Odin configuration. |
|
flavor |
enum Flavor Cluster flavor (type).
|
|
cron |
Cluster regular processing settings. |
|
client_logging |
Client Cloud logging configuration. |
|
excel |
Cluster Excel configuration. |
StorageSpec
|
Field |
Description |
|
hdd |
Configuration of cluster HDD strorage. |
|
ssd |
Configuration of cluster SSD strorage |
HddSpec
|
Field |
Description |
|
size_gb |
int64 Size of a single HDD disk in GB. |
|
count |
int64 Total amount of HDD disks. |
SsdSpec
|
Field |
Description |
|
size_gb |
int64 Size of a single SSD disk in GB. |
|
type |
string Type of a SSD disk. |
|
count |
int64 Total amount of SSD disks. |
|
changelogs |
Configuration of dynamic table changelogs. |
Changelogs
|
Field |
Description |
|
size_gb |
int64 Size of changelogs disk in GB. |
ComputeSpec
|
Field |
Description |
|
preset |
string VM configuration preset name. |
|
disks[] |
Configuration of exec node strorage. |
|
scale_policy |
Exec nodes scaling policy. |
|
name |
string Name for exec pool. |
DiskSpec
|
Field |
Description |
|
type |
string Type of a disk. |
|
size_gb |
int64 Size of a single disk in GB. |
|
locations[] |
string Locations on a disk. |
|
location_quotas_gb[] |
int64 Quotas for each location. Must be the same length as locations or empty. Zero value will disable quota for location. |
ScalePolicy
|
Field |
Description |
|
fixed |
Scale policy that doesn't change number of running exec nodes over time. Includes only one of the fields |
|
auto |
Scale policy that can adjust number of running exec nodes within specified range based on some criteria. Includes only one of the fields |
FixedScale
|
Field |
Description |
|
size |
int64 Amount of exec nodes. |
AutoScale
|
Field |
Description |
|
min_size |
int64 Minimal amount of exec nodes. |
|
max_size |
int64 Maximum amount of exec nodes. |
|
initial_size |
int64 Initial amount of exec nodes. |
|
linear |
Linear scaling strategy. Includes only one of the fields |
LinearScalingStrategy
|
Field |
Description |
|
cooldown_interval |
Cooldown interval. |
|
statistics_interval |
Statistics interval. |
|
overload_coefficient |
double Overload coefficient. |
|
underload_coefficient |
double Underload coefficient. |
TabletSpec
|
Field |
Description |
|
preset |
string VM configuration preset name. |
|
count |
int64 Total amount of tablet nodes. |
ProxySpec
|
Field |
Description |
|
http |
Configuration of HTTP proxies. |
|
rpc |
Configuration of rpc proxies. |
|
task |
Configuration of task proxies. |
HttpProxySpec
|
Field |
Description |
|
count |
int64 Total amount of HTTP proxies. |
RpcProxySpec
|
Field |
Description |
|
count |
int64 Total amount of RPC proxies. |
TaskProxySpec
|
Field |
Description |
|
count |
int64 Total amount of task proxies. |
OdinSpec
|
Field |
Description |
|
checks_ttl |
TTL of Odin check samples. |
CronSpec
|
Field |
Description |
|
clear_tmp |
Cluster regular tmp-account cleaning settings. |
ClearTmpCronSpec
|
Field |
Description |
|
interval |
Script starting interval. |
|
account_usage_ratio_save_total |
double Total max space usage ratio. |
|
account_usage_ratio_save_per_owner |
double Per account max space usage ratio. |
|
max_dir_node_count |
int64 Max nodes in every directory. |
ClientLogging
|
Field |
Description |
|
log_group_id |
string ID of cloud logging group. Includes only one of the fields Destination of cloud logging group. |
|
folder_id |
string ID of cloud logging folder. Used default loging group. Includes only one of the fields Destination of cloud logging group. |
|
service_account_id |
string ID of Service account used for write logs. |
|
audit_logs_enabled |
bool Enable audit logs. |
ExcelSpec
|
Field |
Description |
|
enabled |
bool Enable Excel. |
MaintenanceWindow
|
Field |
Description |
|
anytime |
Maintenance can be scheduled anytime. Includes only one of the fields |
|
weekly_maintenance_window |
Maintenance is allowed only within the specified weekly window. Includes only one of the fields |
AnytimeMaintenanceWindow
|
Field |
Description |
|
Empty |
|
WeeklyMaintenanceWindow
|
Field |
Description |
|
day |
enum WeekDay Day of the week when maintenance can occur.
|
|
hour |
int64 Hour of the day in UTC when the maintenance window starts. Acceptable values are 1 to 24, inclusive. |
CidrBlocks
|
Field |
Description |
|
v4_cidr_blocks[] |
string IPv4 CIDR blocks. |
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. |