File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -2509,6 +2509,8 @@ static int updateReplBacklogSize(const char **err) {
25092509 return 1 ;
25102510}
25112511
2512+ /* Adjusts `maxmemory_reserved_scale` to ensure it remains within the valid range of 10 to 60, if set.
2513+ * Once adjusted, the available memory is recalculated to reflect the new reserved memory. */
25122514static int updateMaxmemoryReserved (const char * * err ) {
25132515 UNUSED (err );
25142516 if (server .maxmemory_reserved_scale ) {
Original file line number Diff line number Diff line change @@ -1249,10 +1249,10 @@ acllog-max-len 128
12491249#
12501250# active-expire-effort 1
12511251#
1252- # It allows the valkey to evict keys earlier. The value of this parameter represents
1253- # percent of the maxmemory value. It means how much memory the valkey instance want to hold
1254- # not to store the data.
1255- # Default is 0, and the value could be set between 10 to 60.
1252+ # This parameter allows Valkey to evict keys earlier. The value represents
1253+ # a percentage of the maxmemory limit, indicating how much memory the Valkey instance reserves
1254+ # without storing data.
1255+ # The default is 0, and the value can be set between 10 and 60.
12561256#
12571257# maxmemory-reserved-scale 0
12581258
You can’t perform that action at this time.
0 commit comments