From a4ced92aeed99b42ba3d68ec5e8543f6a13600fa Mon Sep 17 00:00:00 2001 From: Julian Simioni Date: Thu, 25 Apr 2019 17:31:27 -0400 Subject: [PATCH] Set default bulk queue size for ES 2.4 image Similar to https://github.com/pelias/docker/pull/71, its helpful to set the bulk import queue size to much larger than the default (50 for ES 2.4). Without this setting, imports when running multiple importers can easily overwhelm Elasticsearch and fail. --- images/elasticsearch/2.4/Dockerfile | 4 ++++ images/elasticsearch/2.4/elasticsearch.yml | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 images/elasticsearch/2.4/elasticsearch.yml diff --git a/images/elasticsearch/2.4/Dockerfile b/images/elasticsearch/2.4/Dockerfile index d7857043..47cd0428 100644 --- a/images/elasticsearch/2.4/Dockerfile +++ b/images/elasticsearch/2.4/Dockerfile @@ -4,3 +4,7 @@ FROM elasticsearch:2.4 # configure plugins RUN /usr/share/elasticsearch/bin/plugin install analysis-icu RUN /usr/share/elasticsearch/bin/plugin install cloud-aws + +# elasticsearch config +ADD elasticsearch.yml /usr/share/elasticsearch/config/ +RUN chown elasticsearch:elasticsearch config/elasticsearch.yml diff --git a/images/elasticsearch/2.4/elasticsearch.yml b/images/elasticsearch/2.4/elasticsearch.yml new file mode 100644 index 00000000..e150a7ef --- /dev/null +++ b/images/elasticsearch/2.4/elasticsearch.yml @@ -0,0 +1,8 @@ +bootstrap.memory_lock: true +network.host: 0.0.0.0 +http.port: 9200 +node.master: true +node.data: true +threadpool: + bulk: + queue_size: 1000