Quickly create a Milvus instance

Updated at:
Copy as MD

This topic describes how to quickly create a Vector Retrieval Service for Milvus (Milvus) instance.

Usage notes

Vector Retrieval Service for Milvus (Milvus) supports Standard Edition and StandalonePro Edition:

  • Standard Edition: A distributed vector search solution designed for enterprise applications and large-scale production environments. It uses cluster deployment across multiple zones, provides a production-grade high-availability SLA, and supports independent horizontal scaling of compute and storage resources. It is suitable for production scenarios that require high reliability, high concurrency, and large-scale data processing.

  • StandalonePro Edition: A lightweight vector search solution designed for individual developers and small teams. It uses single-process deployment and does not support horizontal scaling. It is recommended only for development and learning, feature validation, or initial testing, and is not recommended for production environments.

Feature

StandalonePro Edition

Standard Edition

Primary use cases

Development, testing, and feature validation

Production environments and large-scale applications

Deployment architecture

Single process deployed in a single zone

Distributed cluster with support for high availability across multiple zones

Service level agreement (SLA)

A lower SLA than standard clusters, with no production-grade availability guarantee

Production-grade high-availability SLA

Scalability

Vertical scaling only; horizontal scaling is not supported

Independent horizontal scaling of compute and storage resources

Instance upgrades

Cannot be upgraded directly to a Standard Edition cluster; data migration is required

Smooth scaling up within the cluster edition

Free trial

Milvus offers a free trial. You can go to the free trial page to claim a trial instance. The free trial is available to accounts that have completed real-person verification and are new users of Milvus. New user eligibility is determined by the verified identity: If an account associated with the same verified identity has already purchased or tried Milvus, other accounts associated with that identity cannot claim another trial.

Important

Compute resource fees are waived during the free trial. Storage fees are billed based on actual usage. For more information, see Billable items.

Prerequisites

  • You have an Alibaba Cloud account. If you do not have an Alibaba Cloud account, register one first. For more information, see the Alibaba Cloud account registration procedure.

  • When you purchase Milvus for the first time, you must grant Milvus permissions to access the required cloud resources. For more information, see Grant roles to an Alibaba Cloud account.

  • If you use a RAM user, the RAM user must have been granted the required permissions. For more information, see Grant permissions to a RAM user.

