X-Git-Url: https://gerrit.mcp.mirantis.com/gitweb?p=salt-formulas%2Felasticsearch.git;a=blobdiff_plain;f=elasticsearch%2Ffiles%2Felasticsearch.yml;h=7d2a04f13806af1b3bd8a5d7903d3541f12b4595;hp=fcea2a99407b472bfb99b96642d8e6ab38452cc9;hb=a4e640d590675d80951aacf4ba138107c760b590;hpb=63c8c25b95de6f4d545d3c918c1b045681d1d26b diff --git a/elasticsearch/files/elasticsearch.yml b/elasticsearch/files/elasticsearch.yml index fcea2a9..7d2a04f 100644 --- a/elasticsearch/files/elasticsearch.yml +++ b/elasticsearch/files/elasticsearch.yml @@ -95,6 +95,10 @@ node.rack: {{ server.rack }} # to disable it, set the following: # node.max_local_storage_nodes: 1 +{%- if server.get('threadpool', {}).get('bulk', {}).queue_size is defined %} +# For bulk operations. Thread pool type is fixed with a size of # of available processors. +threadpool.bulk.queue_size: {{ server.threadpool.bulk.queue_size }} +{%- endif %} #################################### Index #################################### @@ -189,6 +193,9 @@ index.number_of_replicas: {{ server.get('index', {}).get('replicas', 1) }} # Set this property to true to lock the memory: # # bootstrap.mlockall: true +{%- if server.mlockall is defined %} +bootstrap.mlockall: {{ server.mlockall|lower }} +{%- endif %} # Make sure that the ES_MIN_MEM and ES_MAX_MEM environment variables are set # to the same value, and that the machine has enough memory to allocate @@ -312,7 +319,7 @@ network.publish_host: {{ server.publish_host }} # operational within the cluster. Its recommended to set it to a higher value # than 1 when running more than 2 nodes in the cluster. # -# discovery.zen.minimum_master_nodes: 1 +discovery.zen.minimum_master_nodes: {{ server.get('cluster', {}).minimum_master_nodes|default(1) }} # Set the time to wait for ping responses from other nodes when discovering. # Set this option to a higher value on a slow or congested network