When using Elasticsearch productively it is recommend to have at least 2 nodes, each running on a different machine. This adds redundancy to your Elasticsearch system and allows zero-downtime during maintenance.

The following configuration makes the nodes visible to each other.

Edit /etc/elasticsearch/elasticsearch.yml:

Configuration Task

discovery.zen.ping.unicast.hostsComma-separated list of all hosts in the cluster, e.g. ["", ""]