This topic describes the performance test environment of master-replica cluster instances of ApsaraDB for Redis.

Architecture

A master-replica cluster instance of ApsaraDB for Redis consists of a configuration server, proxy servers, and shard servers.

  • The configuration server acts as a cluster management tool that runs in a master-replica architecture. It stores cluster configuration information and partition policies.
  • A proxy server runs in a standalone architecture. A cluster contains multiple proxy servers. The cluster automatically balances loads and performs failovers among these proxy servers.
  • A shard server runs in a master-replica architecture. If the master node fails, a failover is triggered so that the replica node takes over services. This guarantees high availability of services.

A master-replica cluster instance of ApsaraDB for Redis provides a domain name for clients to access the instance. You can use the domain name to access the ApsaraDB for Redis instance and operate data stored on the instance. You cannot directly access the configuration server, proxy servers, or shard servers.

A client connects to the proxy servers through Server Load Balancer (SLB) and accesses the shard servers through the proxy servers. The following figure shows the architecture of a master-replica cluster instance of ApsaraDB for Redis.

Region and zone

All tests are performed in zone E of the China (Hangzhou) region.

ECS instance configurations

In the test environment, the configurations of the Elastic Compute Service (ECS) instances vary with the type of the master-replica cluster instance of ApsaraDB for Redis that is tested. Take the 128 GB cluster and the 64 GB cluster types for example.

The following configurations of the ECS instances used for testing the ApsaraDB for Redis instance of 128 GB cluster type are described:

  • 10 ECS instances, each of which has 4 vCPUs and 8 GB of memory
  • 4 ECS instances, each of which has 12 vCPUs and 48 GB of memory
  • Network type: Virtual Private Cloud (VPC)
  • Operating system: CentOS 6.0, 64-bit

The following configurations of the ECS instances used for testing the ApsaraDB for Redis instance of 64 GB cluster type are described:

  • 10 ECS instances, each of which has 4 vCPUs and 8 GB of memory
  • Network type: VPC
  • Operating system: CentOS 6.0, 64-bit

ApsaraDB for Redis instance configuration

  • The configurations of the ApsaraDB for Redis instances depend on the instance type.
  • This white paper uses ApsaraDB for Redis 2.8 instances for benchmark testing. The test result of ApsaraDB for Redis 4.0 instances is similar to that of ApsaraDB for Redis 2.8 instances.