Table of Contents
...
Do the following changes Steps to install Elastic SearchExample Elasticsearch.yml and update the following parameters:
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
cluster.name: zephyr node.name: "Node1" node.master: true node.data: true script.inline: true script.stored: true network.bind_host: 192.168.45.21 network.publish_host: 192.168.45.21 network.host: 192.168.45.21 transport.tcp.port: 9300 http.port: 9200 discovery.zen.ping.unicast.hosts: ["192.168.45.21:9300"] indices.query.bool.max_clause_count: 9012 |
Sample elasticsearch.yml file attached : Steps to install Elastic SearchExample Elasticsearch.yml
Changes need to do in Zephyr
- In Jdbc properties need to change
#transport|node
transport.nodes=192.168.45.21:9300, 192.168.45.22:9300
ElasticSearch Cluster
- Elastic Search in cluster should be in Odd Number minimum node to be in elastic search cluster should be 3 node
- Prevent the "split brain" by configuring the majority of nodes (total number of master-eligible nodes / 2 + 1):
...
discovery.zen.ping.unicast.hosts should contain all the elasticsearch system's host ip and port which are in cluster.
Sample elasticsearch.yml file attached :
ESNode 1 | |
EsNode 2 | |
EsNode 3 |
If elastic Search is in Cluster then in ZE we have to change the "number_of_shards" and "number_of_replicas"
Navigate to the ZE installation Dir
C:\Program Files\Zephyr\tomcat\webapps\flex\WEB-INF\template\zephyr
In this file _settings.json
change the number of shards and number of replicas
...
- In Jdbc properties need to change
#transport|node
transport.nodes=192.168.11.144:9300,192.168.11.145:9300.192.168.11.146:9300
...
Document Reference :
http://www.philipotoole.com/avoiding-elasticsearch-split-brain/
...