Cluster を変更 (V2)
専用クラスターを変更します。クラスターに割り当てられた CU 数を増減できます。
https://api.cloud.zilliz.com
export BASE_URL="https://api.cloud.zilliz.com"
認証トークンは、適切な権限を持つ API key である必要があります。
application/json を使用します。
変更するクラスターの ID。
変更後にこのクラスターへ割り当てられる CU 数。このパラメーターと autoscaling.cu は相互排他的であり、指定できるのはどちらか一方のみです。このパラメーターと replica の積は 1024 を超えてはなりません。
Standard plan の専用クラスターでは、値は 1 ~ 32 で、指定可能な値は 1, 2, 4, 8, 12, 16, 20, 24, 28, 32 です。
Enterprise plan の専用クラスターでは、値は 1 ~ 1,024 で、指定可能な値は 1, 2, 4, 8, 12, 16, 20, 24, 28, 32,...,64, 72, 80, 88,...,256, 272, 288, ...,1024 です。
CU サイズの増分ルールの詳細については、Detailed Plan Comparison の Deployment セクションを参照してください。
変更後のこのクラスターのレプリカ数。このパラメーターと autoscaling.replica は相互排他的であり、指定できるのはどちらか一方のみです。このパラメーターと cuSize の積は 1024 を超えてはなりません。
クラスターの Auto-scaling 設定。このパラメーターと cuSize または replica は相互排他的であり、指定できるのはどちらか一方のみです。
CU の Auto-scaling 設定。cuSize をすでに設定している場合は使用できません。CU の最大数とレプリカの最大数の積は 1024 を超えてはなりません。
Auto-scaling の CU の最小数。このパラメーターと schedules は相互排他的であり、指定できるのはどちらか一方のみです。
Auto-scaling の CU の最大数。このパラメーターと schedules は相互排他的であり、指定できるのはどちらか一方のみです。
Auto-scaling スケジュール。このパラメーターと min/max は相互排他的であり、指定できるのはどちらか一方のみです。
Auto-scaling スケジュール。
スケジュールを定義する Cron 式。
このスケジュールの対象 CU 数。
レプリカの Auto-scaling 設定。replica をすでに設定している場合は使用できません。CU の最大数とレプリカの最大数の積は 256 を超えてはなりません。
Auto-scaling のレプリカの最小数。このパラメーターと schedules は相互排他的であり、指定できるのはどちらか一方のみです。
Auto-scaling のレプリカの最大数。このパラメーターと schedules は相互排他的であり、指定できるのはどちらか一方のみです。
Auto-scaling スケジュール。このパラメーターと min/max は相互排他的であり、指定できるのはどちらか一方のみです。
Auto-scaling スケジュール。
スケジュールを定義する Cron 式。
このスケジュールの対象レプリカ数。
export TOKEN="YOUR_API_KEY"
export CLUSTER_ID="inxx-xxxxxxxxxxxxxxx"
curl --request POST \
--url "${BASE_URL}/v2/clusters/${CLUSTER_ID}/modify" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Accept: application/json" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json" \
-d '{
"cuSize": 2,
"replica": 2
}'
export TOKEN="YOUR_API_KEY"
export CLUSTER_ID="inxx-xxxxxxxxxxxxxxx"
curl --request POST \
--url "${BASE_URL}/v2/clusters/${CLUSTER_ID}/modify" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Accept: application/json" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json" \
-d '{
"autoscaling": {
"cu": {
"min": 1,
"max": 2
},
"replica": {
"min": 1,
"max": 2
}
}
}'
export TOKEN="YOUR_API_KEY"
export CLUSTER_ID="inxx-xxxxxxxxxxxxxxx"
curl --request POST \
--url "${BASE_URL}/v2/clusters/${CLUSTER_ID}/modify" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Accept: application/json" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json" \
-d '{
"autoscaling": {
"cu": {
"schedules": [
{
"cron": "10 0 0 0 0 ?",
"target": 2
}
]
},
"replica": {
"schedules": [
{
"cron": "10 0 0 0 0 ?",
"target": 2
}
]
}
}
}'
変更されたクラスターの ID を返します。
レスポンスコード。
レスポンスペイロード。
変更されたクラスターの ID。
返されたプロンプトメッセージ。
エラーメッセージを返します。
レスポンスコード。
エラーメッセージ。
{
"code": 0,
"data": {
"clusterId": "inxx-xxxxxxxxxxxxxxx",
"prompt": "successfully submitted. Cluster is being upgraded, which is expected to take several minutes. You can access data about the creation progress and status of your cluster by DescribeCluster API. Once the cluster status is RUNNING, you may access your vector database using the SDK."
}
}