Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
Signed-off-by: hwware <[email protected]>
  • Loading branch information
hwware committed Oct 28, 2024
1 parent 59892a5 commit 7e9fa70
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 @@ -2509,6 +2509,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 7e9fa70

Please sign in to comment.