nativeInstallerelk

Add nodes to an Elasticsearch cluster

Before running the commands shown on this page, you should load the Bitnami stack environment by executing the installdir/use_APPNAME script (Linux and MacOS) or by clicking the shortcut in the Start Menu under “Start -> Bitnami APPNAME Stack -> Application console” (Windows). On OS X VMs, the installation directory is /opt/bitnami and OS X VM users can click the “Open Terminal” button to run commands. Learn more about the Bitnami stack environment and about OS X VMs.

To add additional nodes to a cluster, update the following configuration parameters in the node’s installdir/elasticsearch/config/elasticsearch.yml file:

  • cluster.name: All the nodes should have the same cluster name to work properly.
  • node.name: The name of each node should be unique. Set meaningful names to your nodes according to their functions so it will be easier to identify them.
  • network.publish_host: The host name that a node publishes to other nodes for communication. This host should be accessible at least from the master node.
  • discovery.zen.ping.unicast.hosts: When nodes are in the same sub-network, they will auto-configure themselves into a cluster. In other cases, specify a list with your nodes in this parameter.

Refer to the Elasticsearch official documentation for more information.

Last modification September 4, 2018