System configuration
Elasticsearch configuration may lead to a number of performance and reliability issues, as mentioned in Chapter 2, Installation and the Requirements for Elasticsearch. A quick reminder that the most important configuration changes to make to your cluster are as follows:
Ensuring that the Elasticsearch heap size (
ES_HEAP
) is set to 1/2 of available system memory, but does not exceed 31 GB. Set this value in/etc/defaults/elasticsearch
Disabling memory swapping
Locking the Elasticsearch address space into memory by setting
bootstrap.mlockall: true
inelasticsearch.yml
Refer to Chapter 2, Installation and the Requirements for Elasticsearch, for more detailed instructions on how to set these values.