Network access and security settings
This topic describes the network access types and configuration methods for Vector Retrieval Service for Milvus (Milvus) to help you configure a secure and efficient network environment.
Network access types
Milvus supports access over Alibaba Cloud VPCs and the Internet. Milvus instances do not provide dedicated public IP addresses. Instead, you connect to them by using internal or public domain names.
-
Alibaba Cloud VPC access: You can access and use a Milvus instance from its VPC or another VPC.
Important-
VPC access is enabled for Milvus instances by default. When you create a Milvus instance, the system automatically creates an endpoint in the selected VPC to provide private network access to the instance. The endpoint name uses the format "instance-name-milvus-vpce". Do not delete this endpoint. Otherwise, you cannot access the Milvus instance.
-
Private network access is controlled by security group whitelists. You can find the security group and configure its rules on the Details page of the Milvus instance or the details page of the endpoint described above.
-
-
Public network access: You can access and use a Milvus instance over the Internet. The instance remains accessible from Alibaba Cloud VPCs.
ImportantPublic network access is disabled for Milvus instances by default. After you enable public network access, you must configure a public access whitelist. You can restrict access to the instance by IP address by configuring the whitelist on the Security Configuration page.
To compare query latency over internal and public connections, use the same instance, index, and query workload. Test each connection using its internal or public domain name.
Configure the network type
New Milvus instances use internal domain names by default. If you need public network access, perform the following steps to enable it for Proxy and Attu. Proxy and Attu use the same internal and public domain names and follow the same security group rules. Proxy uses port 19530, and Attu uses port 3000.
-
On the Security Configuration page of the instance, click Enable Public Access.
-
Enter the public IP address of the current server or a CIDR block.
To obtain the public IP address of the current server, visit IP address. Separate multiple IP entries with commas (,) and do not enter duplicates. Specify CIDR blocks in the
x.x.x.0/24format.ImportantTo ensure that the IP address is consistent, we recommend that you use a direct network connection without enabling a proxy service or using a proxy server.
-
Click OK.
Domain name types
Domain names are classified as internal or public. You can view both types on the Security Configuration page of the Milvus instance.
-
Internal domain names (accessible within the current VPC, including across vSwitches)
-
Internal domain name format for Proxy:
{{clusterId}}-internal.milvus.aliyuncs.com:19530 -
Internal domain name format for Attu:
{{clusterId}}-internal.milvus.aliyuncs.com:3000
-
-
Public domain names
-
Public domain name format for Proxy:
{{clusterId}}.milvus.aliyuncs.com:19530 -
Public domain name format for Attu:
{{clusterId}}.milvus.aliyuncs.com:3000
-
{{clusterId}}: The Milvus instance ID.
Network connections for data migration
When you use a third-party migration tool, such as Milvus Migration, to migrate data to a Milvus instance, connect to the instance by using its domain name. Choose a connection method based on where the migration tool is deployed:
-
If the migration tool is deployed on an ECS instance in the same VPC as the Milvus instance, use the internal domain name
{{clusterId}}-internal.milvus.aliyuncs.com:19530to connect to the instance. This method provides low network latency and requires no additional public network access configuration. -
If the migration tool is deployed in another network environment, first enable public network access for the Milvus instance and configure the whitelist. Then, use the public domain name
{{clusterId}}.milvus.aliyuncs.com:19530to connect to the instance.
Network security settings
You can configure network security whitelists to restrict access to a Milvus instance and protect your service data. Network security settings consist of a security group whitelist for VPC access and an access control policy whitelist for public network access.
-
Security group whitelist for VPC access (private network access control)
-
On the Details page of the instance, click the link next to Security Group ID.
-
On the Security Group Details page, click Add Manually to add the required security group rules.
For more information, see Add a security group rule.
-
-
Access control policy whitelist for public network access (public network access control)
NoteThe public access whitelist does not support
0.0.0.0/0. If your public outbound IP address changes frequently, you can deploy the client on an ECS instance in the same VPC as the Milvus instance and connect over the private network.Contact your network administrator to confirm the public outbound IP addresses and CIDR blocks of your office network or VPN.
-
On the Security Configuration page of the instance, under Public Access Whitelist, click Edit.
-
Enter the public IP address of the current server or a CIDR block.
To obtain the public IP address of the current server, visit IP address. Separate multiple IP entries with commas (,) and do not enter duplicates. Specify CIDR blocks in the
x.x.x.0/24format.ImportantTo ensure that the IP address is consistent, we recommend that you use a direct network connection without enabling a proxy service or using a proxy server.
-
Click OK.
-