I setting two ES nodes as client node in my ES cluster, i want the application only connect the client node for query or index. But when set client node's IP for connection, found that my application also connect the master node or data node .
how can i force the application only connect the client node ? then client nodes handle the task(query or index) distribution.
Using TransportClient is the way to go. As long you don't set client.transport.sniff to true, the TransportClient will connect only to the nodes you defined in it.
i have set "client.transport.sniff=false" already.
but i can see other nodes which are not client node type. when check the ES nodes' connections, i am sure the application servers connect the master node and data node, not only client node.
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.