Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hwware committed Oct 18, 2024
1 parent 03a4dfa commit 200b203
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -2502,6 +2502,8 @@ static int updateReplBacklogSize(const char **err) {
return 1;
}

/* Adjusts `maxmemory_reserved_scale` to ensure it remains within the valid range of 10 to 60, if set.
* Once adjusted, the available memory is recalculated to reflect the new reserved memory. */
static int updateMaxmemoryReserved(const char **err) {
UNUSED(err);
if (server.maxmemory_reserved_scale) {
Expand Down
8 changes: 4 additions & 4 deletions valkey.conf
Original file line number Diff line number Diff line change
Expand Up @@ -1249,10 +1249,10 @@ acllog-max-len 128
#
# active-expire-effort 1
#
# It allows the valkey to evict keys earlier. The value of this parameter represents
# percent of the maxmemory value. It means how much memory the valkey instance want to hold
# not to store the data.
# Default is 0, and the value could be set between 10 to 60.
# This parameter allows Valkey to evict keys earlier. The value represents
# a percentage of the maxmemory limit, indicating how much memory the Valkey instance reserves
# without storing data.
# The default is 0, and the value can be set between 10 and 60.
#
# maxmemory-reserved-scale 0

Expand Down

0 comments on commit 200b203

Please sign in to comment.