How should I configure memory swapping?

Hello,

I want to build Elasticsearch and Kibana using Podman on RHEL 8.5. It is my understanding that disabling memory swapping is a best practice in Elasticsearch.

I am planning to implement the following settings based on the official documentation: RHEL 8 using Podman | Elastic Cloud Enterprise Reference [3.5] | Elastic

I intend to execute the following configurations:

  • sudo /sbin/grubby --update-kernel=ALL --args='cgroup_enable=memory cgroup.memory=nokmem swapaccount=1'
  • vm.swappiness=1

However, it seems these settings are not for disabling memory swapping but rather to minimize it. According to the documentation, simply editing the /etc/fstab file and commenting out any lines that contain the word "swap" is suggested to disable it permanently. Is this approach acceptable? Disable swapping | Elasticsearch Guide [8.11] | Elastic

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