...
- Install the storage node package, as described in the section Storage Node Installation of Setup on Linux.
- Apply some of the configuration from the previous storage nodes to the new one. Copy over the following settings from
/etc/elasticsearch/elasticsearch.yml
to the new server:cluster.name
discovery.zen.minimum_master_nodes
Note Make sure that these setting values are copied from the previous storage nodes to the new one - and not the other way around.
- Allow the hosts to discover each other. Again in
/etc/elasticsearch/elasticsearch.yml
change the following settings:Set
multicast.enabled todiscovery.zen.ping.
false
Set
discovery.zen.ping.unicast.hosts
to a list of all the storage nodes that have been set up. For example:Code Block language text discovery.zen.ping.unicast.hosts: ["10.1.87.20", "10.1.87.22"]
This is the easiest way to set up discovery and making sure all the Elasticsearch nodes can see each other. There are other ways of configuring discovery of the Elasticsearch nodes. This is documented by Elasticsearch in the Discovery section of the manual.
Restart the service for the settings to take effect.
Code Block service elasticsearch restart
- Setup number of shards and number of replicas
- Modify
number_of_shards
andnumber_of_replicas
in/etc/elasticsearch/templates/squirro_v9.json
, usually if we have multi storage node then setnumber_of_replicas
to 1 Put new templates to Elasticsearch:
Code Block cd /etc/elasticsearch/templates ./ensure_templates.sh
- Modify
...