Service
Update service auto scaling settings
Updates minimum and maximum total memory limits and idle mode scaling behavior for the service. The memory settings are available only for "production" services and must be a multiple of 12 starting from 24GB. Please contact support to enable adjustment of numReplicas.
patch/v1/organizations/{organizationId}/services/{serviceId}/scaling
Request
- Base URL: https://api.clickhouse.cloud
- URL: https://api.clickhouse.cloud/v1/organizations/{organizationId}/services/{serviceId}/scaling
- Auth: HTTP basic
Path parameters
organizationIdstring uuid required
ID of the organization that owns the service.
serviceIdstring uuid required
ID of the service to update scaling parameters.
Request body
Example request
{
"minTotalMemoryGb": 48,
"maxTotalMemoryGb": 360,
"numReplicas": 3
}Response
Successful response
Example response
{
"status": 200,
"result": {
"endpoints": [
{
"protocol": "mysql"
}
],
"minTotalMemoryGb": 48,
"maxTotalMemoryGb": 360,
"minReplicaMemoryGb": 16,
"maxReplicaMemoryGb": 120,
"numReplicas": 3,
"minReplicas": 1,
"maxReplicas": 5,
"autoscalingMode": "vertical",
"replicaMemoryGb": 32,
"tags": [
{
"key": "Environment",
"value": "staging"
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.