Skip to content

Commit

Permalink
Set default bulk queue size for ES 2.4 image
Browse files Browse the repository at this point in the history
Similar to pelias#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.
  • Loading branch information
orangejulius committed Apr 25, 2019
1 parent 140652e commit a4ced92
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions images/elasticsearch/2.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 8 additions & 0 deletions images/elasticsearch/2.4/elasticsearch.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a4ced92

Please sign in to comment.