Managed Service for Trino API, gRPC: ClusterService.Start
- gRPC request
- StartClusterRequest
- operation.Operation
- StartClusterMetadata
- Cluster
- Monitoring
- TrinoConfig
- CoordinatorConfig
- Resources
- WorkerConfig
- WorkerScalePolicy
- FixedScalePolicy
- AutoScalePolicy
- RetryPolicyConfig
- ExchangeManagerConfig
- ExchangeManagerStorage
- ServiceS3
- NetworkConfig
- LoggingConfig
- MaintenanceWindow
- AnytimeMaintenanceWindow
- WeeklyMaintenanceWindow
- MaintenanceOperation
Start the specified Trino Cluster resource.
gRPC request
rpc Start (StartClusterRequest) returns (operation.Operation)
StartClusterRequest
{
"cluster_id": "string"
}
Field |
Description |
cluster_id |
string Required field. ID of the Trino cluster that is being started. |
operation.Operation
{
"id": "string",
"description": "string",
"created_at": "google.protobuf.Timestamp",
"created_by": "string",
"modified_at": "google.protobuf.Timestamp",
"done": "bool",
"metadata": {
"cluster_id": "string"
},
// Includes only one of the fields `error`, `response`
"error": "google.rpc.Status",
"response": {
"id": "string",
"folder_id": "string",
"created_at": "google.protobuf.Timestamp",
"name": "string",
"description": "string",
"labels": "map<string, string>",
"monitoring": [
{
"name": "string",
"description": "string",
"link": "string"
}
],
"trino": {
"coordinator_config": {
"resources": {
"resource_preset_id": "string"
}
},
"worker_config": {
"resources": {
"resource_preset_id": "string"
},
"scale_policy": {
// Includes only one of the fields `fixed_scale`, `auto_scale`
"fixed_scale": {
"count": "int64"
},
"auto_scale": {
"min_count": "int64",
"max_count": "int64"
}
// end of the list of possible fields
}
},
"version": "string",
"retry_policy": {
"policy": "RetryPolicy",
"exchange_manager": {
"additional_properties": "map<string, string>",
"storage": {
// Includes only one of the fields `service_s3`
"service_s3": "ServiceS3"
// end of the list of possible fields
}
},
"additional_properties": "map<string, string>"
}
},
"health": "Health",
"status": "Status",
"network": {
"subnet_ids": [
"string"
],
"security_group_ids": [
"string"
]
},
"deletion_protection": "bool",
"service_account_id": "string",
"logging": {
"enabled": "bool",
// Includes only one of the fields `folder_id`, `log_group_id`
"folder_id": "string",
"log_group_id": "string",
// end of the list of possible fields
"min_level": "Level"
},
"coordinator_url": "string",
"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
},
"planned_operation": {
"info": "string",
"delayed_until": "google.protobuf.Timestamp",
"latest_maintenance_time": "google.protobuf.Timestamp",
"next_maintenance_window_time": "google.protobuf.Timestamp"
}
}
// 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. |
StartClusterMetadata
Field |
Description |
cluster_id |
string ID of the Trino cluster. |
Cluster
Trino cluster.
Field |
Description |
id |
string Unique ID of the Trino cluster. |
folder_id |
string ID of the folder that the Trino cluster belongs to. |
created_at |
The time when the Trino cluster was created. |
name |
string Name of the Trino cluster. |
description |
string Description of the Trino cluster. 0-256 characters long. |
labels |
object (map<string, string>) Resource labels as |
monitoring[] |
Monitoring systems relevant to the Trino cluster. |
trino |
Configuration of the Trino cluster. |
health |
enum Health Aggregated cluster health.
|
status |
enum Status Cluster status.
|
network |
Network related configuration options. |
deletion_protection |
bool Deletion Protection inhibits deletion of the cluster. |
service_account_id |
string Service account used to access Cloud resources. |
logging |
Cloud logging configuration. |
coordinator_url |
string Address of Trino Coordinator. |
maintenance_window |
Window of maintenance operations. |
planned_operation |
Maintenance operation planned at nearest maintenance_window. |
Monitoring
Monitoring system.
Field |
Description |
name |
string Name of the monitoring system. |
description |
string Description of the monitoring system. |
link |
string Link to the monitoring system. |
TrinoConfig
Field |
Description |
coordinator_config |
Required field. Configuration for the coordinator, specifying computational resources and other settings. |
worker_config |
Required field. Configuration for worker nodes, including scaling policy and computational resources. |
version |
string Version of Trino. |
retry_policy |
Configuration for retry policy, specifying the spooling storage destination and other settings. |
CoordinatorConfig
Field |
Description |
resources |
Required field. Configuration for computational resources assigned to the coordinator instance. |
Resources
Field |
Description |
resource_preset_id |
string Required field. ID of the preset for computational resources allocated to a instance (e.g., CPU, memory, etc.). |
WorkerConfig
Field |
Description |
resources |
Required field. Configuration for computational resources for worker instances. |
scale_policy |
Required field. Configuration for scaling policy for worker instances. |
WorkerScalePolicy
Field |
Description |
fixed_scale |
A fixed scaling policy that specifies a fixed number of worker instances. Includes only one of the fields Defines the scaling type for worker instances. |
auto_scale |
A scaling policy that dynamically adjusts the number of worker instances Includes only one of the fields Defines the scaling type for worker instances. |
FixedScalePolicy
Field |
Description |
count |
int64 Specifies the number of worker instances. |
AutoScalePolicy
Field |
Description |
min_count |
int64 |
max_count |
int64 |
RetryPolicyConfig
Field |
Description |
policy |
enum RetryPolicy Retry policy level.
|
exchange_manager |
Configuration for exchange manager. |
additional_properties |
object (map<string, string>) Additional properties. |
ExchangeManagerConfig
Field |
Description |
additional_properties |
object (map<string, string>) Additional properties. |
storage |
ExchangeManagerStorage
Field |
Description |
service_s3 |
Use service side s3 bucket for exchange manager. Includes only one of the fields |
ServiceS3
Field |
Description |
Empty |
NetworkConfig
Field |
Description |
subnet_ids[] |
string IDs of VPC network subnets where instances of the cluster are attached. |
security_group_ids[] |
string User security groups. |
LoggingConfig
Field |
Description |
enabled |
bool Logs generated by the Trino components are delivered to Cloud Logging. |
folder_id |
string Logs should be written to default log group for specified folder. Includes only one of the fields Destination of log records. |
log_group_id |
string Logs should be written to log group resolved by ID. Includes only one of the fields Destination of log records. |
min_level |
enum Level Minimum log entry level. See LogLevel.Level for details.
|
MaintenanceWindow
Field |
Description |
anytime |
Includes only one of the fields |
weekly_maintenance_window |
Includes only one of the fields |
AnytimeMaintenanceWindow
Field |
Description |
Empty |
WeeklyMaintenanceWindow
Field |
Description |
day |
enum WeekDay
|
hour |
int64 Hour of the day in UTC. |
MaintenanceOperation
Field |
Description |
info |
string |
delayed_until |
|
latest_maintenance_time |
|
next_maintenance_window_time |