You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-cache-for-redis/cache-best-practices-memory-management.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,27 +36,27 @@ Large key values can leave memory fragmented on eviction and might lead to high
36
36
37
37
Configure your [maxmemory-reserved settings](cache-configure.md#memory-policies) to maximize system responsiveness. Sufficient reservation settings are especially important for write-heavy workloads, or if you're storing values of 100 KB or more in your cache.
38
38
39
-
The `maxmemory-reserved` setting configures the amount of memory, in MB per instance in a cluster, that's reserved for non-cache operations, such as replication during failover. Setting this value allows you to have a more consistent Redis server experience when your load varies.
39
+
-The `maxmemory-reserved` setting configures the amount of memory, in MB per instance in a cluster, reserved for noncache operations such as replication during failover. Setting this value allows you to have a more consistent Redis server experience when your load varies.
40
40
41
-
The `maxfragmentationmemory-reserved` setting configures the amount of memory, in MB per instance in a cluster, that's reserved to accommodate memory fragmentation. When you set this value, the Redis server experience is more consistent when the cache is full or close to full and the fragmentation ratio is high.
41
+
-The `maxfragmentationmemory-reserved` setting configures the amount of memory, in MB per instance in a cluster, reserved to accommodate memory fragmentation. When you set this value, the Redis server experience is more consistent when the cache is full or close to full and the fragmentation ratio is high.
42
42
43
-
When memory is reserved for these operations, it's unavailable for storing cached data. By default when you create a cache, approximately 10% of the available memory is reserved for `maxmemory-reserved`, and another 10% is reserved for `maxfragmentationmemory-reserved`. You can increase the amounts reserved if you have write-heavy loads. The allowed ranges for `maxmemory-reserved` and for `maxfragmentationmemory-reserved` are 10%-60% of `maxmemory`. If you try to set these values lower than 10% or higher than 60%, they are reevaluated and set to the 10% minimum and 60% maximum.
43
+
When memory is reserved for these operations, it's unavailable for storing cached data. By default when you create a cache, approximately 10% of the available memory is reserved for `maxmemory-reserved`, and another 10% is reserved for `maxfragmentationmemory-reserved`. You can increase the amounts reserved if you have write-heavy loads.
44
44
45
-
When you scale a cache up or down, both `maxmemory-reserved` and `maxfragmentationmemory-reserved`settings automatically scale in proportion to the cache size. For example, if `maxmemory-reserved` is set to 50% on a 6-GB cache, and you scale to a 12-GB cache, the setting automatically updates from 3 GB to 6 GB during scaling. If you scale down, the reverse happens.
45
+
The allowed ranges for `maxmemory-reserved` and for `maxfragmentationmemory-reserved`are 10%-60% of `maxmemory`. If you try to set these values lower than 10% or higher than 60%, they're reevaluated and set to the 10% minimum and 60% maximum.
46
46
47
-
If you change a `maxmemory-reserved`or`maxfragmentationmemory-reserved`memory reservation value, consider how this change might affect a cache with large amounts of data in it that is already running. For instance, if you have a 53-GB cache with the reserved values set to the minimums of 10 GB, the maximum available memory for the system is approximately 42 GB.
47
+
When you scale a cache up or down, both `maxmemory-reserved`and`maxfragmentationmemory-reserved`settings automatically scale in proportion to the cache size. For example, if `maxmemory-reserved` is set to 3 GB on a 6-GB cache, and you scale to a 12-GB cache, the setting automatically updates to 6 GB during scaling. If you scale down, the reverse happens.
48
48
49
-
If either your current `used_memory` or `used_memory_rss` values are higher than the limit of 42 GB, the system must evict data until both `used_memory` and `used_memory_rss` are below 42 GB. Eviction can increase server load and memory fragmentation.
49
+
Consider how changing a `maxmemory-reserved` or `maxfragmentationmemory-reserved` memory reservation value might affect a cache with a large amount of data in it that is already running. For instance, if you have a 53-GB cache with the reserved values set to the 10% minimums, the maximum available memory for the system is approximately 42 GB. If either your current `used_memory` or `used_memory_rss` values are higher than 42 GB, the system must evict data until both `used_memory` and `used_memory_rss` are below 42 GB.
50
50
51
-
For more information on cache metrics such as `used_memory` and `used_memory_rss`, see [Create your own metrics](/azure/redis/monitor-cache#create-your-own-metrics).
51
+
Eviction can increase server load and memory fragmentation. For more information on cache metrics such as `used_memory` and `used_memory_rss`, see [Create your own metrics](/azure/redis/monitor-cache#create-your-own-metrics).
52
52
53
53
> [!NOTE]
54
-
> When you scale a cache up or down programmatically by using Azure PowerShell, Azure CLI, or REST API, any `maxmemory-reserved` and `maxfragmentationmemory-reserved` settings are ignored as part of the update request. Only your scaling change is honored. You can update the memory settings after the scaling operation has completed.
54
+
> When you scale a cache up or down programmatically by using Azure PowerShell, Azure CLI, or REST API, any `maxmemory-reserved` and `maxfragmentationmemory-reserved` settings are ignored as part of the update request. Only your scaling change is honored. You can update the memory settings after the scaling operation completes.
0 commit comments