Elasticsearch: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== Installation == * Increase vm.max_map_count <pre> grep vm.max_map_count /etc/sysctl.conf vm.max_map_count=262144 </pre> * Port 9200 * Pull image <pre>docker pull docker.el...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Installation == | == Installation == | ||
* Increase vm.max_map_count | * Increase vm.max_map_count | ||
< | <syntaxhighlight lang="bash"> | ||
grep vm.max_map_count /etc/sysctl.conf | grep vm.max_map_count /etc/sysctl.conf | ||
vm.max_map_count=262144 | vm.max_map_count=262144 | ||
</ | </syntaxhighlight> | ||
* Port 9200 | * Port 9200 | ||
* Pull image | * Pull image | ||
< | <syntaxhighlight lang="bash"> | ||
docker pull docker.elastic.co/elasticsearch/elasticsearch:7.9.2 | |||
</syntaxhighlight> | |||
* Environment | |||
<syntaxhighlight lang="bash"> | |||
ELASTIC_CONTAINER=true | |||
ES_JAVA_OPTS=-Xms512m -Xmx512m | |||
node.name=elasticsearch01 | |||
cluster.initial_master_nodes=elasticsearch01 | |||
</syntaxhighlight> | |||
* Setup Volume | * Setup Volume | ||
< | <syntaxhighlight lang="bash"> | ||
Volume data01:/usr/share/elasticsearch/data } | |||
</syntaxhighlight> | |||
== Error == | == Error == |
Latest revision as of 15:11, 27 September 2020
Installation
- Increase vm.max_map_count
grep vm.max_map_count /etc/sysctl.conf
vm.max_map_count=262144
- Port 9200
- Pull image
docker pull docker.elastic.co/elasticsearch/elasticsearch:7.9.2
- Environment
ELASTIC_CONTAINER=true
ES_JAVA_OPTS=-Xms512m -Xmx512m
node.name=elasticsearch01
cluster.initial_master_nodes=elasticsearch01
- Setup Volume
Volume data01:/usr/share/elasticsearch/data }
Error
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
sysctl -w vm.max_map_count=262144