管理集群
本文介绍如了集群的生命周期,以便您能够充分利用 Zilliz Cloud 控制台来管理集群。
重命名集群
前往目标集群的集群详情页并跟随以下指南对集群进行重命名。
挂起集群仅 Dedicated
对于运行中的 Dedicated 集群,系统会根据其 CU 和存储用量计费。为了节省成本,您可以选择挂起集群。集群挂起后,仅收取存储费用。
包年包月的 Dedicated 集群不支持挂起。
请注意,在集群处于“挂起中”的状态时,您无法对集群进行其他操作。
您可以通过 Web 控制台或使用 RESTful API 和 SDK 挂起 Dedicated 集群。
- Cloud 控制台
- cURL
前往目标集群的集群详情页,并跟随以下指南挂起 Dedicated 集群。
以下为示例代码,请将示例中的 {API_KEY}
替换为您自己的Zilliz Cloud API 密钥。
以下 POST
通过请求体挂起了 Dedicated 集群。
curl --request POST \
--url "https://api.cloud.zilliz.com.cn/v2/clusters/${CLUSTER_ID}/suspend" \
--header "Authorization: Bearer ${API_KEY}" \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
# {
# "code": 0,
# "data": {
# "clusterId": "inxx-xxxxxxxxxxxxxxx",
# "prompt": "Successfully Submitted. The cluster will not incur any computing costs when suspended. You will only be billed for the storage costs during this time."
# }
# }
以下为参数说明:
-
{API_KEY}
:用于验证 API 请求的鉴权信息。请使用您自己的 Zilliz Cloud API 密钥。 -
{CLUSTER_ID}
: 需要挂起的 Dedicated 集群的 ID。
更多详细信息,请参考挂起集群。
恢复运行集群
Free 和 Serverless 集群在 7 天不活跃后会自动挂起,您可以随时恢复运行集群。
Dedicated 集群在手动挂起后也按需手动恢复运行。
包年包月的 Dedicated 集群不支持挂起或恢复运行。
请注意,在集群处于“恢复运行中”的状态下,您无法对集群进行其他操作。
您可以通过 Web 控制台或使用 RESTful API 和 SDK 恢复运行集群。
- Cloud 控制台
- cURL
前往目标集群的集群详情页,并跟随以下指南恢复运行集群。
以下为示例代码,请将示例中的 {API_KEY}
替换为您自己的Zilliz Cloud API 密钥。
以下 POST
通过请求体将集群回复运行。
curl --request POST \
--url "https://api.cloud.zilliz.com.cn/v2/clusters/${CLUSTER_ID}/resume" \
--header "Authorization: Bearer ${API_KEY}" \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
# {
# "code": 0,
# "data": {
# "clusterId": "inxx-xxxxxxxxxxxxxxx",
# "prompt": "successfully Submitted. Cluster is being resumed, which is expected to takes 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."
# }
# }
以下为参数说明:
-
{API_KEY}
:用于验证 API 请求的鉴权信息。请使用您自己的 Zilliz Cloud API 密钥。 -
{CLUSTER_ID}
: 需要恢复运行的集群的 ID。
更多详细信息,请参考恢复集群。
升级版本
如需使用更多高级功能,建议您升级集群版本。
版本升级 | 说明 |
---|---|
Free 升级至 Serverless | 您的 Free 集群将升级为 Serverless 版本。集群升级后,无法降级回原版本。 |
Free 升级至 Dedicated | 系统将创建一个新的 Dedicated 集群,并自动迁移您现有 Free 集群中的数据。原有的 Free 集群将被保留。 请务必在应用程序代码中更新集群的 Endpoint 信息。 |
Serverless 升级至 Dedicated | 系统将创建一个新的 Dedicated 集群,并自动迁移您现有 Serverless 集群中的数据。原有的 Serverless 集群将被保留。 请务必在应用程序代码中更新集群的 Endpoint 信息。 |
以下 Demo 展示了如何升级集群版本。
-
Free 升级至 Serverless
-
Free 升级至 Dedicated
-
Serverless 升级至 Dedicated
升级集群兼容版本以试用公测版功能仅 Dedicated
如需试用公测版新功能,请升级 Dedicated 集群的兼容 Milvus 版本。
删除集群
您可以删除不再需要的集群。您可以通过 Web 控制台或使用 RESTful API 和 SDK 删除集群。
- Cloud 控制台
- cURL
前往目标集群的集群详情页,并跟随以下指南删除集群。
以下为示例代码,请将示例中的 {API_KEY}
替换为您自己的Zilliz Cloud API 密钥。
以下 DELETE
通过请求体删除了集群。
curl --request POST \
--url "https://api.cloud.zilliz.com.cn/v2/clusters/${CLUSTER_ID}/drop" \
--header "Authorization: Bearer ${API_KEY}" \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
# {
# "code": 0,
# "data": {
# "clusterId": "inxx-xxxxxxxxxxxxxxx",
# "prompt": "The cluster has been deleted. If you consider this action to be an error, you have the option to restore the deleted cluster from the recycle bin within a 30-day period. Kindly note, this recovery feature does not apply to free clusters."
# }
# }
以下为参数说明:
-
{API_KEY}
:用于验证 API 请求的鉴权信息。请使用您自己的 Zilliz Cloud API 密钥。 -
{CLUSTER_ID}
: 需要恢复运行的集群的 ID。
更多详细信息,请参考删除集群。