--- name: cluster description: Use when the user wants to create, list, describe, delete, suspend, resume, or modify Zilliz Cloud clusters. --- ## Prerequisites 1. CLI installed and logged in (see setup skill). 2. No cluster context required -- these are control-plane operations. ## Commands Reference ### Create a Cluster ```bash # Serverless cluster zilliz cluster create \ --name \ --type serverless \ --project-id \ --region # Free-tier cluster zilliz cluster create \ --name \ --type free \ --project-id \ --region # Dedicated cluster zilliz cluster create \ --name \ --type dedicated \ --project-id \ --region \ --cu-type \ --cu-size ``` To find available project IDs, cloud providers, and regions: ```bash zilliz project list zilliz cluster providers zilliz cluster regions --cloud-id ``` ### Create a Vector Lake instance A Vector Lake (sometimes called a "VectorLake" cluster) is the storage layer that on-demand clusters attach to (see the `on-demand-cluster` skill). It is created via a hand-written subcommand calling `POST /v2/clusters/createVectorLake`: ```bash zilliz cluster create-vectorlake \ --project-id \ --region-id \ [--session-ttl ] \ # idle auto-suspend TTL, min 60s [--max-query-node-cu ] \ [--max-query-node-replicas ] ``` After the Vector Lake is `RUNNING`, attach a query workload with `zilliz on-demand-cluster create --project-id --region-id --cu-size --cluster-name `. ### List Clusters ```bash zilliz cluster list # Optional: --region-id # Pagination: --page-size --page # Fetch all pages: --all ``` ### Describe a Cluster ```bash zilliz cluster describe --cluster-id ``` ### Modify a Cluster ```bash zilliz cluster modify --cluster-id # Optional: --cu-size , --replica # Or use raw JSON: --body '{"cuSize": 2, "replica": 2}' ``` ### Suspend a Cluster ```bash zilliz cluster suspend --cluster-id ``` ### Resume a Cluster ```bash zilliz cluster resume --cluster-id ``` ### Delete a Cluster ```bash zilliz cluster delete --cluster-id ``` ### List Cloud Providers ```bash zilliz cluster providers ``` ### List Regions ```bash zilliz cluster regions # Optional: --cloud-id ``` ## Guidance - Before creating a cluster, help the user choose a region by running `zilliz cluster providers` and `zilliz cluster regions`. - Cluster creation is **asynchronous**. After `cluster create`, the cluster status will be `CREATING`. Poll with `zilliz cluster describe --cluster-id ` until the status becomes `RUNNING` before proceeding with data-plane operations. - Before deleting a cluster, always confirm with the user -- this is irreversible. - After creating a cluster, suggest setting it as the active context with `zilliz context set --cluster-id `. - When a cluster is suspended, remind the user it must be resumed before data-plane operations. - Different cluster types have different capabilities. See the "Cluster Type Differences" table in the setup skill for details. - `cluster create-vectorlake` creates a Vector Lake storage instance, not a regular cluster. Query workloads against it run on on-demand clusters (see the `on-demand-cluster` skill). Do not pass `--type` to this subcommand; it has its own dedicated parameter set. - `cluster list` supports a `--region-id ` filter for scoping to a single region.