Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0777c4d

Browse files
committed
Let's avoid OOM's due to swappiness=0.
1 parent 1301c13 commit 0777c4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roles/common/defaults/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22

3-
# Kernel swappines. Using the value 0 in order to avoid swapping, since the servers should have plenty of memory.
4-
kernel_swappiness: 0
3+
# Kernel swappiness. Using the value 1 in order to avoid swapping but avoid OOMs, since the servers should have plenty of memory.
4+
kernel_swappiness: 1
55

66
# Open file limits.
77
limits_nofile_hard: 65536

0 commit comments

Comments
 (0)