Modify Global Cluster CU (V2)
Modifies CU size or CU autoscaling policy at Global Cluster level. CU settings apply to all member clusters.
The base URL for this API is in the following format:
https://api.cloud.zilliz.com
The endpoints on the control plane currently supports up to 20 requests per second per user per endpoint.
export BASE_URL="https://api.cloud.zilliz.com"
The authentication token should be an API key with appropriate privileges.
ID of the Global Cluster.
Target CU size. Mutually exclusive with autoscaling.cu.
Autoscaling policy for the Global Cluster.
CU autoscaling policy. Configure either min and max for dynamic scaling, or schedules for scheduled scaling.
Minimum CU for dynamic scaling. Must be set together with max.
Maximum CU for dynamic scaling. Must be set together with min.
Scheduled scaling rules.
An auto-scaling schedule defined by a cron expression and a target. Auto-scaling schedules are mutually exclusive with min/max, so specify only one of them.
Cron expression for scheduled scaling.
Target CU size for the schedule.
Time zone of the cron schedule.
export TOKEN="YOUR_API_KEY"
export globalClusterId="glo-xxxxxxxxxxxxxxx"
curl --request POST \
--url "${BASE_URL}/v2/globalClusters/${globalClusterId}/modifyCU" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json" \
-d '{
"cuSize": 8
}'
export TOKEN="YOUR_API_KEY"
export globalClusterId="glo-xxxxxxxxxxxxxxx"
curl --request POST \
--url "${BASE_URL}/v2/globalClusters/${globalClusterId}/modifyCU" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json" \
-d '{
"autoscaling": {
"cu": {
"min": 4,
"max": 16
}
}
}'
export TOKEN="YOUR_API_KEY"
export globalClusterId="glo-xxxxxxxxxxxxxxx"
curl --request POST \
--url "${BASE_URL}/v2/globalClusters/${globalClusterId}/modifyCU" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json" \
-d '{
"autoscaling": {
"cu": {
"schedules": [
{
"cron": "0 9 * * 1-4",
"target": 8,
"timezone": "UTC"
}
]
}
}
}'
Returns the CU modification job.
One possible success response payload for the compute unit modification operation.
Job ID for the asynchronous operation.
Response payload; the type varies by endpoint.
ID of the asynchronous job.
Returns an error message.
Response code.
Error message.
{
"jobId": "job-xxxxxxxxxxxxxxx"
}