How should I set maxmemory-reserved and maxfragmentmemory-reserved in the Redis Cache?

ZP@Gyrus 20 Reputation points
2025-02-25T20:45:56.0633333+00:00

Hi. I'm dealing with a web app that is having issues with it's Redis Cache, so my company's IT team is wanting me to inquire as to whether increasing the maxmemory-reserved and the maxfragmentationmemory-reserved settings under our Redis Cache Advanced settings would help. In other words, how would we determine the best settings to set here?Max Memory Advanced Settings

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

1 answer

Sort by: Most helpful
  1. ZP@Gyrus 20 Reputation points
    2025-02-28T16:38:21.45+00:00

    Hi Mallaiah,

    Thanks for waiting, I'm still learning about how the Redis Cache works so please pardon me taking a little extra time to review this. If I am understanding this correctly, then having higher maxmemory-reserved means better performance for large data writes, but less storage capacity. Higher maxfragmentationmemory-reserved means better consistency when the cache is full, but less storage space, correct?

    If I may ask your opinion, if we're having large response sizes and have inconsistent application behavior, would we want to raise these settings up for better performance or instead focus on conserving storage space?

    0 comments No comments

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.