Skip to content

Commit ce41d9e

Browse files
committed
Make 'processors' configurable as recommended in the guide
[elastic/elasticsearch-definitive-guide#679](elastic/elasticsearch-definitive-guide#679)
1 parent 9daa096 commit ce41d9e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ This image can be configured by means of environment variables, that one can set
122122
* [SHARD_ALLOCATION_AWARENESS_ATTR](https://www.elastic.co/guide/en/elasticsearch/reference/current/allocation-awareness.html#CO287-1)
123123
* [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`) .
124124
* [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 = `[]`).
125+
* [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)
125126

126127
### Backup
127128
Mount a shared folder (for example via NFS) to `/backup` and make sure the `elasticsearch` user

config/elasticsearch.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ node:
77
data: ${NODE_DATA}
88
ingest: ${NODE_INGEST}
99
max_local_storage_nodes: ${MAX_LOCAL_STORAGE_NODES}
10+
11+
processors: ${PROCESSORS:1}
12+
1013
network.host: ${NETWORK_HOST}
1114

1215
path:

0 commit comments

Comments
 (0)