diff --git a/salt/elasticsearch/config.sls b/salt/elasticsearch/config.sls index 38cd73ffc..bb0e824c9 100644 --- a/salt/elasticsearch/config.sls +++ b/salt/elasticsearch/config.sls @@ -10,7 +10,7 @@ vm.max_map_count: sysctl.present: - - value: 262144 + - value: {{ ELASTICSEARCHMERGED.vm.max_map_count }} # Add ES Group elasticsearchgroup: diff --git a/salt/elasticsearch/defaults.yaml b/salt/elasticsearch/defaults.yaml index c9f771a91..49d4ced94 100644 --- a/salt/elasticsearch/defaults.yaml +++ b/salt/elasticsearch/defaults.yaml @@ -2,6 +2,8 @@ elasticsearch: enabled: false version: 9.0.8 index_clean: true + vm: + max_map_count: 1048576 config: action: destructive_requires_name: true diff --git a/salt/elasticsearch/soc_elasticsearch.yaml b/salt/elasticsearch/soc_elasticsearch.yaml index 674c7a569..110ee301c 100644 --- a/salt/elasticsearch/soc_elasticsearch.yaml +++ b/salt/elasticsearch/soc_elasticsearch.yaml @@ -15,6 +15,12 @@ elasticsearch: description: Determines if indices should be considered for deletion by available disk space in the cluster. Otherwise, indices will only be deleted by the age defined in the ILM settings. This setting only applies to EVAL, STANDALONE, and HEAVY NODE installations. Other installations can only use ILM settings. forcedType: bool helpLink: elasticsearch.html + vm: + max_map_count: + description: The maximum number of memory map areas a process may use. Elasticsearch uses a mmapfs directory by default to store its indices. The default operating system limits on mmap counts could be too low, which may result in out of memory exceptions. + forcedType: int + global: True + helpLink: elasticsearch.html retention: retention_pct: decription: Total percentage of space used by Elasticsearch for multi node clusters