How is the Redis usedmemorypercentage calculated?

Gallatin 21V 186 Reputation points
2024-05-27T01:43:48.1733333+00:00

Please explain how Redis usedmemorypercentage is calculated? After reviewing the Azure documentation, we did not find any introduction to its calculation method. Please help explain, thank you.

Azure Cache for Redis
Azure Cache for Redis
An Azure service that provides access to a secure, dedicated Redis cache, managed by Microsoft.
259 questions
{count} votes

Accepted answer
  1. Amrinder Singh 5,155 Reputation points Microsoft Employee
    2024-05-27T06:32:35.4766667+00:00

    Hi Gallatin 21V - Thanks for reaching out.

    We use effective memory to calculate UsedMemoryPercentage. By effective memory, it means the memory used for storing keys, subtracting the memory for replication between nodes, memory reserved. Finally,

    UsedMemoryPercentage = (UsedMemory - BacklogSizeforReplication) / ( Maxmemory - MaxMemoryReserved - MaxFragmentationMemoryReserved - BacklogSizeforReplication)

    Are you observing any issues with the same? Please let us know if you have any further queries. I’m happy to assist you further.


    Please "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.