Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Install the storage node package, as described in the section Storage Node Installation of Setup on Linux.
  2. 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 
    • index.number_of_shards
    • index.number_of_replicas
    • discovery.zen.minimum_master_nodes

    • discovery.zen.ping.timeout

      Note

      Make sure that these setting values are copied from the previous storage nodes to the new one - and not the other way around.


  3. Allow the hosts to discover each other. Again in/etc/elasticsearch/elasticsearch.yml change the following settings:
    • Set discovery.zen.ping.multicast.enabled to false
    • Set discovery.zen.ping.unicast.hosts to a list of all the storage nodes that have been set up. For example:

      Code Block
      languagetext
      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.

  4. Restart the service for the settings to take effect. 

    Code Block
    service elasticsearch restart


  5. Setup number of shards and number of replicas
    • Modify number_of_shards and number_of_replicas in /etc/elasticsearch/templates/squirro_v9.json, usually if we have multi storage node then set number_of_replicas to 1
    • Put new templates to Elasticsearch:

      Code Block
      cd /etc/elasticsearch/templates
      ./ensure_templates.sh


Process on all the other storage nodes

...