Hello i want to diasble memory swapping on elastic search but i don't know how to make it work
i have systemd and i couldn't find this file /etc/systemd/system/elasticsearch.service.d/override.conf
and i tried using sudo systemctl edit elasticsearch it gave me an empty editor and i didn't know what to write. Can you please help me fix this issue
Hi,
in order to disable swapping of Elasticsearch memory, the file You mentioned should contain:
[Service]
LimitMEMLOCK=infinity
This is described in the ElasticSearch Reference, but I also did not find it right away.
We also set there the NOFILE limit for Elasticsearch:
LimitNOFILE=65535
Hope, that helps!
Alex
thank you for the help turns out i had to manually create it
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.