TencentDB for Redis® Memory Edition (Standard Architecture) refers to the edition that supports one or more replicas (a replica refers to a non-master node), which is the most common Redis edition. It is compatible with protocols and commands of Redis 2.8, 4.0, 5.0, and 6.2 and features data persistence and backup, making it suitable for scenarios where high data reliability and availability are required. A master node provides daily service access, while a replica node ensures high availability (HA). In case that the master node fails, the system will automatically switch to the replica node to guarantee business continuity.
Taking 1 replica as an example, Memory Edition (Standard Architecture) is as follows:
Replica Description
Memory Edition (Standard Architecture) supports 1–5 replicas to meet the different requirements for availability and performance of your business in different scenarios. All replicas of Memory Edition (Standard Architecture) play a role in supporting system's high availability, so the more replicas, the higher the availability. If the number of replicas is greater than or equal to 1, read/write separation can be enabled to extend the read performance through replica nodes.
Definition:
Master node: A Redis node that provides read and write capabilities.
Replica node: A Redis node that provides high availability or read-only capability. A master node cannot be a replica node.
Replica support:
|
Redis 2.8 Memory Edition (Standard Architecture) | 1 | Not supported |
Redis 4.0 Memory Edition (Standard Architecture) | 1 - 5 | Supported |
Redis 5.0 Memory Edition (Standard Architecture) | 1 - 5 | Yes |
Redis 6.2 Memory Edition (Standard Architecture) | 1 - 5 | Supported |
**Read-only replica (read/write separation)**:
Supported editions: TencentDB for Redis® 4.0 Memory Edition (Standard Architecture) and above instance. When the number of replicas is greater than 1, automatic read/write separation can be enabled to extend the read performance vertically. Up to 5 replica nodes can be supported.
How it works: After read-only replica is enabled, write requests will be routed to the master node, while read requests will be routed to all replica nodes through the load balancing algorithm and no longer be processed by the master node. This read/write separation feature is provided by the Proxy component built in TencentDB for Redis®.
Enabling/Disabling: You can enable or disable read-only replica on the instance creation page in the TencentDB for Redis® Console or through TencentCloud API.
Features
Service reliability (1-5 replicas)
With a dual-server master/slave architecture, the master and slave nodes reside on different physical machines with the master node providing external access. You can perform data CRUD using the Redis command line or client. In case that the master node fails, the proprietary HA system will automatically perform master/slave switchover to ensure smooth operation of the business.
Data reliability (1-5 replicas)
The data persistence feature is enabled by default. Memory Edition (Standard Architecture) supports data backup. You can roll back or clone instances for backup files to effectively cope with data maloperations and other issues.
Use Limits
Memory Edition (Standard Architecture) supports 0.25–64 GB of storage capacity. For higher specifications, use Cluster Edition that supports up to 8 TB of capacity.
Memory Edition (Standard Architecture) supports up to 100,000 QPS (SET command concurrencies). If you need a higher QPS, you can choose multi-replica read/write separation or use Redis Cluster Edition that supports tens of millions of QPS.
Command Compatibility
この記事はお役に立ちましたか?