Skip to content

Elasticsearch - disable swapping #2068

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Doweig opened this issue Aug 18, 2016 · 1 comment
Closed

Elasticsearch - disable swapping #2068

Doweig opened this issue Aug 18, 2016 · 1 comment

Comments

@Doweig
Copy link

Doweig commented Aug 18, 2016

Hello guys,

I am currently trying to optimize Elasticsearch in production.
I have noticed that is it recommended to disable memory swapping in production and the official documentation is giving 3 ways to accomplish that:

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

1- sudo swapoff -a + edit /etc/fstab
2- Change the sysctl value, vm.swappiness = 1
3- Change java options by editing elasticsearch.yml, bootstrap.mlockall: true

Inside the docker image however, none of there 3 ways have been implemented

Is it something that should be handled on docker level or on the system level ?

Thank you in advance guys!

@Doweig Doweig closed this as completed Aug 18, 2016
@Doweig
Copy link
Author

Doweig commented Aug 18, 2016

Wrong repo, moved there docker-library/elasticsearch#116

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant