All Products
Search
Document Center

Tair (Redis® OSS-Compatible):Why is the memory usage of a new Tair instance not zero?

Last Updated:Oct 31, 2024

Tair (Redis OSS-compatible) works in the same manner as Redis. When you create a Tair instance, the system generates database metadata that occupies a fraction of storage space on the instance. You can view the occupied space in the Tair (Redis OSS-compatible) console.

Memory occupied by metadata:

  • The metadata size of a standard instance is 30 MB to 50 MB.

    Specific Tair (Enterprise Edition) instances may contain more metadata than Redis Open-Source Edition instances. The excess metadata that is approximately dozens of MB in size is used to accelerate queries and collect statistics about hotkeys and large keys.

    Note

    Starting version 24.3.0.0, Tair DRAM-based instances that are compatible with Redis 6.0 can be rolled back within seconds when imperceptible scaling fails. Tair needs to log some metadata. Each logical database generates approximately 5 MB to 6 MB of memory for metadata, which is evenly distributed across all shards. If you use a large number of logical databases or run the SELECT command to switch between different databases, the memory usage of metadata also increases.

    We recommend that you update the version of your instance to 24.3.2.2 or later. Tair is deeply optimized for the memory usage of metadata. Starting version 24.3.2.2, the memory usage of metadata becomes significantly small.

  • The size of metadata on each shard of a cluster instance is 30 MB to 80 MB. The total size of metadata in a cluster instance is equal to the sum of metadata on each shard of the cluster instance.