Swap, elasticsearch and docker

Its recommended to disable swap in the elasticsearch machine, but I was wandering if I have three elastic nodes on docker, is still recommended to disable swap?

The recommendation is to disable swap completely amongst other 2 options to ensure elasticsearch JVM uses RAM, this also applies when using docker.
For docker specific on limiting at container level (if the docker host/engine has swap enabled), best to refer to docker documentation

1 Like

Thanks Julien, if I disable swap on linux then it wouldn't be necessary to disable it in docker right?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.