Update service auto scaling settings
Updates minimum and maximum memory limits per replica and idle mode scaling behavior for the service. Supports both vertical autoscaling (fixed replica count, variable memory) and horizontal autoscaling (variable replica count, fixed memory). The memory settings are available only for "production" services and must be a multiple of 4 starting from 8GB. For vertical autoscaling, please contact support to enable adjustment of numReplicas. For horizontal autoscaling (autoscalingMode "horizontal" with minReplicas/maxReplicas), contact support to enable the feature for your organization.
Request
- Base URL: https://api.clickhouse.cloud
- URL: https://api.clickhouse.cloud/v1/organizations/{organizationId}/services/{serviceId}/replicaScaling
- Auth: HTTP basic
Path parameters
ID of the organization that owns the service.
ID of the service to update scaling parameters.
Request body
Example request
{
"minReplicaMemoryGb": 16,
"maxReplicaMemoryGb": 120,
"autoscalingMode": "vertical",
"numReplicas": 3,
"minReplicas": 1,
"maxReplicas": 5
}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.