-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathelasticsearch.yml
24 lines (21 loc) · 1.21 KB
/
elasticsearch.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
network.host: 0.0.0.0
#http.host: 0.0.0.0
#transport.host: 127.0.0.1
cluster.name: monasca
node.name: ${ES_NODE_NAME}
discovery.zen.ping_timeout: 10s
discovery.zen.ping.unicast.hosts: ["elasticsearch0", "elasticsearch1", "elasticsearch2"]
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#read this:
#https://www.elastic.co/guide/en/elasticsearch/reference/2.4/setup-configuration.html
#https://www.elastic.co/guide/en/elasticsearch/reference/2.4/setup-service.html
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
bootstrap.memory_lock: true
ES_JAVA_OPTS: -Xms1g -Xmx1g
#...WARN ][bootstrap ] Unable to lock JVM Memory: error=12,reason=Out of memory
#...WARN ][bootstrap ] This can result in part of the JVM being swapped out.
#...WARN ][bootstrap ] Increase RLIMIT_MEMLOCK, soft limit: 65536, hard limit: 65536
#...WARN ][bootstrap ] These can be adjusted by modifying /etc/security/limits.conf, for #example:
#elasticsearch2_1 | # allow user 'elasticsearch' mlockall
#elasticsearch2_1 | elasticsearch soft memlock unlimited
#elasticsearch2_1 | elasticsearch hard memlock unlimited