Skip to content
This repository was archived by the owner on Nov 7, 2018. It is now read-only.

Commit b4e5cde

Browse files
jjungnickelpires
authored andcommitted
Make 'processors' configurable as recommended in the guide
[elastic/elasticsearch-definitive-guide#679](elastic/elasticsearch-definitive-guide#679)
1 parent 6cb1cca commit b4e5cde

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ Besides the [inherited ones](https://github.com/pires/docker-elasticsearch#envir
2121

2222
* [DISCOVERY_SERVICE](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery-zen.html#unicast) - the service to be queried for through DNS (default = `elasticsearch-discovery`).
2323
* [MEMORY_LOCK](https://www.elastic.co/guide/en/elasticsearch/reference/current/important-settings.html#bootstrap.memory_lock) - memory locking control defaults to `false` as Kubernetes requires swap to be disabled.
24+
* [PROCESSORS](https://github.com/elastic/elasticsearch-definitive-guide/pull/679/files) - allow elasticsearch to optimize for the actual number of available cpus (must be an integer and can be derived from resources.limits - default = 1)
25+

config/elasticsearch.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ node:
88
ingest: ${NODE_INGEST}
99
max_local_storage_nodes: ${MAX_LOCAL_STORAGE_NODES}
1010

11+
processors: ${PROCESSORS:1}
12+
1113
network.host: ${NETWORK_HOST}
1214

1315
path:

0 commit comments

Comments
 (0)