what i want to do is, if primary node fails ES will make node 2 as primary but i want the page should redirect automatically to localhost:9201 and how would i do that using nginx on windows or is there any other way to do that. Thanks in advance
I am not sure what you mean by "the page"? Are you connecting to Elasticsearch with a web browser? There is no need to do what you are asking because that's something the client libraries usually handle for you under the hood. See https://www.elastic.co/guide/en/elasticsearch/client/index.html for a list of client libraries.
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.