Skip to main content

Connect to Serving Clusters

Zilliz Cloud provides various serving cluster deployment options to accommodate the distinct business needs.

  • Free: provides a starting point for learning and personal projects with limitations on storage, vCU consumption, and the number of collections.

  • Serverless: provides a shared environment that automatically scales to match your workload - no need to provision resources. This option delivers excellent cost efficiency and elasticity for unpredictable or spiky traffic.

  • Dedicated: provides isolated, reserved environments for production workloads that demand consistent and predictable performance. This option is ideal for sustained high-throughput and latency-sensitive applications.

Endpoint formats

Cluster typeEndpoint patternNotes
Free/Serverlesshttps://{cluster-id}.serverless.{region}.vectordb.zillizcloud.comFree/Serverless clusters use the real-time serving endpoint without a dedicated port.
Dedicatedhttps://{cluster-id}.{region}.vectordb.zillizcloud.com:19530Dedicated clusters use the real-time serving endpoint with port 19530.

Connect to Free/Serverless clusters

Copy the cluster public endpoint from the Connect card on the cluster details page. Use either an API key with access to the cluster or a cluster credential in username:password format as the token.

python
from pymilvus import MilvusClient

CLUSTER_ENDPOINT = "YOUR_CLUSTER_ENDPOINT"
TOKEN = "YOUR_CLUSTER_TOKEN"

client = MilvusClient(
uri=CLUSTER_ENDPOINT,
token=TOKEN,
)

To verify the connection, run a lightweight operation such as listing collections.

python
collections = client.list_collections()
print(collections)

Connect to Dedicated clusters

Use the cluster endpoint and token consistently across SDKs. YOUR_CLUSTER_ENDPOINT is the public endpoint copied from the cluster Connect card, and YOUR_CLUSTER_TOKEN is either an API key with access to the target cluster or a cluster credential in username:password format.

python
from pymilvus import MilvusClient

CLUSTER_ENDPOINT = "YOUR_CLUSTER_ENDPOINT"
TOKEN = "YOUR_CLUSTER_TOKEN"

client = MilvusClient(
uri=CLUSTER_ENDPOINT,
token=TOKEN,
)

Verify the connection

After connecting with an SDK, run a lightweight operation such as listing collections.

python
collections = client.list_collections()
print(collections)
Ctrl I