Milvus Deployment
Milvus is a flexible platform for analyzing unstructured data. With its help, you can quickly find similar vectors in a large database. This is especially relevant in the fields of artificial intelligence, computer vision, natural language processing, and recommendation systems.
Milvus features:
- storage and management of large volumes of vector data;
- fast comparison and nearest neighbor search (ANN) in high-dimensional spaces;
- integration with popular machine learning frameworks such as TensorFlow, PyTorch, and ONNX;
- convenient filtering and sorting mechanisms by attributes in addition to vector search;
- support for flexible horizontal scalability and distributed storage.
Milvus provides a RESTful API and client libraries for various languages, simplifying integration with your applications, and includes Attu — a web interface for interacting with Milvus.
By using Milvus, you agree to the license agreements of Marketplace and Milvus.
To deploy the Milvus service in your VK Cloud project:
-
To have access to the VM with the deployed service and to the Milvus web interface from the Internet:
- Create a network with Internet access if it has not been created earlier.
- In the subnet settings, where the VM with the deployed service will be located, disable the Private DNS option.
-
Go to the App Store section.
-
On the Milvus service card, click the Learn more button.
-
On the service description page, click the Connect button.
-
Enter the data on the Server parameters page.
-
Specify the Milvus parameters:
-
How Milvus will be deployed: select the service placement type.
external— with an external IP address and a domain name provided by VK Cloud. Choose this placement type to access the VM with the deployed Milvus service from the Internet.internal— accessible only via an internal IP address.
-
Enable S3 backup: enable the option to create daily backups of Milvus data in the VK Cloud object storage. The storage is created automatically. The last 7 copies are kept.
-
Enable monitoring: enable the option to automatically send metrics of the virtual machine where Milvus is deployed to the Cloud Monitoring service. These metrics will be available in the Monitoring section of the management console.
-
-
Specify the parameters of the virtual machine where the service instance will be deployed:
- Network: select the network where the VM with the deployed service will be located. If you selected the
externalplacement type, choose a network with Internet access and a subnet for which the Private DNS option is disabled. - Availability zone: select the availability zone where the VM will be launched.
- Virtual machine type: select a preset VM configuration.
- Network: select the network where the VM with the deployed service will be located. If you selected the
-
Specify the parameters of the system disk and the data disk.
- Disk size: specify the required VM disk size in gigabytes.
- Disk type: select one of the disk types —
HDD,SSD, orHigh-IOPS SSD.
-
-
Click the Next step button.
-
Review the cost of the infrastructure for deploying the service and click the Connect plan button.
The cloud infrastructure deployment will begin, and the service properties page will open. The process status will also be displayed in the App Store → My services section.
After a successful deployment, messages will be sent to the email associated with your VK Cloud account:
- a notification with a link to the service instance in the VK Cloud management console;
- an email with a one-time link to the service access data.
-
Follow the one-time link from the email and save the service access data:
milvus_url— link to the Milvus web interface;milvus_default_user— login for connection;milvus_root_pass— password for connection;keypair— private key for connecting via SSH to the virtual machine where the service is deployed.
-
Go to the Milvus service web interface via the link from
milvus_urland fill in the fields:-
Milvus Address — by default, the field displays a value of the form
<MILVUS_ADDRESS>:19515, where<MILVUS_ADDRESS>is the domain or address of the VM with the deployed Milvus instance, and19515is the connection port.Instead of
<MILVUS_ADDRESS>, specify one of the following values of your choice:- the domain name from the
milvus_urllink (without the/attupostfix); - the public address of the VM where the service is deployed;
- the private address of the VM where the service is deployed.
You can view the public and private VM addresses on the VM page in the Cloud Computing → Virtual Machines section, on the Networks tab.
- the domain name from the
-
Authentication — enable this option to authenticate to the service using a login and password.
-
token — leave the field empty.
-
username — enter the value from the
milvus_default_userparameter obtained when deploying the service. -
password — enter the value from the
milvus_root_passparameter obtained when deploying the service.
Click the Connect button to connect to the service.
-
-
(Optional) Use the bootcamp guide to get started with the service. If necessary, explore the official Milvus documentation.