I would like to know on a multi-node Elasticsearch cluster (3 nodes), to which node we can send PUT curl call (say for creating ILM policy) or to fetch some results (by running query)?
In a single node cluster, it is clear that we need to send all create and GET requests to single node but what in the case of multiple node cluster?
Below is the example of single node cluster using ansible tool for creating ILM policy but what we should do in case of multi node cluster?
For fetching the results of query, i read somewhere in Elasticsearch documentation (not able to find now) that we should not send request directly to any es node and instead should sent to a load balancer kind of thing that will forward the request to one of the es node at backend.
Create request -
Can we send PUT curl call to one of the es node and will it create the ILM policy in the whole cluster? i.e will one node take care of making other two aware of this change and will this get spread to the cluster wise?
I have tested similar above config file on single es server (i.e only single server was mentioned in hosts => and data was getting indexed), but on current multi-node cluster after deploying es data is not getting indexed.
Is mentioning all three e.s hosts is wrong and only need to mentioned? as you said above?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.