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.
Cron expression for scheduled scaling.
Target CU size for the 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 "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 "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 "Content-Type: application/json" \
-d '{
"autoscaling": {
"cu": {
"schedules": [
{
"cron": "0 9 * * 1-4",
"target": 8,
"timezone": "UTC"
}
]
}
}
}'
Job ID for the asynchronous operation.
Returns an error message.
Response code.
Error message.
{
"jobId": "job-xxxxxxxxxxxxxxx"
}