Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Chen, Junjie <chenjunjie@huawei.com> Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
6.3 KiB
Master/Standby Redis
This section describes master/standby DCS Redis instances. Three Redis versions are available for master/standby DCS Redis instances: Redis 3.0, Redis 4.0, and Redis 5.0.

You cannot upgrade the Redis version for an instance. For example, a master/standby DCS Redis 3.0 instance cannot be upgraded to a master/standby DCS Redis 4.0 or 5.0 instance. If your service requires the features of higher Redis versions, create a DCS Redis instance of a higher version and then migrate data from the old instance to the new one.
Features
Master/Standby DCS instances have higher availability and reliability than single-node DCS instances.
Master/Standby DCS instances have the following features:
- Data persistence and high reliability
By default, data persistence is enabled by both the master and the standby node of a master/standby instance.
The standby node of a DCS Redis instance is invisible to you. Only the master node provides data read/write operations.
- Data synchronization
Data in the master and standby nodes is kept consistent through incremental synchronization.
- Automatic master/standby switchover
If the master node becomes faulty, the standby node takes over within 30 seconds, without requiring any service interruptions or manual operations.
- DR policies
Each master/standby instance can be deployed across AZs with physically isolated power supplies and networks. Applications can also be deployed across AZs to achieve high availability for both data and applications.
Architecture
Figure 1 shows the architecture of master/standby DCS Redis instances.

To access a DCS Redis 3.0 instance, you must use port 6379. To access a DCS Redis 4.0 or 5.0 instance, you can customize the port. If no port is specified, the default port 6379 will be used. In the following architecture, port 6379 is used. If you have customized a port, replace 6379 with the actual port.
Architecture description:
- VPC
All server nodes of the instance run in the same VPC.
For intra-VPC access, the client and the instance must be in the same VPC with specified security group rule configurations.
For details, see Security Group Configurations.
- Application
The Redis client of the instance, which is the application running on the ECS.
DCS Redis instances are compatible with the Redis protocol, and can be accessed through open-source clients. For details about accessing DCS instances, see Accessing an Instance.
- DCS instance
Indicates a master/standby DCS instance which has a master node and a standby node. By default, data persistence is enabled and data is synchronized between the two nodes.
DCS monitors the availability of the instance in real time. If the master node becomes faulty, the standby node becomes the master node and resumes service provisioning.
DCS Redis instances are accessed through port 6379 by default.