From a4e640d590675d80951aacf4ba138107c760b590 Mon Sep 17 00:00:00 2001 From: Guillaume Thouvenin Date: Wed, 19 Oct 2016 15:06:32 +0200 Subject: [PATCH] Add mlockall and queue_size parameters --- elasticsearch/files/elasticsearch.yml | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.32.7