Performance

Last updated: 2021-08-16 16:40:31

    Specifications

    Memory edition

    FeatureStandard ArchitectureCluster Architecture
    Compatible Redis version2.84.0 and 5.04.0 and 5.0
    Memory256 MB to 64 GB1 GB to 64 GB4 GB to 20 TB
    Shard quantityN/AN/A1 to 320
    QPS80,000 to 100,00080,000 to 100,00080,000 to 100,000 per shard
    Max connections40,00040,00040,000 per shard
    Traffic limit10 MB/s to 64 MB/s10 MB/s to 64 MB/s144 MB/s to 6 GB/s
    Multi-databaseSupportedSupportedSupported
    Mget, MsetSupportedSupportedSupported
    LuaSupportedSupportedSupported (cross-slot access not supported)
    Horizontal scalingUnsupportedUnsupportedSupported
    Replica scalingUnsupportedSupportedSupported
    Read/write separationUnsupportedSupportedSupported
    GEOUnsupportedSupportedSupported
    Replica quantity0 to 11 to 51 to 5
    Note:

    The 256 MB specification is a limited introductory version. It is only suitable for functionality verification in test environments but not recommended for production environments. Other specifications currently cannot be scaled down to the 256 MB specification.

    CKV edition

    FeatureStandard ArchitectureCluster Architecture
    Compatible Redis version3.23.2
    Memory4 GB to 384 GB12 GB to 48 TB
    Shard quantityN/A3 to 128
    QPS80,000 to 120,000Tens of millions
    Max connections12,000 to 24,00012,000 to 24,000 per shard
    Traffic limit16 MB/s to 256 MB/s72 MB/s to 32 GB/s
    Multi-databaseSupportedSupported
    Mget, MsetSupportedSupported
    lua SupportedLimited support (to use Lua in the cluster edition, you need to make sure that the keys accessed in the Lua script are in the same slot, and the `key` field must be included in the command parameters)
    Horizontal scalingUnsupportedSupported
    Replica scalingUnsupportedUnsupported
    Read/write separationUnsupportedUnsupported
    GEOSupportedSupported

    Traffic and connections

    Memory edition

    Specification (GB) Max. Connections Max. Throughput (MB/s)
    0.25 3,000 10
    1 40,000 16
    2 40,000 24
    4 40,000 24
    8 40,000 24
    12 40,000 32
    16 40,000 32
    20 40,000 48
    24 40,000 48
    32 40,000 48
    40 40,000 64
    48 40,000 64
    60 40,000 64

    CKV edition

    Specification (GB) Max. Connections Max. Throughput (MB/s)
    4 10,000 24
    8 10,000 24
    16 10,000 32
    24 10,000 32
    32 10,000 32
    48 18,000 64
    64 18,000 64
    80 18,000 64
    96 18,000 64
    128 24,000 128
    160 24,000 128
    192 24,000 128
    256 24,000 256
    320 24,000 256
    384 24,000 256

    Cluster edition connections = number of connections per shard * number of shards;
    Cluster Edition throughput = Shard throughput * number of shards

    Note:

    After scaling, legacy instances capable of up to 9,000 connections will be capable of 10,000 connections.

    Performance Data

    Performance references

    The time needed to execute Redis commands varies. Businesses use different database commands in their production environments; therefore, the corresponding performance values will also vary. The test results listed here are obtained with specified parameters and are for your reference only. Please conduct tests in your actual business environment for more accurate results.

    Single-node test performance

    Redis Instance Specification Connections QPS
    Memory edition (standard architecture), 8 GB 10,000 80,000-100,000
    Memory edition (cluster architecture), 8 GB (per shard) 10,000 80,000-100,000
    CKV edition (standard architecture), 8 GB 12,000 80,000-120,000

    Cluster architecture test performance

    Memory edition (cluster architecture) performance = memory edition (standard architecture) performance * number of shards
    CKV edition (cluster architecture) performance = CKV edition (standard architecture) performance * number of shards

    Test method

    Testing environment

    Number of CVMs where Pressure Test Clients Are Installed CVM Cores CVM MEM Region Redis Instance Specification
    3 2 8 GB Guangzhou Zone 2 Memory edition (standard architecture), 8 GB
    3 2 8 GB Guangzhou Zone 2 CKV edition (standard architecture), 8 GB

    Test parameters

    redis-benchmark -h 10.66.187.x -p 6379 -a crs-1znib6aw:chen2016 -t set -c 3500 -d 128 -n 25000000 -r 5000000
    redis-benchmark -h 10.66.187.x -p 6379 -a crs-1z5536aw:chen2016 -t set -c 3500 -d 128 -n 25000000 -r 5000000
    redis-benchmark -h 10.66.187.x -p 6379 -a crs-090rjlih:1234567 -t set -c 3500 -d 128 -n 25000000 -r 5000000
    

    QPS calculation

    Sum of the QPS values of 3 pressure test clients (tested by redis-benchmark).