When you apply for a private endpoint for an ApsaraDB for Redis instance, make sure that the vSwitch to which the instance is connected has sufficient IP addresses that can be allocated. This topic describes how to query the number of available IP addresses in a vSwitch.
Background information
When you apply for a private endpoint for a local disk-based cluster instance, an IP address is allocated to the master node of each shard and another IP address is allocated to the private endpoint. If the vSwitch cannot provide sufficient IP addresses, the private endpoint cannot be enabled. For more information, see Enable the direct connection mode.
Procedure
- Log on to the ApsaraDB for Redis console and go to the Instances page. In the top navigation bar, select the region in which the instance is deployed. Then, find the instance and click its ID.
In the Basic Information section, copy the vSwitch ID and click the virtual private cloud (VPC) ID.
You are directed to the VPC console.
On the details page of the VPC, click the Resource Management tab and then click the number corresponding to the vSwitch field.
In the upper part of the vSwitch page, select Instance ID from the drop-down list, paste the copied vSwitch ID into the search box, and then click the search icon.
After you find the vSwitch, you can view the number of available IP addresses that can be allocated by the vSwitch.