How Do I Get the Connection Address and ID of a DCS Redis Instance?
You can query the connection address and ID on the instance details page. For details, see Checking Connection Addresses.
Can I Connect to Redis Through redis-cli?
redis-cli is the built-in CLI of the native Redis. You can use redis-cli to access the DCS Redis Version on a CT-ECS instance or local device for data management.
Does DCS Redis Support Redis Clients such as Jedis?
Yes. All clients that are compatible with the Redis protocol support connections to DCS Redis. You can use any of these clients that are suitable for your applications.
For more information about how to connect to a Redis instance by using a Redis client, see Using a Client to Connect to a Redis Instance.
Do I Need to Install Redis on a CT-ECS Instance to use DCS Redis?
No. You can use a Redis client to connect to DCS Redis instances from an ECS instance.
For more information, see Connecting to a Redis Instance.
Do DCS Instances Support Access over a Public Network?
You can bind an EIP for access over a public network. For more information, see Connecting to a Redis Instance over a Public Network.
You are advised to use an elastic cloud server in the same VPC to access DCS instances to secure cached data.
Do DCS Instances Support Cross-VPC Access?
Generally, VPCs are isolated from each other and you cannot access a DCS instance that belongs to a different VPC if public access is not enabled. You can establish VPC peering connections to allow access to DCS instances across VPCs.
For more information on how to create and use VPC peering connections, see VPC Peering Connections.
Can I Customize or Change the Port for an Instance?
You cannot specify or modify a port.
Can I Change the Access Address of an Instance?
After a DCS instance is created, you cannot modify its IP and domain connection addresses.
How Do I Check Whether a CT-ECS Instance and a Redis Instance Are of the Same Network Type?
To connect a CT-ECS instance to a Redis instance over the internal network, make sure that the network types of the two instances are the same. The network type can be a classic network or a Virtual Private Cloud (VPC). If the network types of the two instances are VPC, make sure that the two instances belong to the same VPC. You can view the VPC to which the ECS belongs on the console of the ECS. For more information, see Viewing ECS Details. View the VPC where the Redis instance is located on the Redis console. For more information, see Viewing Instance Information.
Will I Be Charged for the EIP Used for Public Access to a Redis Instance?
Yes. You must pay for the EIP used for public access to a Redis instance.
Before enabling public access, you must have an available EIP. For the billing details, see the EIP-Billing Mode.
What Should I Do If Access to Redis Fails After Server Disconnects?
Analysis: If persistent connection or connection pooling is used and the connection is lost after being used for connecting to DCS instances, errors will be returned at attempts to reuse the connection.
Solution: When using persistent connection or connection pooling, do not close the connection after the end of a request. If the connection is interrupted, re-establish it.
Why Do Requests Sometimes Time Out in Clients?
Occasional timeout errors are normal because of network connectivity and client timeout configurations.
You are advised to include reconnection operations into your service code to avoid service failures if a single request fails, improving service reliability.
Do I Need a Password to Connect to a DCS Instance?
To connect to a DCS instance, you must use a password for authentication. You can customize a password when creating an instance. You can also modify the password of an instance on the Redis console. For more information, see Resetting an Instance Password.
Why Is Public Access to My DCS Redis Instance Unintentionally Disabled?
Check whether the EIP bound to the DCS Redis instance is unbound.
Can I Access DCS Instances in a Local Environment?
If public access is enabled, DCS instances can be accessed in local environments. For more information, see Public Access to a DCS Redis Instance.
Recommended Jedis Parameter Settings
Proper configurations of Jedis connection pool parameters effectively improve the performance of clients using Redis. For more information, see Jedis Connection Pool Optimization.