Frequently asked questions

Updated at:
Copy as MD

This topic provides answers and solutions to common questions about using Alibaba Cloud Vector Retrieval Service for Milvus.

Choose an edition and specifications

How can I estimate my compute resource requirements?

Use the resource calculator provided by Alibaba Cloud Milvus to estimate your resource requirements, and adjust the configuration based on actual tests before you go live. For details, see Milvus resource estimation and configuration recommendations.

How do I choose between Basic Edition and Standard Edition?

Choose an Alibaba Cloud Milvus edition based on your use case and requirements:

  • Basic Edition (standalone deployment): Suitable for users who are new to Milvus or need a test environment. It allows you to quickly try Milvus features.

  • Standard Edition (cluster deployment): Designed for production environments and provides greater stability. Choose Standard Edition for the best service experience and performance assurance.

Neither Basic Edition nor Standard Edition provides a service-level agreement (SLA) guarantee during public preview.

Use the service

How can I configure alert rules?

After you create an Alibaba Cloud Milvus instance, go to the Monitoring & Alerting page in the Milvus console and open the Alert Settings tab. Enable one-click alerting to configure alert monitoring. You can also click Alert Rule Settings to open the CloudMonitor console and customize alert rules.

Which index should I choose?

Indexes are essential to vector search performance. Index types affect query speed, accuracy, and resource usage differently. The following comparison can help you choose among common Milvus index types:

  • IVF_FLAT: Balances accuracy and query speed and suits most use cases. Quantization reduces computational complexity, providing substantially better query performance than FLAT with relatively low resource consumption. Choose it for large datasets when you need to balance query performance and resource costs.

  • HNSW (Hierarchical Navigable Small World): A graph-based index that delivers highly efficient queries, particularly for high-dimensional data. It requires more compute resources and memory. Choose it when you need the fastest queries and have sufficient resources, especially for high-dimensional datasets.

  • IVF_SQ8: Uses quantization to speed up retrieval and suits resource-constrained scenarios that require a high recall rate. Query accuracy may be lower than with HNSW. Choose it when resources are limited but recall remains important, particularly for large datasets.

  • FLAT (exact index): Provides the highest query accuracy through exact matching, at the cost of query speed. Performance may be poor on large datasets. Choose it for relatively small datasets, such as tens of millions of records, when accuracy requirements are strict and slower queries are acceptable.

How do I troubleshoot a collection that fails to load or slow queries?

If a collection fails to load and the instance version supports Milvus Insight, go to the Asynchronous tasks tab in Milvus Insight and filter for LoadCollection to see the status and cause of the failure. If queries slow down, see View monitoring metrics to check query latency and Query Node resource utilization for the affected period. If the error identifies a specific field, see Manage schemas to check its definition.

How can I change an instance configuration?

You can view and modify instance configurations in the Alibaba Cloud Milvus console to meet different business requirements. For details, see Update instance configurations.

What does the string field contains invalid UTF-8 error indicate?

The error indicates that a string did not pass UTF-8 encoding validation.

How can I restart an instance?

Log on to the Milvus console. From the instance list, open the target instance's Details page, click Restart in the upper-right corner, and follow the on-screen instructions.

How can I reset an instance password?

Important

Resetting a Milvus instance password disconnects clients from the server. In a production environment, perform this operation during off-peak hours.

You can reset the password of an Alibaba Cloud Milvus instance in the following ways.

Reset the password in the console

  1. Open the security configuration page.

    1. Log on to the Alibaba Cloud Milvus console.

    2. In the left-side navigation pane, click Milvus Instances.

    3. On the Milvus Instances page, click the name of the target instance.

    4. Click the Security Configuration tab.

  2. In the Cluster Configurations section, click Reset.

  3. In the Reset Password panel, enter the New Password and Confirm Password, and click OK.

Reset the password with the Python SDK

Run the following script to change the instance password.

Note

Python SDK version 2.4 or later is required.

from pymilvus import MilvusClient

# Create a Milvus client.
client = MilvusClient(
    uri="http://c-b26606e936****.milvus.aliyuncs.com:19530",  # Public endpoint of the Milvus instance.
    token="<yourUsername>:<yourPassword>",  # Username and password for the Milvus instance.
    db_name="default"  # Database to connect to. This example uses the default database.
)

client.update_password(
    user_name="root",  # User whose password you want to change. This example uses root.
    old_password="old_password",  # Current password.
    new_password="new_password",  # New password.
    using="default"  # Database name.
)

Reset the password in the Attu interface

  1. Open Attu. For details, see Attu Management.

  2. On the left, click the image icon.

  3. Select the user whose password you want to change, and click Change Password in the Actions column.

  4. In the dialog box, enter the password and click Update.

    The current page becomes invalid after the password is changed. Click the image icon to sign out, and then sign in again with the new password.

Access control

Why can I not access my Alibaba Cloud Milvus instance?

If you cannot access an Alibaba Cloud Milvus instance, use the following steps to troubleshoot the issue:

  1. Check network connectivity.

    Run the following command in a command-line tool to test connectivity to the Milvus instance. Replace c-xxxx.milvus.aliyuncs.com with the actual public domain name of your instance.

    telnet c-xxxx.milvus.aliyuncs.com 19530
    • If the output contains Connected to c-xxxx.milvus.aliyuncs.com, network connectivity is working.

    • If the connection fails, check that public access is enabled and your IP address is in the instance's public access whitelist.

  2. Check Python SDK version compatibility.

    After you verify network connectivity, run pip list on your local command line to check whether the installed Python SDK meets the version requirements. If the installed pymilvus version is earlier than 2.0, upgrade it to a newer version and try again.

Tools

How can I use the Python SDK to access an Alibaba Cloud Milvus instance?

Install the PyMilvus library locally to connect to a Milvus instance. For details, see Quickly implement vector search.

How can I grant Milvus permissions to an Alibaba Cloud RAM user (sub-account)?

To manage Milvus instances, follow Grant permissions to a RAM user to grant the RAM user permissions such as AliyunMilvusFullAccess.

To use Milvus Manager, follow Grant a RAM user access to Milvus Manager to configure a custom permission policy.

Can I manage Alibaba Cloud Milvus instances through a graphical interface?

Alibaba Cloud Milvus integrates Attu for more efficient management of databases, collections, indexes, entities, and other objects. For details, see Attu Management. You can also connect to the instance with Milvus Manager to manage databases and collections.

How can I open the Attu Manager page?

Enable public access and add your local public IP address to the whitelist. For details, see Connect to Attu.