From cb085192a3a5e9d71f295f1465f97d908e4d00b9 Mon Sep 17 00:00:00 2001 From: JOduMonT Date: Sun, 20 Aug 2017 16:16:06 +0700 Subject: [PATCH] add vm.overcommit_memory=1 as is recommanded by REDIS # 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. --- user_data | 1 + 1 file changed, 1 insertion(+) diff --git a/user_data b/user_data index 701c8c9..eca82b6 100644 --- a/user_data +++ b/user_data @@ -21,6 +21,7 @@ write_files: content: | fs.aio-max-nr=1048576 vm.max_map_count=262144 + vm.overcommit_memory=1 - path: /etc/hosts permissions: 0644 owner: root -- GitLab