Skip to main content

Handle the overcommit memory warning

When starting an Aiven for Valkey™ service in the Aiven Console, you may notice on Logs the following warning overcommit_memory:

# 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 reboot or run the command 'sysctl vm.overcommit_memory=1'
for this to take effect.

This warning can be safely ignored as Aiven for Valkey ensures that the available memory never drops low enough to hit this particular failure case.