Re: Connecting remotely to elastic search cluster

2015-01-05 Thread David Pilato
I myself prefer TransportClient as it has absolutely no impact on the cluster state. A new node joining the cluster generates a cluster state update which is propagated to all nodes. I prefer having a very stable cluster state than continuous updates. Think about a Java batch which starts every

Re: Connecting remotely to elastic search cluster

2015-01-05 Thread Vijay Tiwary
Thanks David once again. Can you please help in deciding which one should I go for NodeClient or TransportClient for production deployments. >From the elastic search documentation what I understand is that Node client eliminates the double hop that is present in Transport Client. Shall I opt fo

Re: Connecting remotely to elastic search cluster

2015-01-05 Thread David Pilato
If you don’t want to define transport addresses, you’d better use a NodeClient. A NodeClient is actually a node running inside the cluster (with auto discovery…) but without any data. You just need to provide the cluster name with a NodeClient. See http://www.elasticsearch.org/guide/en/elasticse

Connecting remotely to elastic search cluster

2015-01-05 Thread Vijay Tiwary
I am trying to connect remotely to elastic search cluster having 2 nodes My question is I am able to query successfully only when we configure both the cluster name and host name of the individual nodes? Why it doesn't work if I only configure the cluster name in my client code Settings settings