Procedure

  1. Go to the Alibaba Cloud Milvus page.

    1. Log on to the Alibaba Cloud Milvus console.

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

  2. On the Instances page, click Create Instance and configure the following parameters.

    Parameter

    Description

    Billing Method

    Subscription and pay-as-you-go billing methods are supported.

    Duration

    For subscription purchases, the default purchase duration is 1 month. The supported purchase durations are subject to those displayed in the console.

    Region

    The physical location of the instance.

    Important

    You cannot change the region after the instance is created. Select the region carefully.

    Network

    • A virtual private cloud (VPC) is an isolated network environment that you define on Alibaba Cloud. You have full control over your VPC.

      Select an existing VPC. To create a VPC, click Go to Console to Create. For more information, see Create and manage a VPC.

    • A vSwitch is a basic network component of a VPC and connects different cloud resources.

      Select an existing vSwitch. To create a vSwitch, click Create in Console. For more information, see Create and manage vSwitches.

    Deployment Model

    • Single-zone: Suitable for development and testing environments, with lower costs and simple deployment, but no disaster recovery across zones.

    • Multi-zone Deployment (Basic): Has only one set of compute resources, so recovery takes some time if a failure occurs. The RTO is within 1 hour, offering better cost-effectiveness.

    • Multi-zone Deployment (HA): Has two sets of compute resources. If a service exception occurs, you can directly switch between the primary and secondary clusters. The RTO is within 3 minutes.

    For more information about the differences, applicable scenarios, and architecture of the multi-zone Basic Edition and High-availability Edition, see Comparison of multi-zone basic and HA editions.

    Version

    Versions 2.4, 2.5, and 2.6 are supported.

    Instance Series

    • Standard Edition: A distributed vector search solution designed for enterprise applications and large-scale production environments. It uses cluster deployment across multiple zones, provides a production-grade high-availability SLA, and supports independent horizontal scaling of compute and storage resources. It is suitable for production scenarios that require high reliability, high concurrency, and large-scale data processing.

    • StandalonePro Edition: A lightweight vector search solution designed for individual developers and small teams. It uses single-process deployment and does not support horizontal scaling. It is recommended only for development and learning, feature validation, or initial testing, and is not recommended for production environments.

    Service Node

    Configure this parameter when you create a Standard Edition instance.

    Primarily processes client requests and manages cluster status. It distributes query requests to appropriate compute nodes, collects the results, and returns them to the user. It also maintains cluster metadata to ensure that requests are correctly routed to the appropriate compute nodes.

    • Streaming Node: Primarily handles real-time writes and incremental data consumption.

      If data is written frequently and you require low latency between writing data and making it searchable, we strongly recommend that you increase the number of nodes or upgrade their specifications to improve real-time data processing capacity.

    • DataNode: Primarily handles data writing, persistence, and management.

      If data write volumes are high and imports are frequent, we strongly recommend that you increase the number of nodes or upgrade their specifications to improve overall write bandwidth and stability.

    • Proxy: Primarily receives and routes client requests.

      If you have many client connections and high request concurrency, we strongly recommend that you increase the number of nodes or upgrade their specifications to improve request handling and forwarding capacity.

    • Metadata Service: Handles resource scheduling and task coordination.

      For large clusters with many data partitions, we strongly recommend that you upgrade the specifications to ensure stable scheduling.

    Compute Node

    QueryNode: Handles vector search and filtering.

    When memory usage exceeds 70%, you must increase the number of nodes or upgrade their specifications to ensure query performance and stability. For more information about nodes, see Compute node specifications and performance comparison.

    For a Standard Edition instance running Milvus 2.6.16 or later, you can attach one ESSD to each performance-optimized Query Node. Set the CU type to Performance-optimized, click Add data disk, select PL0, PL1, PL2, or PL3, and set the disk capacity within the range shown on the page.

    Data Replicas

    Enabling multiple data replicas helps ensure cluster availability. We recommend that you enable this feature for production workloads.

    Data Storage

    Zone-redundant storage is used by default. You are billed hourly based on the actual amount of data stored, measured in GB of occupied storage space.

    Automatic Backup

    Important

    Using the backup feature incurs storage fees. For more information, see Billable items.

    Automatic backup is enabled by default. This feature protects instance data and helps ensure the service SLA. If data is accidentally lost, you can use this feature to restore the data.

    Note

    To disable this feature after the instance is created, go to the Backup Snapshot tab and disable it. For more information, see Backup and recovery.

    Password

    Set the password for the root (administrator) account of the Milvus instance to log on to the database.

    Note

    If you forget the password, see FAQ.

    OSS Data Encryption

    OSS data encryption requires Key Management Service (KMS). Go to the KMS console to activate the service.

    Resource Group

    Select an existing resource group. To create a dedicated resource group, click Create Resource Group. Resource groups organize your cloud resources by purpose, permissions, ownership, and other dimensions. For more information, see What is Resource Group?.

    Tag

    You can attach tags when you create an instance or after it is created. Tags help you identify and manage your instance resources. For more information about tags, see What is Tag?.

  3. After you confirm that the configuration is correct, read and select the service agreement, and click Create Instance.

    When the instance status is Running, the instance has been created.

After the instance is created, see Change instance specifications for the node sizes and node counts that you can change on your instance.

Related documentation

  • Milvus is seamlessly integrated with Alibaba Cloud Platform for AI (PAI), providing a one-stop solution for building high-performance retrieval-augmented generation (RAG) systems. You can use Milvus as the core for real-time storage and retrieval of vector data and combine it with PAI and LangChain to quickly move from theory to practice and build a powerful RAG solution. For more information about the solution, see Use Alibaba Cloud Milvus and PAI to build an efficient retrieval-augmented dialogue system.

  • As a high-performance vector search service, Milvus can be combined with Alibaba Cloud PAI (EAS) and embedding technologies to build an intelligent question answering system based on a large language model (LLM). You can quickly build a powerful question answering application by using Milvus for efficient vector search, an LLM deployed on EAS for inference and text understanding, and LangChain or other knowledge management toolchains to organize and use a knowledge base. For more information about the solution, see Build an LLM-powered Q&A system with Alibaba Cloud Milvus and LangChain.

  • You can use Milvus and the Qwen large model capabilities provided by Alibaba Cloud Model Studio to quickly build a question answering system based on a dedicated knowledge base. For more information about the solution, see Build a proprietary Q&A system with Milvus and Qwen.