Skip to content

Commit

Permalink
Update redis.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
azagramac authored Dec 7, 2023
1 parent ec5bcb4 commit de69461
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions redis.conf
Original file line number Diff line number Diff line change
Expand Up @@ -415,21 +415,6 @@ proc-title-template "{title} {listen-addr} {server-mode}"
# is derived from the environment variables.
locale-collate "en_US.UTF-8"


################################## KERNEL ###################################

# WARNING overcommit_memory is set to 0! Background save may fail under low memory condition.
# To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot
# or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
# The overcommit_memory has 3 options.
# 0, the system kernel check if there is enough memory to be allocated to the process or not,
# if not enough, it will return errors to the process.
# 1, the system kernel is allowed to allocate the whole memory to the process
# no matter what the status of memory is.
# 2, the system kernel is allowed to allocate a memory whose size could be bigger than
# the sum of the size of physical memory and the size of exchange workspace to the process.
vm.overcommit_memory = 1

################################ SNAPSHOTTING ################################

# Save the DB to disk.
Expand Down

0 comments on commit de69461

Please sign in to comment.