Setting up networking
Correctly setting up networking is very important for your nodes and cluster.
There are a lot of different installation scenarios and networking issues. The first step for configuring the nodes in order to build a cluster is to correctly set the node discovery.
Getting ready
To change configuration files, you will need a working Elasticsearch installation and a simple text editor, as well as your current networking configuration (your IP address).
How to do it…
To set up the networking, use the following steps:
- Use a standard Elasticsearch configuration
config/elasticsearch.yml
file; your node will be configured to bind on the localhost interface (by default) so that it can't be accessed by external machines or nodes. - To allow another machine to connect to our node, we need to set
network.host
to our IP address (for example, I have192.168.1.164
). - To be able to discover other nodes, we need to list them in the ...