Configuring an Elasticsearch cluster
This section will cover some basic Elasticsearch configuration in addition to a few changes that will positively impact your cluster's performance.
Most Elasticsearch configuration changes will be applied to elasticsearch.yml
. For our installation of Elasticsearch on Ubuntu, this file is located at /etc/elasticsearch/elasticsearch.yml
. Elasticsearch internal configuration changes are applied to elasticsearch.yml
. Environmental variables can be set in the application's startup script. For our installation of Elasticsearch 2.3.2 on Ubuntu, these files are in the following locations:
- Internal Configuration is located at
/etc/elasticsearch/
elasticsearch.yml
- Environmental Variable Configuration is located at
/etc/defau
lts/elasticsearch
Cluster name
A wonderful thing about Elasticsearch is the ease with which you can build a cluster. Elasticsearch nodes on the same local area network (LAN) will automatically form a cluster with each other if they...