Until 32000m for JVM memory, thanks @jlruizmlg
This commit is contained in:
parent
5e3055a730
commit
82623da8af
@ -3,5 +3,5 @@ elasticsearch_cluster_name: wazuh
|
|||||||
elasticsearch_node_name: node-1
|
elasticsearch_node_name: node-1
|
||||||
elasticsearch_http_port: 9200
|
elasticsearch_http_port: 9200
|
||||||
elasticsearch_network_host: 127.0.0.1
|
elasticsearch_network_host: 127.0.0.1
|
||||||
elasticsearch_jvm_xms: 1g
|
elasticsearch_jvm_xms: 2000
|
||||||
elastic_stack_version: 5.5.0
|
elastic_stack_version: 5.5.0
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
#jinja2: trim_blocks:False
|
||||||
# {{ ansible_managed }}
|
# {{ ansible_managed }}
|
||||||
## JVM configuration
|
## JVM configuration
|
||||||
|
|
||||||
@ -19,9 +20,18 @@
|
|||||||
|
|
||||||
# Xms represents the initial size of total heap space
|
# Xms represents the initial size of total heap space
|
||||||
# Xmx represents the maximum size of total heap space
|
# Xmx represents the maximum size of total heap space
|
||||||
|
{% if elasticsearch_jvm_xms is defined %}
|
||||||
-Xms{{ elasticsearch_jvm_xms }}
|
{% if elasticsearch_jvm_xms < 32000 %}
|
||||||
-Xmx{{ elasticsearch_jvm_xms }}
|
-Xms{{ elasticsearch_jvm_xms }}m
|
||||||
|
-Xmx{{ elasticsearch_jvm_xms }}m
|
||||||
|
{% else %}
|
||||||
|
-Xms32000m
|
||||||
|
-Xmx32000m
|
||||||
|
{% endif %}
|
||||||
|
{% else %}
|
||||||
|
-Xms{% if ansible_memtotal_mb < 64000 %}{{ ((ansible_memtotal_mb|int)/2)|int }}m{% else %}32000m{% endif %}
|
||||||
|
-Xmx{% if ansible_memtotal_mb < 64000 %}{{ ((ansible_memtotal_mb|int)/2)|int }}m{% else %}32000m{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
################################################################
|
################################################################
|
||||||
## Expert settings
|
## Expert settings
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user