From ce41d9e16a3f792491e444e7f16a6d00dbe5b7fd Mon Sep 17 00:00:00 2001 From: Jan Jungnickel Date: Thu, 18 Jan 2018 11:34:39 +0100 Subject: [PATCH] Make 'processors' configurable as recommended in the guide [elastic/elasticsearch-definitive-guide#679](https://github.com/elastic/elasticsearch-definitive-guide/pull/679) --- README.md | 1 + config/elasticsearch.yml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 505201b..9cb6bac 100644 --- a/README.md +++ b/README.md @@ -122,6 +122,7 @@ This image can be configured by means of environment variables, that one can set * [SHARD_ALLOCATION_AWARENESS_ATTR](https://www.elastic.co/guide/en/elasticsearch/reference/current/allocation-awareness.html#CO287-1) * [MEMORY_LOCK](https://www.elastic.co/guide/en/elasticsearch/reference/current/important-settings.html#bootstrap.memory_lock) - memory locking control - enable to prevent swap (default = `true`) . * [REPO_LOCATIONS](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html#_shared_file_system_repository) - list of registered repository locations. For example `["/backup"]` (default = `[]`). +* [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 - default = 1) ### Backup Mount a shared folder (for example via NFS) to `/backup` and make sure the `elasticsearch` user diff --git a/config/elasticsearch.yml b/config/elasticsearch.yml index 16217e4..36fad99 100644 --- a/config/elasticsearch.yml +++ b/config/elasticsearch.yml @@ -7,6 +7,9 @@ node: data: ${NODE_DATA} ingest: ${NODE_INGEST} max_local_storage_nodes: ${MAX_LOCAL_STORAGE_NODES} + +processors: ${PROCESSORS:1} + network.host: ${NETWORK_HOST} path: