Skip to content

Commit 728774b

Browse files
committed
Update comments
Signed-off-by: hwware <[email protected]>
1 parent 4518523 commit 728774b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/config.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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. */
25122514
static int updateMaxmemoryReserved(const char **err) {
25132515
UNUSED(err);
25142516
if (server.maxmemory_reserved_scale) {

valkey.conf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)