Cache for Redis
Service metrics | Description |
Data volume | Peak amount of data that the Serviceneeds to store in Redis. |
Queries per second (QPS) | Peak number of Redis service queries per second. |
Bandwidth per second (BPS) | Peak Redis service data volume per second. |
Connections | Peak number of connections between a client and a single Redis instance. |
Instance architecture | Introduction | Applicable scenario |
Redis instances with sharding cluster enabled can use sharded partitions to increase cache capacity and concurrent connections. Each shard contains one primary node and one to five secondary nodes. The shard itself is invisible externally by default. If the primary node fails in the shard, a secondary node in the same shard will be upgraded to the primary node to continue providing the services. |
| |
Redis instances with sharding cluster disabled only contain one shard, and the data of the primary and secondary nodes in the shard is maintained consistently through real-time replication mechanism. If the primary node fails, the secondary node automatically upgrades to the primary node. |
|
Option | Description |
Node specification | Cache for Redis supports various node specifications, and the maximum connection count and QPS values supported by the specifications are fixed (5,000 and 80,000, respectively). However, memory and bandwidth vary between different node specifications. For more information on node performance, refer to Instance specifications. Therefore, when selecting node specifications, the main considerations are the amount of data and bandwidth your service requires. |
Number of shards |
|
Number of nodes per shard | Each shard in Cache for Redis supports the use of two to six nodes, with one being the primary node and the rest being secondary nodes. You can determine the required number of nodes based on the following two factors:
|