Disabling swapiness

(Phani Nadiminti) #1

Hi All,

All my PROD nodes are dedicated ES servers each and running under elasticsearch user

do I need to disable swapiness in order to prevent OOM killer issues?


(Mark Walkom) #2

We recommend disabling swap - https://www.elastic.co/guide/en/elasticsearch/guide/current/heap-sizing.html#_swapping_is_the_death_of_performance.

(Phani Nadiminti) #3

Hi Mark,

Thank you for suggestion i have disabled swapiness on my production linux boxes. ES is suggesting any of the following methods in the following link so i did first one disabling swapiness completely on linux boxes.

I enabled bootstrap "bootstrap.mlockall: true" too. can I disable this one since i already disabled swapiness on prod linux boxes or do we need to enabled this bootstrap too? please suggest me on this.

Thank & Regards,

(Mark Walkom) #4

It doesn't really matter.

(system) #5