OKdevTV Docs
Home OKdevTV
ESC
elasticsearch 1 min read 0.7 KB Raw Markdown
On this page (3)

Elasticsearch Cluster

Config

  • config/elasticsearch.yml

    • master
text
cluster.name: elasticsearch
node.master: true
node.data: false
network.host: 0.0.0.0
discovery.zen.ping.unicast.hosts: ["127.0.0.1", "52.78.139.201"]
  • data nodes
text
cluster.name: elasticsearch
node.master: false
node.data: true
network.host: 0.0.0.0
discovery.zen.ping.unicast.hosts: ["127.0.0.1", "52.78.207.130"]
  • Security Group
    • Don’t use 0.0.0.0/32
    • 9300
    • 9301

Performance

  • open files max file descriptors [4096] for elasticsearch process likely too low, consider increasing to at least [65536]

memory setting

text
ES_JAVA_OPTS="-Xms1536m -Xmx1536m" ./bin/elasticsearch