Network Conditions for Accessing DCS Redis
You can access a DCS instance through any Redis client. For details about Redis clients, see the Redis official website.
There are different constraints when a client connects to Redis in certain ways:
- Accessing a Redis instance on a client within the same VPC
The ECS where the client is installed must be in the same VPC as the DCS Redis instance. An ECS and a DCS instance can communicate with each other only when they belong to the same VPC. Redis 3.0 and 6.0 professional: The instance and the ECS must either be configured with the same security group or use different security groups but can communicate with each other as configured by the security group rules. Redis 4.0/5.0: The IP address of the ECS must be on the whitelist of the DCS instance.
For details about how to configure a security group, see How Do I Configure a Security Group? For details about how to configure a whitelist, see Managing IP Address Whitelist.
- Accessing a Redis instance on a client across VPCs in the same region
If the client and DCS Redis instance are not in the same VPC, connect them by establishing a VPC peering connection. For details, see Does DCS Support Cross-VPC Access?
- Accessing a Redis instance of another region on a client
If the client server and the Redis instance are not in the same region, connect the network using Direct Connect. For details, see What Is Direct Connect.
To access a Redis instance across regions, the instance domain names cannot be resolved across regions. Therefore, the instance cannot be accessed at its domain name addresses. You can manually map the domain name to the IP address in the hosts file, or access the instance at its IP address.
- Public network access
To access a Redis 4.0/5.0/6.0 instance on a client over a public network, enable public access for the instance by referring to Enabling Public Access to Redis 4.0/5.0/6.0 and Obtaining the Access Addresses.
To access a Redis 3.0 instance over a public network on a client, the instance needs to be configured with security rules. If SSL encryption is disabled, allow public access through port 6379. If SSL encryption is enabled, allow public access through port 36379. For details, see the "How Do I Configure a Security Group?" FAQ.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot