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=268b46c26ed991bb857fba58ad17cbe4f6bc8055;hb=a4e640d590675d80951aacf4ba138107c760b590;hpb=6c815a95a7d7f41599713b6a48826c89a913dd69 diff --git a/elasticsearch/files/elasticsearch.yml b/elasticsearch/files/elasticsearch.yml index 268b46c..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